Skip to main content

How to properly implement constraints with more than two "equal"-operators in Python

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 An,

    Usually debugging such an issue can be done by writing out the model to a human-readable LP file.

    model.write("myModel.lp")

    You can open the generated file with any standard text editor. There you should check, whether the constraints of interest actually look as expected. This should be a good start to find the source of the issue.

    Best regards, 
    Jaromił

    0

Post is closed for comments.