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

Parallelized solving of Gurobi models in Python

回答済み

コメント

4件のコメント

  • 正式なコメント
    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.
  • David Torres Sanchez
    • Gurobi Staff

    The error is misleading. Your code doesn't work without the parallel loop (in series).

    I recommend debugging that and freeing the models created in \(\texttt{build_model}\) before you enter the parallel part.
    Particularly, I think the error is that you need to call \(\texttt{model.update()}\) before \(\texttt{model.getConstrByName}\).

    Cheers, 
    David

    0
  • David Torres Sanchez
    • Gurobi Staff

    Also, as a customer, you can open a ticket for faster 1-1 support.

    Cheers, 
    David

    0
  • Lene Grübler
    • Gurobi-versary
    • First Comment
    • First Question

    Thanks! I was missing the model.update()

    0

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