Originally posted by: regisgomes
Hi Junglas,
I want the value of lhs of a constraint that I setting a name in best solution, but specifically when the best solution does not have all variables with integer value.
mp.constraints.setNames("r1");
I do not know properly pass the constraint which I want the value of the lhs best solution is not entire. I tried this way but it did not work:
cout << "r1 " << mp.cplex.getAX(mp.constraints[2]) << endl;
I used the number 2 just to test, I do not know how or if I can use the name "r1" constraint.
Thanks.
#CPLEXOptimizers#DecisionOptimization