Skip to main content

Infeasible model in Matlab according to Gurobi

Answered

Comments

1 comment

  • Jaromił Najman
    Gurobi Staff 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

Please sign in to leave a comment.