Skip to main content

Our model is working but infeasible !

Answered

Comments

2 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.
  • Maliheh Aramon
    • Gurobi Staff

    Hi Hamza, 

    Please have a look at the article "How do I determine why my model is infeasible?". 

    The first step is to compute an IIS using the Model.computeIIS() method. The Gurobi Optimizer first needs to prove the model is infeasible before proceeding to finding a sub-system of constraints/bounds which are responsible for infeasibility. Given my experimentation of your model, it seems it takes time to prove infeasibility. How long did it take for the Gurobi to terminate with an infeasible status on your machine? 

    Instead of figuring out why the model is infeasible, another strategy is to figure out which changes should be done to the model to recover feasibility. To do this, you can use the Model.feasRelaxS() to find the smallest perturbation needed to recover feasibility. Please have a look at the article "How do I change variable and/or constraint bounds to make an infeasible model feasible using feasRelax?" to know how to interpret the solution given by the feasibility relaxation model. 

    Best regards,

    Maliheh

    1

Post is closed for comments.