Skip to main content

Do Variable Bounds create constraints in the solver?

Answered

Comments

3 comments

  • Official comment
    Simranjit Kaur
    • Gurobi Staff
    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.
  • Mario Ruthmair
    • Gurobi Staff

    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,
    Mario

    0
  • Iason Liagkas
    • Gurobi-versary
    • Detective
    • Thought Leader

    Thanks Mario.

    0

Post is closed for comments.