Skip to main content

Why are there constraint expressions that are not displayed when I output the .ilp file and look at the overview of the entire model?

Answered

Comments

3 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.
  • Simon Bowly
    • Gurobi Staff

    Hi Ryusei,

    When you write an ILP file, Gurobi writes the computed Irreducible Inconsistent Subsystem (IIS) of your infeasibly model to the named file. This is not the full model, but is instead a subset of constraints causing infeasibility.

    If you wish to view the entire model as a text file, you should instead write an LP file. Gurobi determines which file type to write based on the extension you provide, so you should instead use

    model.write("model.lp")

    if you want to view all the constraints in the final model.

    0
  • ryusei toshima
    • Gurobi-versary
    • First Comment
    • First Question

    Happy New Year!
    Thanks for your prompt advice.
    Sorry I couldn't spot a simple mistake.

    0

Post is closed for comments.