[Cbc] setHotstartSolution

Stefan Vigerske stefan at math.hu-berlin.de
Fri Oct 17 09:26:02 EDT 2008


Hi,

there is a method CbcModel::setBestSolution that can be used for this 
purpose.

Best,
Stefan

> I'm trying to use the method setHotstartSolution (CbcModel class) to pass a MIP start solution to Cbc. Am I doing something wrong?
> 
> ...
> CbcModel model(*lp->lp);
> model.solver()->setHintParam(OsiDoReducePrint, true, OsiHintTry);
> model.initialSolve();
> model.solver()->setIntParam(OsiMaxNumIterationHotStart,100);
> model.setHotstartSolution(heurSolCols, NULL);
> ...
> 
> Thanks,
> Pedro.
> 
> 
>       
> _______________________________________________
> Cbc mailing list
> Cbc at list.coin-or.org
> http://list.coin-or.org/mailman/listinfo/cbc
> 


-- 
Stefan Vigerske
Humboldt University Berlin, Numerical Mathematics
http://www.math.hu-berlin.de/~stefan


More information about the Cbc mailing list