Skip to main content

Gurobi does not optimize result (always the same result)

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?.
  • Matthias Miltenberger
    • Gurobi Staff

    Hi Kanan!

    You could write an LP file of your model to better see whether it actually represents what you are trying to model:

        model.write('model.lp')

    Your code is, unfortunately, a bit hard to read/run because the indention is lost.

    Cheers,
    Matthias

    0
  • Kanan Allahyarli
    • Gurobi-versary
    • First Comment
    • First Question

    Yeah...  I did not know the command for the code to be represented in the right way. 

    0

Post is closed for comments.