メインコンテンツへスキップ

How to control the number of iterations

回答済み

コメント

1件のコメント

  • Riley Clement
    Gurobi Staff 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

サインインしてコメントを残してください。