Originally posted by: VivekPeriaraj
Hello,
I have a small confusion related to how reduced cost should be computed in CPLEX. I wrote out the dual form of the LP and for one of the variables I have this as the dual constraint:
XDEPOUT(d1,c1,t1): - CONSERVDEPOT(d1,t1) - CONSERVCUSTOMER(c1,t1)
+ CUSTONCE(c1) + DEPOTONCE(d1)
- 7.6 DEMANDSATISFACTION(c1)
+ 240 TIMEDELIVERY(d1,c1,t1) + 240 PERISHABLE(d1,c1,t1)
+ c1 + u59043 >= -0.639637549890033
CONSERV* is = constraint and CPLEX reports both +ve and -ve duals. (as reported by CPXgetpi())
*ONCE is <= constraint and CPLEX reports always -ve duals.
DEMAND* >= constraint and CPLEX reports +ve duals.
In the above constraint, I am not getting 'c - Ap' type thing used for reduced costs but 'c + Ap'?. Also, the objective coefficient for this variable in the primal is +0.639637549890033. But - is being added. Primal LP is min.
Regards,
Vivek.
#CPLEXOptimizers#DecisionOptimization