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

Debugging Model

回答済み

コメント

1件のコメント

  • Ryuta Tamura
    Gurobi Staff Gurobi Staff

    Hi Shesha,

    These articles may help: How do I diagnose a wrong result?, Why does Gurobi report my model is infeasible when it has a feasible solution?.

    The model.computeIIS() finds the set of the constraints that are the cause of infeasibility. That can be written as "ilp" file for debugging.

    model.optimize()
    if model.Status == GRB.INFEASIBLE:
    model.computeIIS()
    model.write("IIS.ilp")

    Debugging can be difficult when there is a large amount of data or when the model is complex. So I recommend to start with a small data set/simple model to identify factors that may lead infeasibility.

    Thanks,
    Ryuta

    0

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