Provenance#
- class Provenance#
One step in a regular constraint’s transformation history.
When a special constraint (indicator / one-hot / SOS1) is converted into a regular
Constraint— for example viaInstance.convert_one_hot_to_constraintorInstance.reduce_capabilities— the generated constraint records aProvenanceentry naming the original special constraint. This lets callers trace a regular constraint back to the special constraint it was derived from.- __eq__(other: object) bool#
- __hash__() int#
- __repr__() str#
- property kind: ProvenanceKind#
Read-only property.
The kind of special constraint this regular constraint was generated from.
- property original_id: int#
Read-only property.
The ID of the original special constraint (before transformation).