Skip to main content

How to control the number of iterations

Answered

Comments

1 comment

  • Riley Clement
    • Gurobi Staff

    Hi Frederic,

    You have a typo in your code:

    eg1.addConstr(50*x1+20*x2 <= 4800, "resource_machine")

    should be

    eg1.addConstr(50*x1+20*x2 <= 48000, "resource_machine")

    The output of diet.py looks normal.

    - Riley

    0

Please sign in to leave a comment.