Skip to main content

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

Answered

Comments

2 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.

  • 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

Please sign in to leave a comment.