Originally posted by: cenxiaoli
Thank you for the anwer.
I solve the nonconvex MIQP (dimension is 500) by CPLEX 12.61 with MATLAB R2016a interface. The output log on the screen is just the mipgap, no absolute MIP gap.
the parameters I set as follows:
opt =cplexoptimset('cplex');
opt.display = 'on';
opt.solutiontarget=3;
opt.mip.tolerances.mipgap=0;
opt.mip.tolerances.absmipgap=1e-8;
opt.mip.interval=1;
I don't know how to set paramer to display the absolute MIP gap, could you tell me? But I think,if I set absmipgap=1e-8 and mipgap=0,
the mipgap falls to 0.79% when cplex stops, then the absmipgap should not falls below 1e-8. Could it be realtive to my problem?
In addition, the output log
Nodes Cuts/
Node Left Objective IInf Best Integer Best Bound ItCnt Gap
* 0+ 0 0.0000 -130.7781 ---
* 0 0 integral 0 -123.0721 -128.3486 0 4.29%
0 2 -128.3486 0 -123.0721 -128.3486 0 4.29%
Elapsed time = 0.17 sec. (107.09 ticks, tree = 0.00 MB, solutions = 2)
3 5 -126.9953 0 -123.0721 -127.1995 16 3.35%
13 7 infeasible -123.0721 -124.4067 187 1.08%
17 7 -123.7802 0 -123.0721 -124.4067 195 1.08%
18 6 infeasible -123.0721 -124.4067 195 1.08%
19 7 -123.1531 0 -123.0721 -124.0954 199 0.83%
20 8 -124.0423 0 -123.0721 -124.0954 201 0.83%
Elapsed time = 0.22 sec. (119.98 ticks, tree = 0.00 MB, solutions = 11)
21 7 infeasible -123.0721 -124.0954 201 0.83%
23 5 infeasible -123.0721 -124.0423 201 0.79%
Root node processing (before b&c):
Real time = 0.17 sec. (106.79 ticks)
Parallel b&c, 4 threads:
Real time = 0.52 sec. (184.88 ticks)
Sync time (average) = 0.36 sec.
Wait time (average) = 0.37 sec.
------------
Total (root+branch&cut) = 0.69 sec. (291.66 ticks)
output =
cplexstatus: 101
cplexstatusstring: 'integer optimal solution'
iterations: 259
algorithm: 12
time: 0.6870
message: 'Function converged to a solution x.'
thank you again.
#CPLEXOptimizers#DecisionOptimization