Originally posted by: srinit34
Hi
I have a simple IP program.
I have set params to use traditional BB.
I have disabled all cuts.
But still, it seems no branches are created. How do I force cplex to create branches ?
Here is a code snippet:
cplex.setParam(IloCplex.Param.MIP.Cuts.Cliques, -1);
.... //many more cuts disabled
cplex.setParam(IloCplex.Param.MIP.Cuts.ZeroHalfCut, -1);
cplex.setParam(IloCplex.Param.MIP.Strategy.Search, IloCplex.MIPSearch.Traditional);
cplex.solve();
IloNumVarType[] xt = {IloNumVarType.Int, IloNumVarType.Int };
IloNumVar[] x = model.numVarArray(2, xlb, xub, xt);
var[0] = x;
// Objective Function:
double[] objvals = {8, 5};
model.addMaximize(model.scalProd(x, objvals));
//some constraints
Here is the output:
MIP search method: traditional branch-and-cut.
Parallel mode: none, using 1 thread.
Root relaxation solution time = 0.00 sec. (0.00 ticks)
Nodes Cuts/
Node Left Objective IInf Best Integer Best Bound ItCnt Gap Variable B NodeID Parent Depth
* 0+ 0 0.0000 70.0000 ---
0 0 41.2500 2 0.0000 41.2500 2 ---
* 0+ 0 39.0000 41.2500 5.77%
* 0+ 0 40.0000 41.2500 3.12%
0 0 cutoff 40.0000 41.2500 2 3.12% 0 0
Elapsed time = 0.02 sec. (0.03 ticks, tree = 0.00 MB, solutions = 3)
#CPLEXOptimizers#DecisionOptimization