Skip to main content

Module constraint_weights

Module constraint_weights 

Source
Expand description

Runtime per-constraint weight multipliers.

ConstraintWeights lives on a planning solution (through the #[constraint_weights] field attribute) and scales each named constraint’s coded contribution by a non-negative integer multiplier.

Structs§

ConstraintWeights
Per-constraint multipliers keyed by ConstraintRef::full_name().

Enums§

ConstraintWeightError
Error reported when constraint weights do not fit the model’s constraints.

Constants§

MAX_CONSTRAINT_WEIGHT_MULTIPLIER
Largest accepted constraint weight multiplier.