[Cbc] Cbc callable vs Cbc stand-alone

Haroldo Gambini Santos haroldo at ufop.edu.br
Sun May 13 12:46:05 EDT 2018


Hi,


To call CBC from your code with all the settings of the standalone 
solver (which are much better than just calling branch and bound), 
please look at the "driver3" example included.

Basically you should use CbcMain0 and CbcMain1:

    CbcModel model(*solver.getRealSolverPtr());
    CbcMain0(model);
    CbcMain1(3, args, model);

Cheers,

Haroldo
Em 21-02-2018 11:33, Andrea Manno escreveu:
>
> Dear all,
>
>
> I am using the callable version of CBC as the MILP solver unit 
> included in a C++ code. So what I have done is nothing but including 
> all the Cbc, Osi and Cgl header file needed and linking all the 
> necessary libraries in order to use the branchAnbBound() method of the 
> CbcModel class. However, I noticed a deterioring of performance (in 
> terms of CPU-time) compared to the stand-alone executable version of 
> Cbc used as AMPL solver. I managed to eliminate this gap of 
> performance for relatively small problems, by adding some Cbc 
> heuristics and cuts, but the problem persists for bigger problems. I 
> would like to know if there is a way to tune all the preprocess, cuts, 
> heuristics and other options in order to replicate the same 
> performance of the stand-alone version of Cbc.
>
>
> Thank you so much,
>
>
> Andrea Manno
>
>
>
>
> _______________________________________________
> Cbc mailing list
> Cbc at list.coin-or.org
> https://list.coin-or.org/mailman/listinfo/cbc

-- 
=============================================================
Haroldo Gambini Santos
Computing Department
Universidade Federal de Ouro Preto - UFOP
email: haroldo at ufop.edu.br
home/research page: www.decom.ufop.br/haroldo


It has long been an axiom of mine that the little things are infinitely
the most important.
-- Sir Arthur Conan Doyle, "A Case of Identity"

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://list.coin-or.org/pipermail/cbc/attachments/20180513/923eba85/attachment-0001.html>


More information about the Cbc mailing list