Skip to main content

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

Answered

Comments

1 comment

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

Please sign in to leave a comment.