Skip to main content

Why is Gurobi taking so much time after finding the optimal solution?

Answered

Comments

3 comments

  • Official comment
    Greg Glockner
    Gurobi Staff Gurobi Staff

    By default, after solving a MIP, AMPL fixes the integer variables and solves the LP relaxation. This is known as the fixed LP. To prevent this, set the AMPL parameter basis=1.

  • 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?.
  • Hur Butun
    Gurobi-versary
    First Question
    First Comment

    Thank you for your reply! Sorry I didn't know that it was related to AMPL rather than Gurobi. Adding basis=0 in AMPL's gurobi_options does the trick.

    0

Post is closed for comments.