Comments (7)
CBC (for windows non-parallel) is build into MiniZinc. To use Parallel CBC on windows you will have to recompile MiniZinc with the correct version of CBC and set this MiniZinc version to be used on the path.
See the instructions in the MiniZinc documentation: https://www.minizinc.org/doc-2.5.5/en/installation_detailed_windows.html#coin-or-cbc
from minizinc-python.
(Note that the answer to the general question in the title is to set the processes
argument in the solve
method: https://minizinc-python.readthedocs.io/en/latest/api.html#minizinc.instance.Instance.solve, but this is only supported when supported by the solver)
from minizinc-python.
Ok, so there is no chance to use the existing 'external' parallel CBC? I wanted to avoid to recompile because this usually doesn't work out of the box an produces long lasting pain ...
I cannot use Visual Studio, so is it possible to compile with MinGW?
And what about Gecode? Does it support parallelization?
from minizinc-python.
MiniZinc currently does not have an interface for an external version of CBC.
Gecode does support multiple threads using the -p
flag. So do Gurobi and OR-Tools (and I think CPLEX does as well)
from minizinc-python.
Ok, bad for CBC, but nevertheless we come closer to what I need. How can I activate multiple threads for Gecode when running from minizinc-python?
from minizinc-python.
(Note that the answer to the general question in the title is to set the
processes
argument in thesolve
method: https://minizinc-python.readthedocs.io/en/latest/api.html#minizinc.instance.Instance.solve, but this is only supported when supported by the solver)
^^^^^
from minizinc-python.
Oh, sorry and thank you. I totally missed this parameter.
So at least I can run problems in parallel using Gecode. And I hope someone will manage to provide a parallel CBC, since - according to the web - it seems to be quite difficult to compile a parallel CBC with MiniZinc on Windows (even if one can download parallel CBC stand-alone binaries for windows).
Thank you very much again!!!
from minizinc-python.
Related Issues (20)
- Obtain a reference to a python instantiation of the underlying solver HOT 2
- Support for Python "infinity" value for MZNJSONEncoder HOT 4
- Running into: RuntimeError: asyncio.run() cannot be called from a running event loop HOT 1
- timeout HOT 2
- Time format HOT 1
- message: syntax error, unexpected ';' HOT 6
- JSONDecodeError in parsing solution (or-tools) HOT 3
- Example not working (AttributeError: partially initialized module 'minizinc' has no attribute 'Model') HOT 1
- free-search being passed on to incompatible solvers HOT 1
- 'flatTime' statistic returned as float instead of timedelta under MiniZinc >= 2.6.0 HOT 1
- ImportError: cannot import name 'Instance' from 'minizinc' HOT 3
- Example not working HOT 4
- keyboard interrupt HOT 1
- verbose parameter HOT 1
- Driver is None HOT 4
- Asyncronous environment calling, Anaconda. HOT 3
- Need information for output (json) HOT 4
- '--intermediate-solutions' command line argument HOT 1
- timeout parameter receives timedelta but still not working HOT 5
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from minizinc-python.