Originally posted by: Evaba
Thank you for your answer so far.
I did put the solve() command after the use(...) commands.
My program includes several hundred binary variables but maybe still the solution is easy to find for CPLEX?!
I now set the following parameters:
// set CPLEX parameters
cplex.setParam(IntParam.PreslvNd, -1);
cplex.setParam(IntParam.MIPInterval, 1);
cplex.setParam(IntParam.MIPDisplay, 2);
And additionally implemented a SolveCallback just the way I did with the other callbacks.
The CPLEX log output looks like this:
Tried aggregator 2 times.
MIP Presolve eliminated 244600 rows and 301328 columns.
Aggregator did 22894 substitutions.
Reduced MIP has 188645 rows, 405319 columns, and 1215159 nonzeros.
Reduced MIP has 9391 binaries, 0 generals, 0 SOSs, and 0 indicators.
Presolve time = 4.96 sec. (1183.56 ticks)
Probing changed sense of 1419 constraints.
Probing time = 0.45 sec. (170.06 ticks)
Tried aggregator 2 times.
MIP Presolve eliminated 5547 rows and 192 columns.
MIP Presolve modified 39309 coefficients.
Aggregator did 1119 substitutions.
Reduced MIP has 181979 rows, 404008 columns, and 1156319 nonzeros.
Reduced MIP has 9240 binaries, 0 generals, 0 SOSs, and 0 indicators.
Presolve time = 4.65 sec. (1167.60 ticks)
Warning: Control callbacks may disable some MIP features.
Probing changed sense of 139 constraints.
Probing time = 0.34 sec. (43.12 ticks)
Clique table members: 1681.
MIP emphasis: balance optimality and feasibility.
MIP search method: traditional branch-and-cut.
Parallel mode: none, using 1 thread.
----> solve callback
Root relaxation solution time = 41.87 sec. (11732.90 ticks)
----> solve callback
Nodes Cuts/
Node Left Objective IInf Best Integer Best Bound ItCnt Gap Variable B NodeID Parent Depth
* 0 0 integral 0 3105764.4046 3105764.4046 88804 0.00% 0 0
Elapsed time = 54.91 sec. (14781.36 ticks, tree = 0.00 MB, solutions = 1)
Root node processing (before b&c):
Real time = 43.63 sec. (12025.53 ticks)
Sequential b&c:
Real time = 0.00 sec. (0.00 ticks)
------------
Total (root+branch&cut) = 43.63 sec. (12025.53 ticks)
RS: 0, Value: 3105764.4046185184, Solution Optimal
So we can see, CPLEX enters the SolveCallback twice but never enters any of the other callbacks. How can that be?
#CPLEXOptimizers#DecisionOptimization