Originally posted by: Olivia.w
Hi.
I am trying to solve an integer programming model by CPLEX.
At first, it works well on my MacBook. I coded in C++ in Xcode and got the following solution, whose status is optimal.
MIP search method: dynamic search.
Parallel mode: deterministic, using up to 4 threads.
Root relaxation solution time = 0.00 sec. (1.00 ticks)
Nodes Cuts/
Node Left Objective IInf Best Integer Best Bound ItCnt Gap
* 0+ 0 0.0000 920.0000 ---
0 0 248.1007 23 0.0000 248.1007 51 ---
0 0 246.3133 31 0.0000 Cuts: 11 73 ---
0 0 244.9282 5 0.0000 Cuts: 15 137 ---
* 0+ 0 244.9282 244.9282 -0.00%
0 0 cutoff 244.9282 244.9282 137 -0.00%
Elapsed time = 0.09 sec. (20.28 ticks, tree = 0.01 MB, solutions = 2)
Cover cuts applied: 1
Flow cuts applied: 1
Zero-half cuts applied: 5
Lift and project cuts applied: 1
Gomory fractional cuts applied: 5
Root node processing (before b&c):
Real time = 0.09 sec. (20.31 ticks)
Parallel b&c, 4 threads:
Real time = 0.00 sec. (0.00 ticks)
Sync time (average) = 0.00 sec.
Wait time (average) = 0.00 sec.
------------
Total (root+branch&cut) = 0.09 sec. (20.31 ticks)
solution:
Solution status: Optimal
Objective=244.928
But after I move the same program and test instance to a linux system and compiled with g++, Cplex outputs a solution as follows.
The objective value is better but It actually seems to be infeasible since I printed out the model and solution in detail.
MIP search method: dynamic search.
Parallel mode: deterministic, using up to 8 threads.
Root relaxation solution time = 0.00 sec. (1.00 ticks)
Nodes Cuts/
Node Left Objective IInf Best Integer Best Bound ItCnt Gap
* 0+ 0 0.0000 920.0000 ---
0 0 248.1007 23 0.0000 248.1007 51 ---
0 0 246.3133 31 0.0000 Cuts: 11 73 ---
0 0 244.9282 5 0.0000 Cuts: 15 137 ---
* 0+ 0 244.9282 244.9282 -0.00%
* 0 0 integral 0 245.1313 137 ---
Elapsed time = 0.08 sec. (20.64 ticks, tree = 0.01 MB, solutions = 2)
Cover cuts applied: 1
Flow cuts applied: 1
Zero-half cuts applied: 5
Lift and project cuts applied: 1
Gomory fractional cuts applied: 5
Root node processing (before b&c):
Real time = 0.08 sec. (20.66 ticks)
Parallel b&c, 8 threads:
Real time = 0.00 sec. (0.00 ticks)
Sync time (average) = 0.00 sec.
Wait time (average) = 0.00 sec.
------------
Total (root+branch&cut) = 0.08 sec. (20.66 ticks)
solution:
Solution status: Optimal
Objective=245.131
All I use are the default settings of CPLEX. Does anyone know what may cause this integral solution shown on linux which seems to be infeasible?
Thanks a lot.
#CPLEXOptimizers#DecisionOptimization