Originally posted by: SystemAdmin
Paul, thanks. I changed the code, and it works very well.
But it seems that cplex solve the problem as a pure LP after I adding IloConversion, and it took a long time to solve. But if cplex solve the MIP and stop after getting root node, it took a very short time. Thus, is there any approach that I can still solve MIP to get LP solution in root node, and extract those LP solutions out? Thanks.
The output for MIP to get LP solution in root node is as follows:
Presolve has eliminated 629184 rows and 236161 columns...
Presolve has improved bounds 23232 times...
Tried aggregator 2 times.
MIP Presolve eliminated 638820 rows and 236161 columns.
MIP Presolve modified 434676 coefficients.
Aggregator did 2880 substitutions.
Reduced MIP has 9483 rows, 3522 columns, and 38190 nonzeros.
Presolve time = 6.88 sec.
Clique table members: 8832
MIP emphasis: balance optimality and feasibility
Root relaxation solution time = 7.17 sec.
Nodes Cuts/
Node Left Objective IInf Best Integer Best Node ItCnt Gap Variable B Parent Depth
0 0 4277.2222 99 4277.2222 10994
Elapsed time = 20.86 sec. (tree size = 0.00 MB)
Master Problem's objective value (LP relaxation root node) is: 4277.45
Test!
ERROR: CPLEX Error 3017: No integer feasible solution exists.
CPLEX error
The Solving Time for MP: 24
Press any key to continue
The out put for solving LP is as follows:
Tried aggregator 1 time.
LP Presolve eliminated 4155 rows and 761276 columns.
Reduced LP has 647028 rows, 241287 columns, and 3407901 nonzeros.
Presolve time = 3.63 sec.
Initializing dual steep norms . . .
Iteration log . . .
Iteration: 1 Dual objective = 455.144991
Perturbation started.
Iteration: 203 Dual objective = 455.144991
Iteration: 800 Dual objective = 455.144991
Iteration: 1398 Dual objective = 455.144991
Iteration: 1991 Dual objective = 455.144991
Elapsed time = 11.00 sec. (2000 iterations).
Iteration: 2564 Dual objective = 455.144991
Iteration: 3130 Dual objective = 455.144991
Iteration: 3754 Dual objective = 455.144992
Iteration: 4411 Dual objective = 455.144992
Iteration: 5030 Dual objective = 455.144992
Iteration: 5692 Dual objective = 455.144992
Elapsed time = 24.05 sec. (6000 iterations).
Iteration: 6329 Dual objective = 455.144992
Iteration: 6857 Dual objective = 455.144992
Iteration: 7488 Dual objective = 455.144993
Iteration: 7987 Dual objective = 455.144993
Iteration: 8610 Dual objective = 455.144993
Elapsed time = 36.11 sec. (9000 iterations).
Iteration: 9218 Dual objective = 455.144993
Iteration: 9720 Dual objective = 455.144994
Iteration: 10299 Dual objective = 455.144994
Iteration: 10801 Dual objective = 455.144994
Iteration: 11362 Dual objective = 455.144994
Iteration: 11772 Dual objective = 455.144994
Elapsed time = 50.22 sec. (12000 iterations).
Iteration: 12242 Dual objective = 455.144995
Iteration: 12760 Dual objective = 455.144995
Iteration: 13264 Dual objective = 455.144995
Iteration: 13661 Dual objective = 455.144995
Elapsed time = 60.42 sec. (14000 iterations).
Iteration: 14060 Dual objective = 455.144995
Iteration: 14460 Dual objective = 455.144996
Iteration: 14863 Dual objective = 455.144996
Iteration: 15262 Dual objective = 455.144996
Iteration: 15670 Dual objective = 455.144996
Elapsed time = 71.77 sec. (16000 iterations).
Iteration: 16065 Dual objective = 455.144997
Iteration: 16465 Dual objective = 455.144997
Iteration: 16864 Dual objective = 455.144997
Iteration: 17256 Dual objective = 455.144997
Iteration: 17661 Dual objective = 455.144997
Elapsed time = 83.00 sec. (18000 iterations).
Iteration: 18056 Dual objective = 455.144998
Iteration: 18461 Dual objective = 455.144998
Iteration: 18864 Dual objective = 455.144998
Iteration: 19264 Dual objective = 455.144999
Iteration: 19659 Dual objective = 455.144999
Elapsed time = 94.52 sec. (20000 iterations).
Iteration: 20158 Dual objective = 464.127523
Iteration: 20759 Dual objective = 500.197685
Iteration: 21336 Dual objective = 511.175561
Iteration: 21746 Dual objective = 511.175561
Elapsed time = 126.06 sec. (22000 iterations).
Iteration: 22178 Dual objective = 511.175562
Iteration: 22667 Dual objective = 525.708590
Elapsed time = 151.69 sec. (23000 iterations).
Iteration: 23304 Dual objective = 535.147496
Iteration: 23968 Dual objective = 538.043778
Elapsed time = 196.41 sec. (24000 iterations).
Iteration: 24642 Dual objective = 543.448658
Elapsed time = 248.28 sec. (25000 iterations).
Iteration: 25425 Dual objective = 550.995900
Iteration: 25868 Dual objective = 554.369167
Elapsed time = 297.26 sec. (26000 iterations).
Iteration: 26402 Dual objective = 557.920950
Elapsed time = 350.19 sec. (27000 iterations).
Iteration: 27066 Dual objective = 560.484157
Iteration: 27947 Dual objective = 564.147910
Iteration: 28734 Dual objective = 566.646747
Elapsed time = 363.36 sec. (29000 iterations).
Iteration: 29472 Dual objective = 568.738011
Iteration: 30285 Dual objective = 574.254172
Iteration: 30791 Dual objective = 579.696674
Iteration: 31854 Dual objective = 591.009634
Elapsed time = 377.42 sec. (32000 iterations).
Iteration: 32437 Dual objective = 596.365286
Iteration: 33438 Dual objective = 605.920841
Iteration: 33798 Dual objective = 615.149996
Elapsed time = 389.05 sec. (34000 iterations).
Iteration: 34515 Dual objective = 616.433215
Iteration: 35390 Dual objective = 636.627524
Iteration: 35950 Dual objective = 636.863030
Elapsed time = 403.48 sec. (36000 iterations).
Iteration: 36947 Dual objective = 668.773574
Iteration: 37415 Dual objective = 691.400193
Elapsed time = 422.47 sec. (38000 iterations).
Iteration: 38485 Dual objective = 706.946073
Elapsed time = 433.55 sec. (39000 iterations).
Iteration: 39053 Dual objective = 711.880955
Iteration: 39462 Dual objective = 717.867604
Elapsed time = 448.66 sec. (40000 iterations).
Iteration: 40202 Dual objective = 747.217267
Iteration: 41040 Dual objective = 800.991198
Iteration: 41928 Dual objective = 819.383935
Elapsed time = 468.19 sec. (42000 iterations).
Iteration: 42418 Dual objective = 819.383936
Elapsed time = 483.73 sec. (43000 iterations).
Iteration: 43075 Dual objective = 840.308233
Iteration: 43764 Dual objective = 863.382038
Elapsed time = 502.59 sec. (44000 iterations).
Iteration: 44439 Dual objective = 882.765401
Iteration: 45181 Dual objective = 913.524897
Elapsed time = 519.56 sec. (46000 iterations).
Iteration: 46078 Dual objective = 935.614669
Iteration: 46406 Dual objective = 945.117793
Iteration: 47079 Dual objective = 954.346913
Iteration: 47933 Dual objective = 962.265521
Elapsed time = 535.11 sec. (48000 iterations).
Iteration: 48834 Dual objective = 974.819516
Elapsed time = 545.78 sec. (49000 iterations).
Iteration: 49369 Dual objective = 976.792648
Elapsed time = 557.56 sec. (50000 iterations).
Iteration: 50441 Dual objective = 979.556498
Elapsed time = 573.30 sec. (51000 iterations).
Iteration: 51015 Dual objective = 985.480436
Iteration: 51851 Dual objective = 989.277730
Elapsed time = 592.11 sec. (52000 iterations).
Iteration: 52845 Dual objective = 997.640274
Elapsed time = 609.78 sec. (53000 iterations).
Iteration: 53412 Dual objective = 1000.115813
Elapsed time = 623.70 sec. (54000 iterations).
Iteration: 54302 Dual objective = 1005.103449
Iteration: 54524 Dual objective = 1007.738138
Elapsed time = 642.70 sec. (55000 iterations).
Iteration: 55229 Dual objective = 1011.468584
Elapsed time = 658.98 sec. (56000 iterations).
Iteration: 56096 Dual objective = 1014.691906
Iteration: 56691 Dual objective = 1017.555787
Elapsed time = 677.47 sec. (57000 iterations).
Iteration: 57283 Dual objective = 1017.829990
Elapsed time = 688.55 sec. (58000 iterations).
Iteration: 58389 Dual objective = 1018.505012
Iteration: 58823 Dual objective = 1022.404906
Elapsed time = 698.63 sec. (59000 iterations).
Iteration: 59531 Dual objective = 1026.579740
Elapsed time = 712.69 sec. (60000 iterations).
Iteration: 60479 Dual objective = 1031.111772
Iteration: 60913 Dual objective = 1047.336122
Elapsed time = 728.16 sec. (61000 iterations).
Iteration: 61741 Dual objective = 1057.632392
Elapsed time = 743.53 sec. (62000 iterations).
Iteration: 62452 Dual objective = 1064.304185
Iteration: 62932 Dual objective = 1069.534720
Elapsed time = 758.78 sec. (63000 iterations).
Iteration: 63812 Dual objective = 1084.547497
Elapsed time = 772.72 sec. (64000 iterations).
Iteration: 64416 Dual objective = 1087.997487
Elapsed time = 784.45 sec. (65000 iterations).
Iteration: 65457 Dual objective = 1097.822139
Iteration: 65997 Dual objective = 1098.990910
Elapsed time = 799.75 sec. (66000 iterations).
Iteration: 66741 Dual objective = 1110.122537
Elapsed time = 815.55 sec. (67000 iterations).
we can see it used 20's sec to solve MIP root node, but used 800's sec still can not finish LP, since MIP can delete more columns and rows in presolve, so I wonder is there any method I can solve MIP root node, and extract the LP solutions. Thanks.
#CPLEXOptimizers#DecisionOptimization