Originally posted by: paddl
Hello everybody,
I have to solve a MIP with CPLEX. But the result is a solution, which is not feasible.
I start CPLEX in a terminal and load an *.lp file. CPLEX can read the lp-file and optimize the problem.
Note that I use the CPLEX default settings.
*****
CPLEX> read text.lp
Problem 'text.lp' read.
Read time = 0.03 sec. (0.65 ticks)
CPLEX> opt
Tried aggregator 14 times.
MIP Presolve eliminated 5386 rows and 2082 columns.
MIP Presolve modified 2034 coefficients.
Aggregator did 530 substitutions.
Reduced MIP has 796 rows, 660 columns, and 2584 nonzeros.
Reduced MIP has 172 binaries, 0 generals, 0 SOSs, and 0 indicators.
Presolve time = 0.05 sec. (28.12 ticks)
Found incumbent of value 166.800000 after 0.06 sec. (29.92 ticks)
Probing fixed 10 vars, tightened 14 bounds.
Probing time = 0.00 sec. (0.17 ticks)
Tried aggregator 5 times.
MIP Presolve eliminated 40 rows and 24 columns.
MIP Presolve modified 36 coefficients.
Aggregator did 24 substitutions.
Reduced MIP has 732 rows, 612 columns, and 2364 nonzeros.
Reduced MIP has 156 binaries, 0 generals, 0 SOSs, and 0 indicators.
Presolve time = 0.00 sec. (2.07 ticks)
Probing time = 0.00 sec. (0.16 ticks)
Clique table members: 128.
MIP emphasis: balance optimality and feasibility.
MIP search method: dynamic search.
Parallel mode: deterministic, using up to 2 threads.
Root relaxation solution time = 0.03 sec. (7.03 ticks)
Nodes Cuts/
Node Left Objective IInf Best Integer Best Bound ItCnt Gap
* 0+ 0 166.8000 68.8000 451 58.75%
* 0+ 0 164.0000 68.8000 451 58.05%
0 0 cutoff 164.0000 164.0000 451 0.00%
Root node processing (before b&c):
Real time = 0.04 sec. (8.11 ticks)
Parallel b&c, 2 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.04 sec. (8.11 ticks)
Solution pool: 2 solutions saved.
MIP - Integer optimal solution: Objective = 1.6400000000e+02
Solution time = 0.12 sec. Iterations = 451 Nodes = 0
Deterministic time = 40.50 ticks (336.97 ticks/sec)
********************************************************************
After optimization, I display some variables and a constraints. But the variables do not fulfil the constraint.
**********************
Display which constraint(s): c5141
c5141: - q_2_12_12 + F_2_12_12 <= 0
CPLEX> dis sol var
Display values of which variable(s): q_2_12_12
Incumbent solution
Variable Name Solution Value
q_2_12_12 0.400000
CPLEX> dis sol var
Display values of which variable(s): F_2_12_12
Incumbent solution
Variable Name Solution Value
F_2_12_12 0.600000
******************************************
Obviously. - q_2_12_12 + F_2_12_12 >= 0 and not - q_2_12_12 + F_2_12_12 <= 0.
Can somebody give me a hint to fix the problem, please?
#CPLEXOptimizers#DecisionOptimization