granularPenaltyFncValue

Computes the penalty function value for the provided solution in terms of its specified granularity. If the granularity is 0.0 then the raw value is returned. Ensures that the returned value is oriented according to the optimization type.

Return

the objective function value

Parameters

solution

the solution to compute the objective function value for