[Couenne] Creating Couenne problem directly in C++ code

Stefan Vigerske stefan at math.hu-berlin.de
Thu Jul 9 22:46:08 EDT 2015


Hi,

oh yes, that one isn't implemented at all.
The actual OS to Couenne interface code is in the OS project:
https://projects.coin-or.org/OS/browser/trunk/OS/src/OSSolverInterfaces/OSCouenneSolver.cpp

Stefan

On 07/09/2015 11:36 PM, Florent Teichteil wrote:
> Hi,
>
> Thank you Stephan for your quick reply.
>
> However, I am not sure to understand how the OS interface can actually work
> given the fact that the implementation of the CouenneOSInterface class
> seems to be very incomplete with many TODO comments and strange things
> (like initializing a counter n_var to 0 and then immediately iterating from
> 0 to it; or also not initializing nor using the OSInstance object...) :
>
> https://projects.coin-or.org/Couenne/browser/trunk/Couenne/src/main/CouenneOSInterface.cpp
>
> Il looks like the OS interface class file was created but not actually
> implemented.
> Or am I missing something?
> Should I use another class to create my MINLP problen directly in C++ code?
>
> Thanks again in advance for your kind help,
>
> Florent
> Le 9 juil. 2015 19:00, "Stefan Vigerske" <stefan at math.hu-berlin.de> a
> écrit :
>
>> Hi,
>>
>> as far as I know, the CouenneOSInterface is working.
>> Next to AMPL and OS, also the link from GAMS to Couenne is available in
>> code:
>> https://projects.coin-or.org/GAMSlinks/browser/trunk/GAMSlinks/src/SolverInterfaces/GamsCouenne.cpp
>>
>> Stefan
>>
>> On 07/09/2015 06:09 PM, Florent Teichteil wrote:
>>
>>> Dear Couenne developers,
>>>
>>> I would like to create a Couenne problem instance directly from C++
>>> code by using Couenne as a linkable library. To be clear, I need to
>>> create a MINLP problem at execution time depending on the current
>>> context of my application, so I don't want to write a nl file and then
>>> invoke the Couenne problem in a pipe, read the output and so on. I
>>> would like to directly code the problem in C++ and call the solver in
>>> C++ code.
>>>
>>> It seems that there is no documentation to write Couenne problem in
>>> direct C++ code. I looked at the AMPL reading classes but the code is
>>> not trivial at all.
>>>
>>> Thus, I looked at the Ooptimization Services interface of Couenne,
>>> since it would be much easier to code the problem instance with
>>> OSInterface from COIN's Optimization Services project, and then load
>>> this instance from Couenne by using CouenneOSInterface.
>>>
>>> However, the current code of CouenneOSInterface seems to be
>>> unfinished, isn't it?
>>> What would be the best approach to directly code my Couenne problem in
>>> C++ without going through nl files?
>>>
>>> Thank you very much in advance for your help,
>>> Best regards,
>>>
>>> Florent Teichteil.
>>> _______________________________________________
>>> Couenne mailing list
>>> Couenne at list.coin-or.org
>>> http://list.coin-or.org/mailman/listinfo/couenne
>>>
>>>
>>
>



More information about the Couenne mailing list