Skip to main content

Solved in 0 iterations and 0.02 seconds Infeasible or unbounded model

Answered

Comments

5 comments

  • Official comment
    Simranjit Kaur
    Gurobi Staff 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 Gurobi Staff

    Hi Mohamed,

    The first nine models you solve are either infeasible or unbounded. The last model you solve is feasible with an optimal objective value of -2111.190358. Is this different from what you expected?

    Thanks!

    Eli

    0
  • Mohamed AlAshery
    Gurobi-versary
    First Comment
    First Question

    Thanks for your comment!

    They are for the same model. When I run the model, it executes multiple iterations, with each iteration saying "Infeasible or unbounded model", except the last one when it reaches a feasible solution. I hope it is clearer now.

    0
  • Eli Towle
    Gurobi Staff Gurobi Staff

    Hi Mohamed,

    Based on the log files, it looks like the MATLAB code you're running iteratively adds constraints to the model and re-solves it until the model has a finite solution. This looks normal to me. However, I can't say anything about the correctness of the MATLAB code, as this depends on the theory behind the algorithm and the correctness of the implementation.

    Thanks!

    Eli

    0
  • Mohamed AlAshery
    Gurobi-versary
    First Comment
    First Question

    Hi Eli,

    Thank you so much for your feedback.

     

    Mohamed

    0

Post is closed for comments.