Originally posted by: xspeng
There are three goals in my model,i use flow control to solve with the first objective:TOTAL_COST, then the second objective: ENVIM while freezing the first one, and finally the third : SCIM while freezing the first one and second one. But the results were incorrect, I don't know am i coding right or wrong, would you examine these for me, please?
My control flow code as follow:
main
{
thisOplModel.generate();
cplex.setObjCoef(thisOplModel.vSCIM,0);
cplex.solve();
thisOplModel.postProcess();
var ENVIM=thisOplModel.ENVIM.solutionValue;
thisOplModel.vENVIM.LB=ENVIM;
thisOplModel.vENVIM.UB=ENVIM;
cplex.setObjCoef(thisOplModel.vSCIM,1);
cplex.solve();
thisOplModel.postProcess();
cplex.setObjCoef(thisOplModel.vENVIM,0);
cplex.solve();
thisOplModel.postProcess();
var TOTAL_COST=thisOplModel.TOTAL_COST.solutionValue;
thisOplModel.vTOTAL_COST.LB=TOTAL_COST;
thisOplModel.vTOTAL_COST.UB=TOTAL_COST;
cplex.setObjCoef(thisOplModel.vENVIM,1);
cplex.solve();
thisOplModel.postProcess();
}
#DecisionOptimization#OPLusingCPLEXOptimizer