ConstraintRole

ConstraintRole#

class ConstraintRole#

A constraint’s role in evaluation, feasibility, and the Active Formulation.

EVALUATION_ONLY < FEASIBILITY_CHECK < ACTIVE. A min_role query includes rows whose role is at least the requested value. EVALUATION_ONLY rows are evaluated without affecting normal feasibility; FEASIBILITY_CHECK rows also participate in that judgment; ACTIVE rows additionally belong to the Active Formulation. The first two roles are inactive. skip_feasibility_check selects between them. Roles describe participation, not whether evaluation has already occurred.

__eq__(other: object) → bool#
__ge__(other: ConstraintRole) → bool#
__gt__(other: ConstraintRole) → bool#
__hash__() → int#
__int__() → int#
__le__(other: ConstraintRole) → bool#
__lt__(other: ConstraintRole) → bool#
__ne__(other: object) → bool#
__reduce__() → tuple[Any, tuple[type, str]]#
__repr__() → str#
ACTIVE: ConstraintRole#
EVALUATION_ONLY: ConstraintRole#
FEASIBILITY_CHECK: ConstraintRole#