Skip to main content

Parallel Optimization in Custom Branch-and-Bound

Answered

Comments

1 comment

  • Ronald van der Velden
    • Gurobi Staff Gurobi Staff

    Hi Jaime,

    Instead of using Pool.map, you could look at a slightly lower-level approach where you start N processes and keep them running continuously (maintaining their own Gurobi environment object). Your would need to maintain your own communication between main and child processes (e.g. inform the child which constraints to add; inform the main which solution was calculated).

    Another idea could be using the multi-scenario functionality: depending on what "structurally identical" means, this might remove the need for multiprocessing, although it would likely increase runtime a bit.

    Kind regards,
    Ronald

    0

Please sign in to leave a comment.