Provenance

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 via Instance.convert_one_hot_to_constraint or Instance.reduce_capabilities — the generated constraint records a Provenance entry 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).