Skip to main content

PDPTW model is infeasible using python gurobi

Answered

Comments

5 comments

  • Official comment
    Simranjit Kaur
    • Gurobi Staff
    This post is more than three 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 why not try our AI Gurobot?.
  • Eli Towle
    • Gurobi Staff

    Hi Xin,

    I would try computing an IIS to determine which constraints are contributing to the infeasibility. This should help you identify if there is a problem with the constraints, or even the data itself. In Python:

    model.computeIIS()
    model.write('model.ilp')

    The resulting ILP file contains a subset of constraints/bounds that together are infeasible. However, removing any one of the constraints/bounds from this set results in a feasible subsystem.

    Thanks,

    Eli

    0
  • Xin Yuan
    • Gurobi-versary
    • First Comment
    • First Question

    Hi Eli,

    Thank you for your help! I'll try to follow your advice now. May I ask you again if I have any questions?

    Thanks,

    Xin

    0
  • Eli Towle
    • Gurobi Staff

    Hi Xin,

    Sure, I try to answer questions here when I have some spare time.

    Eli

    0
  • Nathalie Koopman
    • Gurobi-versary
    • First Comment

    Would it be possible to reshare the code completely in English?

    0

Post is closed for comments.