Hi
I'm trying to get the reduced costs for a MIP. I solve the MIP model (called m) to optimality and then used fixed() to copy it. Then I et the reduced costs that are all nonnegative. Which I don't get as the solution is not optimal.
Here's the code, m is the MIP model. All the variables are integers.
m.optimize()
m2 = m.fixed()
m2.optimize()
red_costs = [v.RC for v in m2.getVars()]
all values in red_costs are non negative. Which would imply the fixed solution to be optimal. Except it's not (the LP model has a lower objective value).
What's that I missing?
Thanks to anybody that'll reply