Skip to main content

Infeasible Result For Double Row Layout Problem

Awaiting user input

Comments

5 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.
  • Simranjit Kaur
    • Gurobi Staff

    You can obtain additional information about the constraints R769 and R823 in the IIS by exporting an .ilp format file using 

    model.write("conflict.ilp")

     

    0
  • Enprimarika Nursari
    • Gurobi-versary
    • First Comment
    • First Question

    I've already named the constraints one by one, and i got this message

    Computing Irreducible Inconsistent Subsystem (IIS)... 
        Constraints          |            Bounds           |  Runtime
          Min       Max     Guess   |   Min       Max     Guess   |
    --------------------------------------------------------------------------
            0       931         -         0        81         -           0s
            7         7         -         0         0         -           1s

    IIS computed: 7 constraints, 0 bounds
    IIS runtime: 0.60 seconds (0.05 work units)

    The following constraints form the infeasible subsystem:
    CS13[1]
    CS13[7]
    CS18[3,9]

    0
  • Enprimarika Nursari
    • Gurobi-versary
    • First Comment
    • First Question
    from this constraint

    # 9
    model.addConstrs(((l[i]/2) <= X[i] for i in N), name='CS13')
    model.addConstrs((L-(l[i]/2) >= X[i] for i in N), name='CS14')

    and

    M = model.addVars(Cobj, vtype = grb.GRB.CONTINUOUS)
    NewY = U
    model.addConstrs((X[i] <= M[i,j]*NewY[i,j] for i in N for j in N if i<j), name='CS16')
    model.addConstrs((X[j] <= M[i,j]*(1-NewY[i,j]) for i in N for j in N if i<j), name='CS17')
    model.addConstrs((X[i] + X[j] >= Rdist[i,j] for i in N for j in N if i<j), name='CS18')

    How can i read and solve this infeasibility problem? Thank You.
    0
  • Simranjit Kaur
    • Gurobi Staff

    Thanks, Enprimarika.

    It is a good step to name the constraints. However, without knowing the coefficients and the RHS of the constraints in the IIS, it is hard to tell what is leading to the infeasibility. 

    Could you please execute the following code and share the contents of the conflict.ilp file?

    model.optimize()
    if
    model.status == grb.GRB.INFEASIBLE:     model.computeIIS()
    model.write("conflict.ilp")

    - Simran

     

    0

Post is closed for comments.