Gurobipy Parallism Multscenario or multiprocessing
AnsweredHello,
I have a question regarding the multiscenario capability of gurobi. I am using gurobipy to solve a complex MIP network routing problem iteratively. I was wondering if once multiple scenarios are defined and the "m.optimize()" command is executed are the scenarios being solved sequentially or distributed to cores and solved in parallel? I have seen posts on using multiprocessing in python I believe with separate environments for each model and was wondering if that might be a better alternative or if the multiscenario capability will suffice. Thank you.
-
Official comment
This post is more than three 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. -
Hi,
The multiscenario feature tries to take advantage of parallelism as good as possible. Thus, in many cases, it should perform better than just solving all scenarios in parallel by hand. Unfortunately, this cannot be guaranteed and thus, you would have to try both approaches to be 100% certain.
Out of curiosity, could you share the multiscenario model you construct?
Since attaching files in the Community is not supported, we describe an alternative in Posting to the Community Forum.Best regards,
Jaromił0
Post is closed for comments.
Comments
2 comments