[Coin-discuss] cbc vs. cbc-generic
Laszlo Ladanyi
ladanyi at us.ibm.com
Thu Jun 22 10:16:16 EDT 2006
I just looked at the source creating the cbc-generic executable
(Cbc/src/CbcMain.cpp). It appears that it works (or should work) with Clp,
DyLP, and Osl at the moment. If on the configure command line you specify
--with-osl, --with-dylp, --with-clp (or whatever is the approporiate
flag) then an instance of those solvers will get added to the list of
available solvers, and at runtime (in the interactive version setting a
parameter, or if used on the commandline then with a flag) you can choose
which one you want to use.
Also, it looks very simple to add further solvers to the list (in fact, all
should be added... and tested by someone).
As far as why it does not work with cplex... well, I defer that question to
John. In the spirit of promoting the tools we have just added, you should
submit a bug ticket against Cbc :-)
--Laci
On Thu, 22 Jun 2006 fmargot at andrew.cmu.edu wrote:
>
>
> On Wed, 21 Jun 2006, Laszlo Ladanyi wrote:
>
> > Exactly.
> >
> > cbc is the version that is closely tied to clp. cbc-generic is the version
> > that can use other LP solvers via OSI.
> >
>
> What does that mean? cbc-generic is an executable and it does not seem
> possible to tell it to use Cplex instead of Clp.
>
> Also, the library does not seem to work with Cplex. The following simple
> code crashes with a segmentation fault at the end of the root node:
>
> OsiCpxSolverInterface solver;
> solver.readMps("dcmulti");
> CbcModel model(solver);
> model.branchAndBound();
>
> The above code works if Cpx is replaced by Clp.
>
> Francois
> _______________________________________________
> Coin-discuss mailing list
> Coin-discuss at list.coin-or.org
> http://list.coin-or.org/mailman/listinfo/coin-discuss
>
More information about the Coin-discuss
mailing list