InactiveOneHotConstraint

InactiveOneHotConstraint#

class InactiveOneHotConstraint#

An inactive one-hot constraint together with the reason it was deactivated.

__eq__(other: object, /) → bool#
__new__(constraint: OneHotConstraint, inactive_reason: str, inactive_reason_parameters: Optional[Mapping[str, str]] = None, *, skip_feasibility_check: bool = False) → InactiveOneHotConstraint#
__repr__() → str#
property constraint: OneHotConstraint#

Read-only property.

property description: Optional[str]#

Read-only property.

property inactive_reason: str#

Read-only property.

property inactive_reason_parameters: dict[str, str]#

Read-only property.

property name: Optional[str]#

Read-only property.

property parameters: dict[str, str]#

Read-only property.

property provenance: list[Provenance]#

Read-only property.

property role: ConstraintRole#

Read-only property.

property skip_feasibility_check: bool#

Read-only property.

property subscripts: list[int]#

Read-only property.

property variables: list[int]#

Read-only property.