Hi, everyone.
Any one can help with the shadow price for MIP in CPLEX? (From google search I see several posts about this topic in IBM forum before but they are not visible now.)
Currently I am trying to get the shadow price (dual values) for the continuous constraints in mixed integer models in CPLEX, using the solveFixed() method but failed.
I am not sure if this is the correct way to get the shadow price for MIP. if yes, please help to correct me where I am wrong. if not, please let me know what should I do to get the shadow price for MIP.
The code is shown below.
if (cplex.solve()) {
_logger.info("Successfully solved.");
if(cplex.solveFixed() {
_logger.info("SolveFixed Successfully solved.");
}
else {
_logger.info("SolveFixed failed.");
}
}
The log file shows as follows:
Successfully solved.
SolveFixed failed.
Thank a lot.
------------------------------
Hui Zhao
------------------------------
#DecisionOptimization