violation

open fun violation(inputs: Map<String, Double>): Double(source)

The violation associated with the constraint. This is max(0, LHS - RHS) assuming a less-than type of constraint.


open override fun violation(solution: Solution): Double(source)

A deterministic constraint's violation is computed from the solution's input values.