Skip to main content

Infeasible model in Matlab according to Gurobi

Answered

Comments

2 comments

  • Official comment
    Simranjit Kaur
    • Gurobi Staff
    This post is more than two 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 try Gurobot, our chatbot interface offering instant, expert-level support.
  • Jaromił Najman
    • Gurobi Staff

    Hi László,

    There can be a few reason for the difference. One reason might be different tolerances used by Gurobi and the built-in Matlab solver.

    Another reason might be that the two models you solve are slightly different. You could write your model to a human-readable LP file via the gurobi_write() function. You can open the file with any standard text editor and analyze whether you model looks as it should.

    You can also let Gurobi compute an IIS, cf. How do I determine why my model is infeasible?. For this you would have to use the gurobi_iss() function and write the resullt to a file via the gurobi_write() function.

    Best regards, 
    Jaromił

    0

Post is closed for comments.