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

2 comments

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

Please sign in to leave a comment.