Multithreaded CBC solving using ortools pywraplp #4344
Unanswered
goodman-dev
asked this question in
Build and configuration issues
Replies: 1 comment
-
it was crashing, leaking memory... We disabled it. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello. I hope this is the correct place for this question, apologies if not.
I'm using ortools' pywraplp to solve MILP problems in Python, as below, with
ortools
installed through Pip.I get the following output when running this, seeming to indicate that the underlying CBC solver doesn't have multithread support. I'm on Mac, and have tested both on ARM & x86.
Is there a way to instruct pywrap to use specific Cbc binaries/shared-libraries, or alternatively to compile ortools & pywrap from source with multithreading enabled?
I've compiled Cbc with multithreading support myself and exported my model to LP format, and have confirmed that enabling multithreading makes a significant difference to the performance, so I'm very keen to utilise this capability through Python.
Beta Was this translation helpful? Give feedback.
All reactions