[Couenne] Call couenne from C++

Stefan Vigerske stefan at math.hu-berlin.de
Thu Sep 8 08:53:07 EDT 2011


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.
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