[Cbc] How to decide with variable to branch ?

John Forrest john.forrest at fastercoin.com
Wed Dec 21 03:20:58 EST 2011


Haroldo,


You want betterBranch.  bestBranch was older and is only called if there 
are no dynamic pseudo costs etc etc.

You may also want to derive from CbcSimpleIntegerDynamicPseudoCost to 
give yourself even more control.

John

On 20/12/11 19:06, Haroldo Gambini Santos wrote:
> Dear All,
>
> I would like to insert a code in my solver (built using cbc) to decide 
> which variable to branch and the direction.
>
> What should I do ? Write a callback ? To specialize some class ?
>
> Tried to create a class derived from
> CbcBranchDecision, override the method  bestBranch  and call 
> cbcModel->cbcBranchingMethod for this class but apparently this method 
> was not even called (put a printf inside to check).
>
> Regards,
>
> Haroldo
>
>
> _______________________________________________
> Cbc mailing list
> Cbc at list.coin-or.org
> http://list.coin-or.org/mailman/listinfo/cbc
>
>



More information about the Cbc mailing list