My CPMpy page

CPMPy is a high-level constraint modelling language, with solver support for OR-tools CP-SAT and PySAT. Arrays are NumPy arrays so one can use NumPy's operations to create succinct models.

See github.com/tias/cppy for more info about CPMpy.

Documentation: CPMpy: Constraint Programming and Modeling in Python. See Tias Guns' ModRef19 paper Increasing modeling language convenience with a universal n-dimensional array, CPpy as python-embeded example (PDF) for some background about the project.

cpmpy is available via pip.

My CPMPy Models

All these models are also available (or will be available soon) at my GitHub repo: github.com/hakank/hakank/tree/master/cpmpy.

Note: All models imports the utilities package cpmpy_hakank.py which defines the following constraints/utilities: Here are the cpmpy models: