[Clp] C++ Ok, C - dont know Re. CLP from a C prog.

Paul Smith phhs80 at gmail.com
Fri May 15 16:26:47 EDT 2009


According to Matthew Saltzman, there is CoinMP to interface CLP with
C. However, rather strangely, no documentation/examples can be found
anywhere...

Paul


On Fri, May 15, 2009 at 8:50 PM, Hok Go <Hok.Go at qrm.com> wrote:
> Obviously not a particularly elegant solution but you could compile your program in a C++ compiler and just access the Clp library without dynamic loading.
>
> -----Original Message-----
> From: clp-bounces at list.coin-or.org [mailto:clp-bounces at list.coin-or.org] On Behalf Of Paul Smith
> Sent: Friday, May 15, 2009 1:12 PM
> To: clp at list.coin-or.org
> Subject: Re: [Clp] C++ Ok, C - dont know Re. CLP from a C prog.
>
> On Fri, May 15, 2009 at 3:02 PM, Alexey Lvov <lvov at us.ibm.com> wrote:
>>>>I am a beginner regarding CLP, and I would like to ask you whether CLP can
>>>> be called from a C program. If so, is there some documentation that explains
>>>> how to do that?
>>
>> Do you mean exactly C, not C++? For C I do not know the answer (the chances
>> are it may not be possible because COIN it written in C++). For C++ please
>> see below. CLP documentation starts with a simple example which shows how to
>> solve problem from a file. I would also put a reference to file
>> Clp-1.10.0/Clp/examples/addRows.cpp (or similar) to the front page of CLP
>> doc. It shows how to create and solve CLP problem in memory. Please find two
>> examples below. #1 follows CLP doc. #2 follows what John Forrest sent me
>> over lately. The second one worked much better for me. ( Also to be able to
>> "make" your program, first follow the instructions in Clp-1.10.0/INSTALL).
>
> Thanks, Alexey. My code is written in C. Thus, it would be most useful
> to have my code in C calling CLP from inside. Maybe CoinMP will help.
> However, I cannot find any documentation about CoinMP.
>
> Paul
>
>
> _______________________________________________
> Clp mailing list
> Clp at list.coin-or.org
> http://list.coin-or.org/mailman/listinfo/clp
>
>
>





More information about the Clp mailing list