Skip to main content

Free model after interrupt (ctrl-c)

Answered

Comments

2 comments

  • Jaromił Najman
    Gurobi Staff Gurobi Staff

    Hi Jake,

    I am not a Julia expert but I think that the Knowledge Base article How do I terminate Gurobi with SIGKILL? might give you an idea of how to handle the \(\texttt{GRBterminate}\) call properly. The important thing to know is that the terminate call may take a while to process the information and terminate all threads. This is what you need to capture and wait for before freeing the model.

    I hope this helps.

    Best regards, 
    Jaromił

    1
  • jake roth
    Gurobi-versary
    Curious
    Conversationalist

    Ahh, thank you for pointing out the waiting requirement!

    0

Please sign in to leave a comment.