embcol.problem.Constraint.violation¶
- Constraint.violation(params)[source]¶
Measure degrees of the constraint violation.
A degree of the violation is zero for an output within bounds and is positive for an output out of bounds.
- Parameters:
params (array-like of
float) – Parameters.- Returns:
numpy.ndarrayoffloat– Degrees of the violation.