[Cbc] Slow CBC sample example
Stefan Vigerske
stefan at math.hu-berlin.de
Tue Jun 1 04:15:01 EDT 2010
Hi,
the executable uses CbcMain to solve a model. That usually gives much
performance than just calling model.branchAndBound() (as in the example
you cite). There are examples and some interface projects that show how
to use CbcMain:
https://projects.coin-or.org/Cbc/browser/stable/2.4/Cbc/examples/driver3.cpp
https://projects.coin-or.org/Cbc/browser/stable/2.4/Cbc/examples/driver4.cpp
https://projects.coin-or.org/OS/browser/stable/2.1/OS/src/OSSolverInterfaces/OSCoinSolver.cpp
https://projects.coin-or.org/AIMMSlinks/browser/stable/1.0/CbcAimms/src/cbc_interface.cpp
https://projects.coin-or.org/GAMSlinks/browser/trunk/GAMSlinks/src/SolverInterfaces/GamsCbc.cpp
Stefan
Am 31.05.2010 22:30, schrieb Matěj Týč:
> Hello,
> when I successfully build CBC, I also get an executable (that one called
> cbc), that, among other things, accepts MPS files and solves them.
>
> I can also build an example application that does the same things,
> according the documentation:
>
> http://www.coin-or.org/Cbc/ch02s02.html
>
> The problem is that the same MPS file gets solved much faster using the
> compiled (and somewhat more complicated :-) executable, whereas it
> writes a lot of output (even if I try to reduce it) and takes longer
> when using the code from the example.
>
> Any ideas?
> Regards,
> Matej
>
> _______________________________________________
> Cbc mailing list
> Cbc at list.coin-or.org
> http://list.coin-or.org/mailman/listinfo/cbc
>
More information about the Cbc
mailing list