[Couenne] Is there a callable library to use Couenne in C/C++?

victor.zverovich at gmail.com victor.zverovich at gmail.com
Sat Feb 21 23:10:15 EST 2015


Thanks for clarification.

BTW if OS is building Couenne data structures directly via some API, I
guess one could use the same API directly and bypass OS altogether.

Regards,
Victor

On Sat Feb 21 2015 at 5:37:13 PM Ted Ralphs <ted at lehigh.edu> wrote:

>
> On Sat, Feb 21, 2015 at 6:37 PM, victor.zverovich at gmail.com <
> victor.zverovich at gmail.com> wrote:
>
>> Ted, by "OS passing the model directly to Couenne" you mean via some
>> Couenne APIs or via intermediate XML files?
>>
>
> I mean via an API, which I guess is probably more part of OS than Couenne.
> I'm not really too familiar with the implementation details, but the basic
> workflow is to first create an OSInstance object using a solver-agnostic
> API (similar in spirit to Osi, except with support for nonlinear modeling).
> The API is here:
>
>
> https://projects.coin-or.org/OS/browser/trunk/OS/src/OSCommonInterfaces/OSInstance.h
>
> After creating the model, to pass it to Couenne, you
> call buildSolverInstance() here:
>
>
> https://projects.coin-or.org/OS/browser/trunk/OS/src/OSSolverInterfaces/OSCouenneSolver.cpp#L141
>
> which translates the model into Couenne's native data structures. Finally,
> you can call solve().
>
> A detailed example is here:
>
>
> https://projects.coin-or.org/CoinBazaar/browser/projects/ApplicationTemplates/trunk/instanceGenerator/OSInstanceGenerator.cpp
>
> This functionality is what is planned to be the basis for "Osi 2" if that
> project ever comes to fruition. I don't think many people realize how much
> useful stuff is in the OS project.
>
> Cheers,
>
> Ted
>
>
>
>
>
> --
> Dr. Ted Ralphs
> Professor, Lehigh University
> (610) 628-1280
> ted 'at' lehigh 'dot' edu
> coral.ie.lehigh.edu/~ted
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://list.coin-or.org/pipermail/couenne/attachments/20150222/d6d10522/attachment.html>


More information about the Couenne mailing list