Hi,
let me show you an example of what I would try:
Relax the integer constraints, solve, freeze the integer variables and then solve again.
dvar int+ Gas;
dvar float+ Chloride;
maximize
40 * Gas + 50 * Chloride;
subject to {
ctMaxTotal:
Gas + Chloride <= 50;
ctMaxTotal2:
3 * Gas + 4 * Chloride <= 180;
ctMaxTotal3:
3 * Gas + 2 * Chloride <= 150;
ctMaxChloride:
Chloride <= 40;
}
main
{
thisOplModel.generate();
cplex.solve();
var x=thisOplModel.Gas.solutionValue;
thisOplModel.convertAllIntVars();
thisOplModel.Gas.UB=x;
thisOplModel.Gas.LB=x;
cplex.solve();
writeln(thisOplModel.ctMaxTotal.dual);
}
regards
#DecisionOptimization#OPLusingCPLEXOptimizer