[Coin-discuss] OsiCbc, CbcModel, how to disable strong branching?
Sebastian Nowozin
nowozin at gmail.com
Fri Jun 13 08:50:40 EDT 2008
Hello,
I use Cbc 2.1.0 using COIN-OR Osi trunk with OsiCbcSolverInterface.
The MILP problem I create solves quickly and outputs finally:
Cbc0001I Search completed - best objective 1757.3, took 3356139
iterations and 26844 nodes (1463.37 seconds)
Cbc0032I Strong branching done 135138 times (6347787 iterations),
fathomed 0 nodes and fixed 0 variables
Cbc0035I Maximum depth 60, 1.56856e+06 variables fixed on reduced cost
Because strong branching did not seem to be effective at all, I want to
disable it by adding this to my code:
OsiCbcSolverInterface si;
// ... (setup model)
// Switch of strong branching
CbcModel* mod = si.getModelPtr();
mod->setNumberStrong(0);
(I have seen this in sample5.cpp in the Cbc/examples/ directory).
However, the above output remains and strong branching still seems enabled.
Am I doing something wrong?
Sebastian
More information about the Coin-discuss
mailing list