メインコンテンツへスキップ

Do Variable Bounds create constraints in the solver?

回答済み

コメント

2件のコメント

  • Mario Ruthmair
    • Gurobi Staff 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

サインインしてコメントを残してください。