Multithreading to solve MIP with open source solvers

1,076 views
Skip to first unread message

pranav

unread,
Jul 9, 2015, 8:19:13 PM7/9/15
to pyomo...@googlegroups.com
Hi,

Is there a way to specify the number of threads for solving a MIP while using open source solvers?

I tried using GLPK and CBC. I run the MIP on a Windows serrver.

I installed cbc 2.9.5:
For CBC:
I tried giving the option:
results = opt.solve(instance, suffixes = ['rc'], options = "threads=24", tee=True)

I get a message:
No match for threads
No match for 24

Please let me know if it is possible to specify multiple threads while using CBC on Windows server or is it only possible for Linux servers. Thank you.

Regards,
Pranav

Gabriel Hackebeil

unread,
Jul 10, 2015, 12:29:53 AM7/10/15
to pyomo...@googlegroups.com
Solver options should be set on the solver object’s “options” dictionary. Try this:

opt.options[‘threads’] = 1
results = opt.solve(instance, suffixes[‘rc’], tee=True)

Gabe

--
You received this message because you are subscribed to the Google Groups "Pyomo Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email to pyomo-forum...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Gabriel Hackebeil

unread,
Jul 10, 2015, 12:33:23 AM7/10/15
to pyomo...@googlegroups.com
Also, it could be that those solvers do not support multithreading. Have you checked their documentation?

Gabe

pranav

unread,
Jul 10, 2015, 7:42:52 PM7/10/15
to pyomo...@googlegroups.com
Hi,

Thank you Gabe. It seems that parallelization can be done on CBC only on the Linux version. Can you suggest me some open source solvers that allow multi threading on windows server for solving MIP?

Thank you.
Regards,
Pranav
Reply all
Reply to author
Forward
0 new messages