minizinc-python
python-mip
Our great sponsors
minizinc-python | python-mip | |
---|---|---|
3 | 1 | |
132 | 504 | |
1.5% | 2.4% | |
8.4 | 7.1 | |
5 days ago | about 2 months ago | |
Python | Python | |
Mozilla Public License 2.0 | Eclipse Public License 2.0 |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
minizinc-python
-
Matrix / 2d Array Puzzle-Like Problem
Now, you say you need to solve this using Python. I would personally either use the MiniZinc Python driver or I would use the OR-Tools Python package and write a similar model to the one above.
-
Discrete optimization for on-call scheduling
Btw, MiniZinc team recently released a python binding https://github.com/MiniZinc/minizinc-python which is quite nice to use.
-
Constraint Programming in Python or How to Solve Traveling Salesman Problem just Describing it.
minizinc-python solves the second issue, by providing the way to call minizinc models from python, the library will run minizinc, serialize your input and parse output, but the programmer still should write quite a lot lines of code. We can look at the example of solving square equation solving:
python-mip
-
Ask HN: Do you use an optimization solver? Which one? Why? Do you like it?
I've been using CBC via python-mip (https://github.com/coin-or/python-mip). It's great because it's got a super clean interface (milp variables/expressions/constraints), the code is quite accessible, and it's low overhead which makes it good for solving many very small problems.
Community sentiment seems to be beginning to shift toward favouring the HiGHS solver (https://github.com/ERGO-Code/HiGHS) over CBC. Something I'm keeping a close eye on.
nextmv seems to pitch itself as a generic solving ("decision automation") platform or something (unclear). But it seems that the only fleshed out product offering is for vehicle routing, based on the docs. Are there plans to offer, for instance, a solver binary that can be used to solve generic problems?
Also all the github repos under https://github.com/nextmv-io are private, so links from docs are 404.
What are some alternatives?
kanren - An extensible, lightweight relational/logic programming DSL written in pure Python
or-tools - Google's Operations Research tools:
yuck - Yuck is a local-search constraint solver with FlatZinc interface
SciPy - SciPy library main repository
solver - SAT solver library in Go; wraps around Google's Operational Research Tools
HiGHS - Linear optimization software
TheAlgorithms - All Algorithms implemented in Python
EA-FC-24-Automated-SBC-Solving - EA FC 24 Automated SBC Solving using Integer Programming ⚽
Simplex_Numpy - Creating a Linear Program Solver by Implementing the Simplex Method in Python with NumPy
exact
osqp - The Operator Splitting QP Solver