Skip to main content

Unbounded MILP

Answered

Comments

6 comments

  • Simranjit Kaur
    Gurobi Staff Gurobi Staff

    Hi,

    You are correct - unbounded rays are only supported for continuous linear models with no integer variables. For unbounded IP/MIP models, you can relax the integrality conditions in your model (for example, by using model.relax()) and query the unbounded ray for this relaxed model. This may give you insight into why your MILP is also unbounded. 

    Hope this helps.

    Cheers,
    Simran

    0
  • Efthymia Kostopoulou
    Gurobi-versary
    Conversationalist
    First Question

    Thank you Simranjit. However, the LP relaxation is feasible for my problem. 

    0
  • Simranjit Kaur
    Gurobi Staff Gurobi Staff

    Can you please query the status of the relaxed model after it is solved and share the result?

    relaxed_model = model.relax()
    relaxed_model.optimize()
    print( "Satus", relaxed_model.Status)

    Also please share the status of your MILP model after it is solved.

    0
  • Efthymia Kostopoulou
    Gurobi-versary
    Conversationalist
    First Question

    LP relaxation: Status: 2

    MILP problem: Status: 4

    0
  • Simranjit Kaur
    Gurobi Staff Gurobi Staff

    Thanks, Efthymia, for sharing the status codes.

    As described in our Optimization Status Codes description, a status code of 4 means that the model can either be unbounded or infeasible. Since the LP relaxation of your model is feasible (and not unbounded), your MILP model is most likely to be infeasible. To verify this, please solve your MILP model after setting the DualReductions parameter to 0. For more information on this status, please see How do I resolve the error "Model is infeasible or unbounded"? 

    If your MILP model is infeasible, you can follow the Knowledge Base article How do I determine why my model is infeasible? to determine the cause of the infeasibility.

    Hope this helps.

    Best regards,
    Simran

    0
  • Efthymia Kostopoulou
    Gurobi-versary
    Conversationalist
    First Question

    Thank you for your help Simran.

    0

Please sign in to leave a comment.