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

RROR: LoadError: Gurobi Error 10015: Cannot compute IIS on a feasible model

回答済み

コメント

3件のコメント

  • 正式なコメント
    Gwyneth Butera
    • Gurobi Staff

    For further information, you can have a look at our Knowledge Base article : How do I resolve the error "Model is infeasible or unbounded"?

  • 正式なコメント
    Simranjit Kaur
    • 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?.
  • Alison Cozad
    • Gurobi Staff

    There are a couple of ways to find the status of a solved model:

    1. In the log output:  In your case, the output it says "Optimal solution found (tolerance 1.00e-04)". So the model is not infeasible or unbounded.  If it were, you would see "Model is infeasible or unbounded".
    2. Status flag: The model will have a model.Status attribute that will return a Status Code.  If model.status is equal to GRB.INF_OR_UNBD (4), GRB.UNBOUNDED (5), or GRB.INFEASIBLE (3) then it is infeasible or unbounded.

    There is a good example of using the model status to determine whether or not to run IIS in lp.py.

    0

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