Do Variable Bounds create constraints in the solver?
AnsweredHello guys, I am working on the Benders algorithm. I am wondering if I have a problem with a variable x with an upper bound of 1. Does that create a constraint of x<=1 on the solver? Because if that is the case I would have to create a cut for this to debug my algorithm.
Kind regards
Iason
0
-
Official comment
This post is more than two years old. Some information may not be up to date. For current information, please check the Gurobi Documentation or Knowledge Base. If you need more help, please create a new post in the community forum, or try Gurobot, our chatbot interface offering instant, expert-level support. -
Hi Iason,
Variable bounds are handled specially in the solver and not via an additional constraint. If you need to consider the dual values corresponding to those bounds in your Benders subproblem, you can access the reduced costs via variable attribute RC for basic solutions.
- If a variable is fixed, then RC is unbounded.
- If a variable has no bounds, then RC must be 0.
- If a variable is at its lower bound, RC >= 0.
- If a variable is at its upper bound, RC <= 0.
Best regards,
Mario0 -
Thanks Mario.
0
Post is closed for comments.
Comments
3 comments