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

Paul Smith phhs80 at gmail.com
Fri May 15 14:12:03 EDT 2009


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





More information about the Clp mailing list