[Symphony] Symphony GMPL Files

Anton Becker antonbecker at me.com
Mon Sep 24 05:33:41 EDT 2012


Hi again,

It just worked!

I made the bictriteria example (the one in the example file) and called 
a single objective problem. With the setObj2Coeff method the solver now 
solved a bicriteria model.

Is there a way to define the second objective in the model file as well?

Cheers,

Anton

On 24.09.2012 10:07, Anton Becker wrote:
> Hi Ted,
>
> thanks for your quick reply. This is what I get for typing 
> "bin/symphony -F SYMPHONY/Datasets/sample1.mod -D 
> SYMPHONY/Datasets/sample1.dat" (I just defined a second objective in 
> the sample.mod for testing)
>
> ----------------------------------------------------------------------------------------
> Reading input file...
>
> Reading model section from SYMPHONY/Datasets/sample1.mod...
> 33 lines were read
> Reading data section from SYMPHONY/Datasets/sample1.dat...
> 68 lines were read
> Generating nb...
> Generating cost...
> Generating etwas...
> Model has been successfully generated
>
> Error due to having more than one objective function!
> SYMPHONY can solve problems with just one objective function
>
> Errors in reading gmpl file
>
> Fatal errors encountered. Exiting with code -120.
> See sym_return_values.h for meaning of code.
> ------------------------------------------------------------------------------------------
>
> How do I set something through the API? You mean I "load" the problem 
> I want to solve (with two objective functions) through SYMPHONY first 
> and then how do I set the second objective?
>
> Cheers and best regards,
>
> Anton
>
> On 24.09.2012 04:11, Ted Ralphs wrote:
>> Hi Anton,
>>
>> SYMPHONY can solve biobjective MILPs, but it's possible that the 
>> interface to GLPK is not capable of dealing with multiple objectives. 
>> If nothing else, you can set the second objective through the API 
>> once the problem is read in. If you can provide some more details of 
>> exactly when the error comes up and exactly what it says, I'll try to 
>> see if it's an easy fix.
>>
>> Ted
>>
>> On Sun, Sep 23, 2012 at 4:43 PM, Anton Becker <antonbecker at me.com 
>> <mailto:antonbecker at me.com>> wrote:
>>
>>     Hi again,
>>
>>     I now managed to read GMPL files.
>>
>>     I now encountered another problem:
>>
>>     1. Start symphony, works
>>     2. load problem, works only with single criteria problems! Why
>>     can I not read in a biobjective, linear model?! I thought this is
>>     a feature of SYMPHONY.
>>
>>     Message is something like "Symphony can only read in single
>>     objective functions".
>>
>>     Any ideas?
>>
>>     Best regards,
>>
>>     Anton
>>
>>
>>     Am Sep 22, 2012 um 12:10 PM schrieb Anton Becker:
>>
>>     > Dear everybody,
>>     >
>>     > I have a problem reading GMPL files with SYMPHONY under Ubuntu
>>     12.04.
>>     >
>>     > 1. Installed Symphony via SVN - works.
>>     >
>>     > 2. Installed Glpk via get.Glpk - works.
>>     >
>>     > 3. ./configure --with-GMPL --with-glpk-lib --with-glpk-incdir
>>     --with-glpk-datadir - works.
>>     >
>>     > 4. make: Does not work. The compiler misses a file called
>>     amd.h. I found this file and copied it into the folder the
>>     compiler searched for it. (Something like Glp/src)
>>     >
>>     > After doing this he gave me another error, I don't remember
>>     exactly what file he was missing then but I worked around this
>>     error as well. This went on for hours.
>>     >
>>     > Did I do anything wrong? I always get new errors.
>>     >
>>     > In the manual there are just a few steps and it all looks very,
>>     very easy.
>>     >
>>     > Any idea? I think there is something wrong with my installation
>>     in the firs place, but I really did it step by step according to
>>     the manual.
>>     >
>>     > It's really important for me to get this working..
>>     >
>>     > Best regards,
>>     >
>>     > Anton
>>     >
>>     >
>>     >
>>
>>     _______________________________________________
>>     Symphony mailing list
>>     Symphony at list.coin-or.org <mailto:Symphony at list.coin-or.org>
>>     http://list.coin-or.org/mailman/listinfo/symphony
>>
>>
>>
>>
>> -- 
>> Dr. Ted Ralphs
>> Associate Professor, Lehigh University
>> (610) 628-1280
>> ted 'at' lehigh 'dot' edu
>> coral.ie.lehigh.edu/~ted <http://coral.ie.lehigh.edu/%7Eted>
>>
>
>
>
> _______________________________________________
> Symphony mailing list
> Symphony at list.coin-or.org
> http://list.coin-or.org/mailman/listinfo/symphony

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://list.coin-or.org/pipermail/symphony/attachments/20120924/3219549e/attachment-0001.html>


More information about the Symphony mailing list