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.ndarray of float – Degrees of the violation.