.Violation
Definition
The
.Violationsuffix of a variable contains the amount by which one of the bounds of that variable is violated. The.Violationsuffix of a constraint contains the amount by which the definition of that constraint is violated.
Datatype
The value of the
.Violationsuffix is numeric.
Dimension
The
.Violationsuffix has the same dimension and domain as that of the constraint or variable at hand.
Note
When a variable
Xhas a definition the suffix.DefinitionViolationcan be used to obtain the violation of the defining constraint ofX. An alternative is to useX_definition.Violation.See also Inspecting Your Model for Infeasibilities of the Language Reference and .DefinitionViolation.