InactiveConstraint#
- class InactiveConstraint#
InactiveConstraint wrapper for Python.
Holds the inner
Constraint, a snapshot of its context, and the inactivation reason. As with [Constraint], the context snapshot does not propagate back to the originating instance — it is read-only context for inspection.- __copy__() InactiveConstraint#
- __eq__(other: object, /) bool#
- __new__(constraint: Constraint, inactive_reason: str, inactive_reason_parameters: Optional[Mapping[str, str]] = None, *, skip_feasibility_check: bool = False) InactiveConstraint#
- __repr__() str#
- property constraint: Constraint#
Read-only property.
- property description: Optional[str]#
Read-only property.
Get the description from the underlying constraint
- property equality: Equality#
Read-only property.
Get the equality type from the underlying constraint
- property inactive_reason: str#
Read-only property.
- property inactive_reason_parameters: dict[str, str]#
Read-only property.
- property parameters: dict[str, str]#
Read-only property.
Get the parameters from the underlying constraint
- property provenance: list[Provenance]#
Read-only property.
Get the provenance chain from the underlying constraint.
See
provenancefor semantics.
- property role: ConstraintRole#
Read-only property.
- property skip_feasibility_check: bool#
Read-only property.
- property subscripts: list[int]#
Read-only property.
Get the subscripts from the underlying constraint