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

Warning: linear constraint 0 and linear constraint 2 have the same name

回答済み

コメント

4件のコメント

  • Gwyneth Butera
    • Gurobi Staff

    Hi Ruud - This sounds like it might be the known bug listed here: https://docs.gurobi.com/projects/optimizer/en/current/reference/releasenotes/knownbugs.html

    Can you test the workaround and see if that resolves your issue?

    0
  • Ruud Visser
    • First Question
    • First Comment

    Thank you, my issue indeed appears to be the same as that bug. I will test the workaround and let you know if that works.

    0
  • Riley Clement
    • Gurobi Staff

    Hi Ruud,

    This issue is earmarked to be fixed when we release v13.0.1 later this year.

    For the record, these days we recommend that users avoid using addConstrs.  The performance improvements it once offered disappeared as Python continued to evolve over the years.

    - Riley

    0
  • Ruud Visser
    • First Question
    • First Comment

    Thanks, Riley. We use both addConstr and addConstrs in our models, and only some of the addConstrs calls are prone to this issue. We've changed those with the suggested workaround and that fixes the problem for us. You can consider this ticket closed.

    0

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