Skip to main content

Solvable Simultaneous Equations Returns "Infeasible model"

Answered

Comments

4 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?.
  • Thomas Opfer
    • Gurobi-versary
    • Thought Leader

    Without having verified this, I guess you are using the default lower bound of 0. You should add the variables with lower bound -INF.

    Best regards,
    Thomas

    1
  • Yen-Yu Chen
    • Gurobi-versary
    • First Question
    • First Comment

    Hi Thomas,

    Thanks for the reply. The problem was indeed caused by me not defining lower bound/upper bound. I added the bounds in the add variable section and now it works!

    0
  • Thomas Opfer
    • Gurobi-versary
    • Thought Leader

    The default upper bound should be +INF, so you should not have to specify it explicitly. But of course, it is perfectly ok to do so.

    Best regards,
    Thomas

    0

Post is closed for comments.