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

Parallelized solving of Gurobi models in Python

回答済み

コメント

3件のコメント

  • 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

サインインしてコメントを残してください。