EvaluatedConstraint#
- class EvaluatedConstraint#
- violation() float#
Calculate the violation (constraint breach) value for this constraint
Returns the amount by which this constraint is violated:
For \(f(x) = 0\): returns \(|f(x)|\)
For \(f(x) \leq 0\): returns \(\max(0, f(x))\)
Returns 0.0 if the constraint is satisfied.
- property equality: Equality#
Read-only property.
Get the constraint equality type
- property evaluated_value: float#
Read-only property.
Get the evaluated constraint value
- property feasible: bool#
Read-only property.
Get the feasibility status
- property parameters: dict[str, str]#
Read-only property.
Get the parameters
- property subscripts: list[int]#
Read-only property.
Get the subscripts
- property used_decision_variable_ids: set[int]#
Read-only property.
Get the used decision variable IDs