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

How Can I Locate the Constraints that Causing Infeasibility

回答済み

コメント

2件のコメント

  • 正式なコメント
    Simranjit Kaur
    • Gurobi Staff Gurobi Staff
    This post is more than three years old. Some information may not be up to date. For current information, please check the Gurobi Documentation or Knowledge Base. If you need more help, please create a new post in the community forum. Or why not try our AI Gurobot?.
  • Jaromił Najman
    • Gurobi Staff Gurobi Staff

    Hi,

    I am wondering if there is any function I can use to locate which constraints cause the infeasibility?

    Did you have a look at the Knowledge Base article How do I determine why my model is infeasible?
    In addition to the computeIIS()  function, you can use the feasRelax() function to create a feasibility relaxation and see which changes you have to make in order to achieve feasibility.

    Can I print the constraint name using the computerIIS() function?

    Yes, once an IIS is computed, you can access the IIS constraints and its attributes as explained in the documentation of the computeIIS() function.

    Best regards,
    Jaromił

    0

投稿コメントは受け付けていません。