Skip to main content

Infeasible Model - IIS understanding

Answered

Comments

3 comments

  • Official comment
    Simranjit Kaur
    • Gurobi Staff
    This post is more than three 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 why not try our AI Gurobot?.
  • Eli Towle
    • Gurobi Staff

    Unless otherwise specified, the default lower bound on a variable in an LP model file is \( 0 \). So the model file really includes a fourth constraint/bound: \( z_{531} \geq 0 \). If you set \( x_1 = 5 \), then \( z_{531} \) must be negative (by the second constraint), which violates this lower bound.

    Note that the default lower bound on variables added with Model.addMVar() is \( 0 \). This is also true for the Model.addVar() and Model.addVars() methods. To add variables with no lower bound, add the argument \( \texttt{lb=-GRB.INFINITY} \) to the method call.

    0
  • Tom Wollschläger
    • Gurobi-versary
    • First Comment
    • First Question

    Thank you very much!

    0

Post is closed for comments.