penalty Fnc Value
Computes the total additive penalty for the provided solution by evaluating individual constraint violations. The returned value is a non-negative magnitude.
The internal objective is minimization-oriented (objFncValue = objFncFactor * average), and penalizedObjFncValue = objFncValue + penaltyFncValue. A constraint violation must therefore always INCREASE the penalized value (push it toward least-preferred) for both MINIMIZE and MAXIMIZE problems, so the penalty is returned unsigned and is not multiplied by objFncFactor.
Return
the total non-negative penalty value.
Parameters
solution
The solution for which the penalty is being computed.