Originally posted by: SystemAdmin
There is no such parameter for Java. Don't you see an output like this:
Selected objective sense: MINIMIZE
Selected objective name: total_costs
Selected RHS name: rhs
Selected bound name: bnd
Tried aggregator 1 time.
Aggregator did 24 substitutions.
Reduced MIP has 455 rows, 818 columns, and 2043 nonzeros.
Reduced MIP has 397 binaries, 0 generals, 0 SOSs, and 0 indicators.
Presolve time = 0.00 sec.
Clique table members: 29.
MIP emphasis: balance optimality and feasibility.
MIP search method: dynamic search.
Parallel mode: deterministic, using up to 2 threads.
Root relaxation solution time = 0.00 sec.
Nodes Cuts/
Node Left Objective IInf Best Integer Best Node ItCnt Gap
0 0 983.1674 24 983.1674 106
0 0 1030.7685 27 Cuts: 61 182
0 0 1045.1624 34 Cuts: 33 234
0 0 1056.9364 37 Cuts: 16 289
0 0 1059.5056 42 Cuts: 11 314
0 0 1061.1749 46 Cuts: 10 347
0 0 1063.4669 44 Cuts: 12 389
0 0 1066.7358 42 Cuts: 12 441
0 0 1074.6732 46 Cuts: 13 489
0 0 1075.4509 47 Cuts: 3 517
0 0 1078.0319 47 Cuts: 11 569
0 0 1081.0944 47 Cuts: 10 615
0 0 1083.9145 55 Cuts: 7 668
0 0 1085.2013 54 Cuts: 12 713
0 0 1086.7665 53 Cuts: 8 758
0 0 1087.8046 55 Cuts: 12 793
0 0 1088.0676 58 Covers: 1 813
0 0 1088.3318 53 Cuts: 7 838
0 0 1088.4547 60 Cuts: 4 849
0 0 1088.7303 56 Cuts: 9 868
* 0+ 0 1431.0000 1088.7303 868 23.92%
* 0+ 0 1384.0000 1088.7303 868 21.33%
* 0+ 0 1170.0000 1088.7303 868 6.95%
* 0+ 0 1158.0000 1088.7303 868 5.98%
0 2 1088.7303 56 1158.0000 1088.7303 868 5.98%
100 56 1156.8831 3 1158.0000 1090.4565 3505 5.83%
200 107 1121.2216 38 1158.0000 1105.6505 7087 4.52%
300 159 1116.5026 30 1158.0000 1106.9100 9122 4.41%
400 195 1137.7402 27 1158.0000 1113.6844 11898 3.83%
500 261 1140.6393 20 1158.0000 1115.4560 14176 3.67%
600 253 1136.0688 14 1158.0000 1115.4560 18054 3.67%
700 243 1151.7777 24 1158.0000 1115.4560 20592 3.67%
800 248 cutoff 1158.0000 1115.4560 23267 3.67%
900 263 1142.2662 10 1158.0000 1118.1157 26494 3.44%
1000 273 1140.5885 30 1158.0000 1121.5396 30585 3.15%
Elapsed real time = 6.84 sec. (tree size = 0.08 MB, solutions = 4)
1100 316 1145.1445 14 1158.0000 1123.7826 34276 2.95%
1200 367 1132.4366 25 1158.0000 1125.5038 37183 2.81%
1300 401 cutoff 1158.0000 1127.7763 40855 2.61%
1400 450 1149.6268 28 1158.0000 1129.8826 44054 2.43%
1500 471 cutoff 1158.0000 1132.9375 47827 2.16%
1600 474 1151.4207 20 1158.0000 1135.1903 51481 1.97%
1700 485 1156.8374 20 1158.0000 1137.2711 55209 1.79%
1800 466 cutoff 1158.0000 1139.0625 58372 1.64%
1900 429 cutoff 1158.0000 1140.9689 61897 1.47%
2000 439 1152.9333 11 1158.0000 1142.2017 64273 1.36%
Elapsed real time = 7.80 sec. (tree size = 0.14 MB, solutions = 4)
2100 427 1154.1556 9 1158.0000 1143.6801 66944 1.24%
2200 417 1151.6467 8 1158.0000 1144.9936 69311 1.12%
2300 364 1155.2372 29 1158.0000 1146.2315 71677 1.02%
2400 302 1150.0974 17 1158.0000 1148.0016 73449 0.86%
2500 221 cutoff 1158.0000 1149.7803 75082 0.71%
2600 145 cutoff 1158.0000 1151.5869 76925 0.55%
2700 57 infeasible 1158.0000 1153.9186 78206 0.35%
Cover cuts applied: 33
Implied bound cuts applied: 67
Flow cuts applied: 35
Mixed integer rounding cuts applied: 29
Flow path cuts applied: 18
Zero-half cuts applied: 1
Multi commodity flow cuts applied: 20
Gomory fractional cuts applied: 5
Root node processing (before b&c):
Real time = 2.27
Parallel b&c, 2 threads:
Real time = 6.08
Sync time (average) = 0.13
Wait time (average) = 0.47
-------
Total (root+branch&cut) = 8.35 sec.
This is the output that Tobias meant to enable by setting CPX_PARAM_SCRIND.
However, as I said there is no such parameter in Java. Instead the output is enabled by default and if you want to disable it you have to call
IloCplex cplex = new IloCplex();
...
cplex.setOut(null);
By default an output line is printed every 100 nodes. You can change that interval by
cplex.setParam(IloCplex.IntParam.MIPInterval, N); // Output a log line every N nodes (N is an integer)
If that is not enough you will need to use the info callback as suggested by Tobias.
#CPLEXOptimizers#DecisionOptimization