penaltyFncValue

Computes the total additive penalty for the provided solution by evaluating individual constraint violations. Ensures that the returned value is oriented according to the optimization type.

Return

the total penalty value, adjusted by objFncFactor.

Parameters

solution

The solution for which the penalty is being computed.