[Cbc] a minimal list of class to instanciate before using CBC

Gabrielle A. Grün grun at cs.sfu.ca
Sat Oct 4 00:13:45 EDT 2008



Hi YC,
Theeere are defaylts   in place for nodeCompare_ (CbcCompareBase) anfd 
braanchingMethod_ (CbcBranchDecision) if one fails to set a value for them:

  if (!nodeCompare_)
    nodeCompare_=new CbcCompareDefault();;
  in CbcModel::branchAndBound  and

  CbcBranchDecision *decision = model->branchingMethod();
  if (!decision)
    decision = new CbcBranchDefaultDecision();
in CbcNode::chooseBranch.

You do not have to set strategy_ ( CbcStrategy) eithrr. When it is 
referenced in CbcModel.cpp, you will see something like :
  if (strategy_)
as in the 30th line or so of     CbcModel::branchAndBound
or
if (strategy_&&. .).
In addition, one should have to add any heuristics, i.e.   heuristic_ 
(CbcHeuristic). The cut geneeerators, i.e. generator_ (  CbcCutGenerator) 
are a different story :  - )



Gabrielle A. Grün, Ph.D. Student
School of Computing Science
Simon Fraser University
8888 University Drive
Burnaby, BC
V5A 1S6
<http://www.cs.sfu.ca/~grun>
----- Original Message ----- 
From: <ycollet at freesurf.fr>
To: <cbc at list.coin-or.org>
Sent: Friday, October 03, 2008 5:41 AM
Subject: [Cbc] a minimal list of class to instanciate before using CBC


> Hello,
>
> I am currently experiencing CBC and CLP.
> I have tried CBC and it was segfaulting on some instances from miplib.
> After some reflexion, I found that I forgot to add some Cbc classes to
> CbcModel.
> So, my question is: what is the minimum list of classes to add to CbcModel 
> ?
>
> How many of these classes do I need ?
>
> CbcBranchDecision (??)
> CbcProbing (??)
> CbcCompare (??)
> CbcHeuristic (maybe one is required)
> CbcStrategy (maybe optional)
> Cgl* (certainly at least one ?)
>
> YC
>
>
> _______________________________________________
> Cbc mailing list
> Cbc at list.coin-or.org
> http://list.coin-or.org/mailman/listinfo/cbc
> 



More information about the Cbc mailing list