The value of the objective function is calculated as a sum of all objective components with corresponding weight and scale factors:
where is the contribution to the objective function of the objective component (parameter), is the corresponding weight factor, and is the corresponding scale factor. If the direction of a specific objective parameter is “minimize,” its contribution to the objective function equals the parameter value itself:
If the direction of a specific objective parameter is “maximize,” its contribution to the objective function equals the parameter value multiplied by –1 to reverse the direction, because the Optimization component always minimizes the objective function:
If the direction of a specific objective parameter is “target,” its contribution to the objective function is calculated as follows:
The second component of the ObjectiveAndPenalty parameter is the penalty function, calculated as follows:
where is the constraint violation value, is the corresponding weight factor, and is the corresponding scale factor. The PenaltyBase option is set to zero if no constraints are violated. The default value is 0.0. |