Skip to main content

Infeasible Result For Double Row Layout Problem

Awaiting user input

Comments

4 comments

  • 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

Please sign in to leave a comment.