Originally posted by: MichaelPoss
Dear all,
I am solving a LP with CPLEX 12.2 concert technology for JAVA.
If I understood well, a slack variable for a constraint "c^t x <= b" should always be negative. Hence I don't understand how the following can happen.
The following code
IloRange test = cplex.addLe(lin,0);
cplex.solve();
System.out.println(test);
System.out.println("last cut slack: "+cplex.getSlack(test));
returns
IloRange : -infinity <= 1.0*pi[0]
28 + 1.0*pi[0]
46 + 4.0*pi[3]
22 + 4.0*pi[3]
28 + 3.0*pi
2228 + 1.0*pi
2246 - 14.0*alpha <= 0.0
last cut slack: -17.699452416918497
Thanks in advance,
Michael.
#CPLEXOptimizers#DecisionOptimization