Originally posted by: SystemAdmin
>
> My issue is that in order to implement my version of Bender's with such a model, I need to have distinct dual values for both my UB and LB constraints. The CPLEX API in MATLAB provides reducedcosts (Cplex.Solution.reducedcosts), which essentially correspond to these values, though it is not clear whether the reducedcosts can be attributed to the LB or the UB constraints (i.e. whether the variable is tight at the lowerbound or upperbound).
>
> I realize that there are ways around this with a manual check, but I was wondering whether there is any way that I can have Cplex spit out distrinct dual values for the UB or LB constraints? Or is there some other information that I can use that can solve the issue for me?
AFAIK the only way to get dual values for bounds is through the reduced costs. I'm not familiar with the MATLAB interface, but I'm pretty sure what you are looking for is basis.colstat, which I suspect is the analog to IloCplex.getBasisStatuses in the Java API. The basis status of a bound variable should be one of basic (both duals are 0), lower (reduced cost gives dual for lower bound; dual for upper bound is 0) or upper (vice versa).
/Paul
Mathematicians are like Frenchmen: whenever you say something to them, they translate it into their own language, and at once it is something entirely different. (Goethe)
#CPLEXOptimizers#DecisionOptimization