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

Request for help on a Resource Allocation Problem

回答済み

コメント

3件のコメント

  • Ronald van der Velden
    Gurobi Staff Gurobi Staff

    Hi Charles,

    "I print the IIS constraints and find they should not occur. "

    What do you mean by "should not occur"? Do you see constraints in the IIS that should not have been part of the model at all (which indicates an issue with your code), or do you have the impression that the combination of constraints as found, cannot result in infeasibility?

    You may want to refer to this article for additional ideas for debugging infeasibility.

    Kind regards,
    Ronald

    0
  • Chao Guo
    Gurobi-versary
    First Comment
    First Question

    Dear Ronald,

    Thank you for your provided reference!

    Sorry for my unclear expression. I see constraints in the IIS that should not have been part of the model at all. I would find out solution based on your reference.

    Thank you!

    Charles

    0
  • Ronald van der Velden
    Gurobi Staff Gurobi Staff

    Hi,

    You're welcome! If you're not doing it already, consider naming each constraint uniquely when creating it. You could write the full model (instead of just the IIS) to an LP file using model.write("test.lp") and manually inspect it. For small datasets, this often helps me understand if the generated model matches my expectations.

    Good luck!

    Kind regards,
    Ronald

    0

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