Skip to main content

Incorrect Result for single variable problem

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?.
  • Silke Horn
    • Gurobi Staff

    By default, all variables have a lower bound of 0. You should change the definition of y as follows:

    y = m.addVar(lb=-gp.GRB.INFINITY, name = 'y')
    1
  • Varun Deshpande
    • Gurobi-versary
    • First Question
    • First Comment

    Worked. Thanks!!

    0

Post is closed for comments.