Solving thousands of QP parallelly on a machine
Dear all,
I need to solve 10 thousand small and independent quadratic programs in each iteration of my algorithm. Gurobi could solve each QP within 0.06s but it still takes roughly 15 mins to finish one iteration.
So is there any way to solve these 10 thousands QPs parallelly on one machine? If yes, could you show me a simple example on how to set up the solver and models? I'm using C++ and Gurobi 9.0. My machine has 12 cores available.
I appreciate your help.
Best,
Bo
-
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 why not try our AI Gurobot?. -
Dear Bo,
In C++, you could use the MPI package to run several instances of Gurobi in parallel on a single machine. It is a well known and widely used package with many tutorials.
Please note that you should then set the Threads parameter for each instance to 1.
Best regards,
Jaromił1
Post is closed for comments.
Comments
2 comments