Skip to main content

Gurobi python negative equality constraints and infeasible solution

Answered

Comments

1 comment

  • Eli Towle
    Gurobi Staff Gurobi Staff

    By default, variables added to the model via Model.addVar() or Model.addVars() have a lower bound of 0. To resolve the issue, change the lower bound on \( \texttt{x} \). For example:

    x = m.addVar(lb=-GRB.INFINITY, name="x")
    1

Please sign in to leave a comment.