Expand description
Contains certain constraints which can be used by the Pumpkin solver.
A constraint enforces a relationship between variables. It is defined by one or more
propagators (see pumpkin_propagators).
Functions§
- absolute
- Creates the
Constraint|signed| = absolute. - all_
different - Creates the
Constraintthat enforces that all the givenvariablesare distinct. - binary_
equals - Creates the
NegatableConstraintlhs = rhs. - binary_
greater_ than - Creates the
NegatableConstraintlhs > rhs. - binary_
greater_ than_ or_ equals - Creates the
NegatableConstraintlhs >= rhs. - binary_
less_ than - Creates the
NegatableConstraintlhs < rhs. - binary_
less_ than_ or_ equals - Creates the
NegatableConstraintlhs <= rhs. - binary_
not_ equals - Creates the
NegatableConstraintlhs != rhs. - boolean_
equals - Creates the
Constraint∑ weights_i * bools_i == rhs. - boolean_
less_ than_ or_ equals - Creates the
Constraint∑ weights_i * bools_i <= rhs. - clause
- Creates the
NegatableConstraint\/ literal - conjunction
- Creates the
NegatableConstraint/\ literal - cumulative
- Creates the Cumulative
Constraint. - cumulative_
with_ options - Creates the Cumulative
Constraintwith the providedCumulativeOptions. - disjunctive_
strict - Creates the Disjunctive
Constraint(also called theNoOverlapConstraint or theUnary ResourceConstraint). - division
- Creates the
Constraintnumerator / denominator = rhs. - element
- Creates the element
Constraintwhich states thatarray[index] = rhs. - equals
- Creates the
NegatableConstraint∑ terms_i = rhs. - greater_
than - Create the
NegatableConstraint∑ terms_i > rhs. - greater_
than_ or_ equals - Create the
NegatableConstraint∑ terms_i >= rhs. - less_
than - Create the
NegatableConstraint∑ terms_i < rhs. - less_
than_ or_ equals - Create the
NegatableConstraint∑ terms_i <= rhs. - maximum
- Creates the
Constraintmax(array) = m. - minimum
- Creates the
Constraintmin(array) = m. - negative_
table - Create the negative table
NegatableConstraint. - not_
equals - Create the
NegatableConstraint∑ terms_i != rhs. - plus
- Creates the
Constrainta + b = c. - table
- Create the table
NegatableConstraint. - times
- Creates the
Constrainta * b = c.