[Cbc] cbc.exe vs. Cbc API
Michal Kaut
mail at michalkaut.net
Wed Feb 6 11:29:24 EST 2008
Hello Stefan,
that was fast indeed ;-)
It looks like I have formulated the question wrongly. I meant to ask how
to solve a problem (an OsiCbc or CbcModel object), so that Cbc will use
the same settings as cbc.exe RUN WITHOUT ANY OPTIONS. In a way, I just
want to emulate the main executable in my own code...
The example should make it clear why I want to do this this, as opposed
to just calling the branchAndBound() routine...
Anyway, thanks for info.
Regards,
Michal
Stefan Vigerske wrote:
> Hi,
>
> let me try to be faster than John ;-).
>
>> is there a (preferably easy) way to pass to a OsiCbcSolverInterface or
>> CbcModel object the same set of options that the standalone solver
>> (cbc.exe) is using?
>
> The cbc example driver3.cpp should show how this is done.
> You create a CbcModel, then call
> CbcMain0(model);
> create an char* array args of parameters that you normally give to your
> cbc executable, end then call
> CbcMain1(number of args, args, model);
>
>> I have a problem that cbc.exe solves in under a minute, but when I
>> load the same MPS file to an OsiCbcSolverInterface object and use
>> .branchAndBound(), it takes at least a day (I stopped after a day, so
>> I do not know)...
>
> I think I heard that OsiCbc is not a good way to run Cbc.
>
> Best,
> Stefan
>
More information about the Cbc
mailing list