Skip to main content

returned solution is not optimal

Answered

Comments

3 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 Milan,

    You could use the gurobi_write() function to generate a human-readable LP file which you can then analyze by hand to check whether the model looks what it should like.

    You could try setting the MIPGap parameter to 0. This will force Gurobi to search for a true global optimum.

    Best regards, 
    Jaromił

    0
  • Milan Cisty
    • Gurobi-versary
    • First Comment
    • First Question

    Hi Jaromil,

    I tried writing to lp already and didn't find the error, but your advice about the MIPGap parameter helped. Thanks for your help!

    Milan

    0

Post is closed for comments.