Giter VIP home page Giter VIP logo

Comments (7)

Dekker1 avatar Dekker1 commented on June 10, 2024

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.

Dekker1 avatar Dekker1 commented on June 10, 2024

(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.

mhechthz avatar mhechthz commented on June 10, 2024

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.

Dekker1 avatar Dekker1 commented on June 10, 2024

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.

mhechthz avatar mhechthz commented on June 10, 2024

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.

Dekker1 avatar Dekker1 commented on June 10, 2024

(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.

mhechthz avatar mhechthz commented on June 10, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.