granularPenalizedObjFncValue

Computes the granular version of the penalized objective 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 granular penalized objective function value

Parameters

solution

the solution to compute the objective function value for