Skip to main content

Debugging Model

Answered

Comments

2 comments

  • Official comment
    Simranjit Kaur
    • Gurobi Staff

    This post is more than two 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 try Gurobot, our chatbot interface offering instant, expert-level support.

  • Ryuta Tamura
    • 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

Post is closed for comments.