Expressions (cpmpy.expressions)

Classes and functions that represent and create expressions (constraints and objectives)

List of submodules

variables

Integer and Boolean decision variables (as n-dimensional numpy objects)

core

The Expression superclass and common subclasses Expression and Operator.

globalconstraints

Global constraints conveniently express non-primitive constraints.

globalfunctions

Using global functions

python_builtins

Overwrites a number of python built-ins, so that they work over variables as expected.

utils

Internal utilities for expression handling.