Originally posted by: Pan_Greece
Thanks Pierre for the reply and the assistance,
1. So, when I get gap=0.03%, this means that I am so close to the optimal solution? (I have read the definition of the gap on the log file but I do not fully understand how to evaluate this)
2. If this is correct, then why the algorithm doesnt terminate since I have put options.simplex.tolerances.optimality=0.01!!! Actually the algorithm doesnt terminate even if I put options.simplex.tolerances.optimality=0.5 (50%)!!!
3. Generally the parameters that you and Daniel advised me to put seem that do not affect the problem and even worse seem that do not work at all(i.e. options.mip.interval=20)
See what I have put as parameters and the log output:
options=cplexoptimset('cplex');
options.Diagnostics ='on';
options.diagnostics='on';
options.mip.display=3;%2-default
options.mip.interval=20;
options.MaxTime=1000;
options.emphasis.mip=4; %0-default,
%options.emphasis.numerical=1; %0-default
options.barrier.qcpconvergetol=0.01; %0.0000001-default
options.barrier.convergetol=0.01; %0.00000001-default
options.simplex.tolerances.optimality=0.001; %0.000001-default
options.mip.tolerances.absmipgap=0.001; %0.000001-default
options.mip.tolerances.mipgap=0.01; %0.0001-default
options.mip.tolerances.objdifference=0.001; %0-default
options.mip.strategy.search=0; %0-default, 1-traditional, 2-dynamic
options.mip.strategy.miqcpstrat=1; %0-default, 1-QCP relaxation, 2-LP relaxation...
options.mip.pool.relgap = 0.01;%
Tried aggregator 2 times.
MIQCP Presolve eliminated 381 rows and 154 columns.
MIQCP Presolve modified 83 coefficients.
Aggregator did 1 substitutions.
Reduced MIQCP has 643 rows, 621 columns, and 3228 nonzeros.
Reduced MIQCP has 70 binaries, 70 generals, 0 SOSs, and 0 indicators.
Reduced MIQCP has 60 quadratic constraints.
Presolve time = 0.02 sec. (3.41 ticks)
Probing fixed 0 vars, tightened 32 bounds.
Probing time = 0.00 sec. (0.10 ticks)
MIP emphasis: balance optimality and feasibility.
MIP search method: dynamic search.
Parallel mode: deterministic, using up to 2 threads.
Root relaxation solution time = 0.01 sec. (1.38 ticks)
Nodes Cuts/
Node Left Objective IInf Best Integer Best Bound ItCnt Gap
0 0 -265.3375 0 -347.8054 65
0 0 -239.2412 50 Cone: 1 70
0 0 -207.6498 50 Cone: 2 79
0 0 -163.7882 53 Cone: 3 93
0 0 -117.2275 50 Cone: 4 179
0 0 -112.3035 41 Cone: 5 279
0 0 -104.0683 45 Cone: 6 374
0 0 -102.7783 48 Cone: 7 437
0 0 -102.1384 46 Cone: 8 506
0 0 -101.8343 45 Cone: 9 558
0 0 -101.6126 47 Cone: 10 597
0 0 -101.5691 48 Cone: 11 627
0 0 -101.3715 49 Cone: 12 749
0 0 -101.2319 47 Cone: 13 801
0 0 -100.6209 48 Cone: 14 880
0 0 -100.1679 43 Cone: 15 911
0 0 -100.0414 43 Cone: 16 950
0 0 -99.8858 45 Cone: 17 994
0 0 -99.7384 46 Cone: 18 1034
0 0 -99.6583 44 Cone: 19 1071
0 0 -99.5322 42 Cone: 20 1128
0 0 -99.4858 38 Cone: 21 1176
0 0 -99.4576 43 Cone: 22 1203
0 0 -99.4520 43 Cone: 23 1231
0 0 -99.4420 42 Cone: 24 1252
0 0 -99.4287 44 Cone: 25 1284
0 0 -99.3937 45 Cone: 26 1314
0 0 -99.3161 45 Cone: 27 1350
0 0 -99.2095 46 Cone: 28 1392
0 0 -99.1456 45 Cone: 29 1448
0 0 -98.9503 45 Cone: 30 1510
0 0 -98.8893 42 Cone: 31 1555
0 0 -98.8568 43 Cone: 32 1579
0 0 -98.8321 44 Cone: 33 1608
0 0 -91.7964 64 -91.7964 1633
* 0+ 0 -91.7341 -91.7964 1672 0.07%
* 0+ 0 -91.7551 -91.7964 1706 0.04%
* 0+ 0 -91.7577 -91.7964 1706 0.04%
* 0+ 0 -91.7623 -91.7964 1726 0.04%
0 2 -91.7964 64 -91.7623 -91.7958 1746 0.04%
Elapsed time = 18.21 sec. (5038.30 ticks, tree = 0.01 MB, solutions = 4)
3 5 -91.7958 63 -91.7623 -91.7958 1819 0.04%
4 6 -91.7868 61 -91.7623 -91.7958 1840 0.04%
9 11 -91.7848 60 -91.7623 -91.7958 1960 0.04%
13 15 -91.7931 58 -91.7623 -91.7958 2088 0.04%
19 21 -91.7795 55 -91.7623 -91.7958 2276 0.04%
24 26 -91.7878 56 -91.7623 -91.7958 2449 0.04%
29 31 -91.7865 53 -91.7623 -91.7958 2617 0.04%
36 38 -91.7865 52 -91.7623 -91.7958 2821 0.04%
43 45 -91.7865 50 -91.7623 -91.7958 3016 0.04%
53 55 -91.7820 47 -91.7623 -91.7958 3290 0.04%
Elapsed time = 31.34 sec. (9085.29 ticks, tree = 0.01 MB, solutions = 4)
79 75 -91.7732 40 -91.7623 -91.7958 4002 0.04%
110 86 -91.7629 22 -91.7623 -91.7958 4655 0.04%
137 95 -91.7952 62 -91.7623 -91.7958 5230 0.04%
* 151+ 97 -91.7641 -91.7958 5547 0.03%
167 92 -91.7881 56 -91.7641 -91.7958 5939 0.03%
192 109 -91.7881 51 -91.7641 -91.7958 6532 0.03%
212 129 -91.7781 46 -91.7641 -91.7958 7076 0.03%
227 144 -91.7774 44 -91.7641 -91.7958 7611 0.03%
244 161 -91.7759 42 -91.7641 -91.7958 8247 0.03%
254 171 -91.7708 39 -91.7641 -91.7958 8721 0.03%
269 186 -91.7708 39 -91.7641 -91.7958 9361 0.03%
Elapsed time = 66.57 sec. (19262.29 ticks, tree = 0.03 MB, solutions = 5)
276 189 -91.7708 39 -91.7641 -91.7958 9605 0.03%
302 205 -91.7658 25 -91.7641 -91.7958 10508 0.03%
324 217 -91.7658 25 -91.7641 -91.7958 11235 0.03%
349 238 -91.7871 52 -91.7641 -91.7958 11945 0.03%
371 256 -91.7832 50 -91.7641 -91.7958 12644 0.03%
x =
0
0
0
0
0
0
0
-0.0004
-0.1201
0.2962
0.2906
……………
………...
1.0000
1.0000
1.0000
1.0000
0
0
0
0
0
0
0
0
fval =
-91.7644
exitflag =
6
output =
cplexstatus: 113
cplexstatusstring: 'aborted'
iterations: 14227
algorithm: 12
time: 99.4820
message: 'non-optimal Solution available'
#CPLEXOptimizers#DecisionOptimization