メインコンテンツへスキップ

Free model after interrupt (ctrl-c)

回答済み

コメント

3件のコメント

  • 正式なコメント
    Simranjit Kaur
    • Gurobi Staff
    This post is more than two 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 try Gurobot, our chatbot interface offering instant, expert-level support.
  • Jaromił Najman
    • 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

投稿コメントは受け付けていません。