violation

fun violation(responseValue: Double): Double

The violation is maxOf(0, R(x) - b). This quantity is often used in penalty function calculations.

Parameters

responseValue

The value of the response to be evaluated for the constraint.