Skip to main content

Fails to Stop After Time Limit Reached in Lazy Callback

Answered

Comments

3 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?.
  • Jaromił Najman
    Gurobi Staff Gurobi Staff

    Hi,

    It seems like after the optimization has been interrupted due to reaching the time limit, it has been restarted by a subsequent call to \(\texttt{model.optimize()}\). Could you share code snippets showing your callback and optimization calls?

    Best regards,
    Jaromił

    0
  • Cheng Guo
    Gurobi-versary
    First Question
    First Comment

    Hi Jaromil, 

    It was indeed caused by calling optimize() for a second time, by mistake. I had thought it was because of the max constraint tolerance limit. Sorry for this confusion and thank you very much for your time. 

    Best,

    Cheng

    0

Post is closed for comments.