Originally posted by: Zak86
Hi guys,
I work with CPLEX package in JAVA using Eclipse.
I have to solve a binary LP problem and i have to begin with the solution of the relaxed problem. I mean that i have to change the solution binary variable ( which is an array) to a continuous (or fractional ) variable in the interval [0,1].
So, in the declaration of this variable for the relaxed LP, instead of :
IloIntVar[] x = cplex.boolVarArray(N);
I put :
IloNumVar[] x = cplex.numVarArray(N, 0.0, 0.1) ; in order to have a real-type solution.
For the first time that i execute ( Run ) the main class, i got this message :
Parallel mode: deterministic, using up to 4 threads for concurrent optimization.
Tried aggregator 1 time.
LP Presolve eliminated 20046 rows and 7939 columns.
Aggregator did 4032 substitutions.
Reduced LP has 181 rows, 189 columns, and 3223 nonzeros.
Presolve time = 0.02 sec. (12.31 ticks)
Initializing dual steep norms . . .
Reinitializing dual norms . . .
Iteration log . . .
Iteration: 1 Dual objective = 1.000000
Markowitz threshold set to 0.1
Iteration: 2 Dual objective = 1.000000
Iteration: 3 Dual objective = 1.000000
Iteration: 5 Dual objective = 1.000000
Iteration: 6 Dual objective = 1.000000
Markowitz threshold set to 0.99999
Iteration: 7 Dual objective = 1.000000
Iteration: 8 Dual objective = 1.000000
Iteration: 10 Dual objective = 1.000000
Iteration: 12 Dual objective = 1.000000
Iteration: 14 Dual objective = 1.000000
Iteration: 15 Dual objective = 1.000000
Iteration: 17 Dual objective = 1.000000
Iteration: 18 Dual objective = 1.000000
Iteration: 20 Dual objective = 1.000000
Iteration: 22 Dual objective = 1.000000
Iteration: 24 Dual objective = 1.000000
Iteration: 26 Dual objective = 1.000000
Iteration: 28 Dual objective = 1.000000
Iteration: 29 Dual objective = 1.000000
Iteration: 31 Dual objective = 1.000000
Iteration: 33 Dual objective = 1.000000
Iteration: 36 Dual objective = 1.000000
Iteration: 38 Dual objective = 1.000000
Iteration: 40 Dual objective = 1.000000
Iteration: 42 Dual objective = 1.000000
Iteration: 44 Dual objective = 1.000000
Iteration: 45 Dual objective = 1.000000
Iteration: 47 Dual objective = 1.000000
Reinitializing dual norms . . .
Reinitializing dual norms . . .
Markowitz threshold set to 0.1
Iteration log . . .
Iteration: 1 Dual objective = 1.000000
Markowitz threshold set to 0.99999
Iteration: 2 Dual objective = 1.000000
Iteration: 3 Dual objective = 1.000000
Iteration: 5 Dual objective = 1.000000
Iteration: 6 Dual objective = 1.000000
Iteration: 7 Dual objective = 1.000000
Iteration: 8 Dual objective = 1.000000
Iteration: 10 Dual objective = 1.000000
Iteration: 12 Dual objective = 1.000000
Iteration: 14 Dual objective = 1.000000
Iteration: 15 Dual objective = 1.000000
Iteration: 17 Dual objective = 1.000000
Iteration: 18 Dual objective = 1.000000
Iteration: 20 Dual objective = 1.000000
Iteration: 22 Dual objective = 1.000000
Iteration: 24 Dual objective = 1.000000
Iteration: 26 Dual objective = 1.000000
Iteration: 28 Dual objective = 1.000000
Iteration: 29 Dual objective = 1.000000
Iteration: 31 Dual objective = 1.000000
Iteration: 33 Dual objective = 1.000000
Iteration: 36 Dual objective = 1.000000
Iteration: 38 Dual objective = 1.000000
Iteration: 40 Dual objective = 1.000000
Iteration: 42 Dual objective = 1.000000
Iteration: 44 Dual objective = 1.000000
Iteration: 45 Dual objective = 1.000000
Iteration: 47 Dual objective = 1.000000
Dual simplex solved model.
And for the second time that i execute the main class, without changing anything in the code ( and it's very mysterious ), i got this message :
Parallel mode: deterministic, using up to 4 threads for concurrent optimization.
Infeasible column 'x2'.
Presolve time = 0.00 sec. (1.95 ticks)
Can you help me please to correctly get the relaxed solution ? I have a doubt on the declaration of the output variable x . Note that , all the message that i'm getting now are the second message.
Is there any other method to solve directly the relaxed LP without modification on the declaration of the variables ?
Thank you very much,
Zak
#DecisionOptimization#OPLusingCPLEXOptimizer