Is Gurobi parallel by default?

2,524 views
Skip to first unread message

Swaprava Nath

unread,
Feb 2, 2016, 1:26:35 PM2/2/16
to Gurobi Optimization
Hi,

I'm newbie in Gurobi. Installed the 64 bit linux version 6.5 on my machine. I have a very large linear program to solve and it will help if the code can be parallelized. I've not done writing the code, but want to know if the solver will parallelize it automatically. If not, how should I make the code parallel? Unfortunately, the LP I'm trying to solve needs to involve all variables, and hence I can't pick a chunk out and solve that in a parallel for loop.

Best,
Swaprava

Kostja Siefen

unread,
Feb 4, 2016, 6:52:20 AM2/4/16
to Gurobi Optimization
Hi Swaprava,

Gurobi is designed to run on systems with multiple CPU cores (see http://www.gurobi.com/products/features-benefits). Gurobi will use all available CPU cores by default.
For LP models the default concurrent solver invokes multiple algorithms simultaneously on multi-core systems, returning the optimal basis from the one that finishes first (see http://www.gurobi.com/documentation/6.5/refman/continuous_models.html).

Best wishes,
Kostja

Swaprava Nath

unread,
Feb 4, 2016, 10:27:02 AM2/4/16
to Gurobi Optimization
Great, Thanks for the info. However, while running the code, I observe that only one core of the 4 core processor is active. Is there a setting I need to enable?

Kostja Siefen

unread,
Feb 4, 2016, 10:33:30 AM2/4/16
to Gurobi Optimization
Depending on your model and the algorithms involved Gurobi may not utilize full CPU capacity at all times. Make sure you do not limit the number of running threads (with the Threads parameter).

Kostja

Swaprava Nath

unread,
Feb 4, 2016, 10:43:04 AM2/4/16
to gur...@googlegroups.com
That is possible, since in the problem, because of the large number of variables, the memory is already overloaded - maybe that is creating the slowdown.
--

---
You received this message because you are subscribed to a topic in the Google Groups "Gurobi Optimization" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/gurobi/7Q0s080QDi8/unsubscribe.
To unsubscribe from this group and all its topics, send an email to gurobi+un...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages