[Couenne] Call couenne from C++

sguazt marco.guazzone at gmail.com
Thu Sep 8 09:23:14 EDT 2011


On Thu, Sep 8, 2011 at 2:53 PM, Stefan Vigerske
<stefan at math.hu-berlin.de> wrote:
> Hi,
>
>> I would like to use the couenne solver from C++.
>>
>> The simplest way is by invoking Couenne as an external process (i.e.,
>> by means of the system() standard C function).
>> However this is very expensive in terms of resource consumption,
>> especially in cases, like mine, when Couenne is to be invoked
>> frequently.
>>
>> So I wonder if there a way to perform these steps in "native" C++
>> (i.e., without calling external processes):
>> 1. to dynamically create the problem model (or at least update a
>> static description with new parameters)
>> 2. to pass this problem to Couenne
>> 3. to solve it and retrieve the results
>>
>> Is it actually possible?
>
> You can look at the Couenne/AMPL interface on how the problem is setup and
> the solution is retrieved.

Hi,

Do you mean the files ./Couenne/src/readnl/CouenneAmplInterface.[ch]pp
in the Couenne source tree?

-- Marcp

> Also the OS and GAMSlinks projects have interfaces to Couenne.
>
> Stefan
>
>>
>> Thank you very much,
>>
>> -- Marco
>>
>> _______________________________________________
>> Couenne mailing list
>> Couenne at list.coin-or.org
>> http://list.coin-or.org/mailman/listinfo/couenne
>>
>
>
> --
> Stefan Vigerske
> Humboldt University Berlin, Numerical Mathematics
> http://www.math.hu-berlin.de/~stefan
>



More information about the Couenne mailing list