[Cbc] Equivalence between command line and API

John Forrest john.forrest at fastercoin.com
Fri Aug 9 04:38:24 EDT 2013


Alexis,

You should not be getting preprocessing with those lines.  If you see

Cgl0004I processed model has ... rows,

then you are getting it, otherwise not

John Forrest
On 09/08/13 00:20, Alexis wrote:
> Hi,
>
> Now, in my code, I have
>
>     CbcMain0(cbcModel);
>     const char * argv2[]={"cbc","-presolve", "off","-preprocess", 
> "off","-solve","-quit"};
>     CbcMain1(7,argv2,cbcModel);
>
> so I am disabling presolve and preprocess.
>
> How can do you this using CbcModel and OsiClpSolverInterface objects? 
> This is what I have tried
>
>     ClpSolve options;
>     options.setPresolveType(ClpSolve::presolveOff);
>     myOsiClpSolverInterface.setSolveOptions(options);
>
>     CbcModel myCbcModel(m_myOsiClpSolverInterface);
>
>     myCbcModel.initialSolve();
>
>     myCbcModel.branchAndBound();
>
> I believe that does the job to prevent presolve but what about 
> preventing preprocessing?
>
> Thanks
>



More information about the Cbc mailing list