
Scalarize multiple objectives into a single objective
Source:R/254_transforms_scalarize.R
scalarize.RdTransforms for combining several Minimize/Maximize objectives
into one objective for multi-objective optimization. Mirrors CVXPY's
cvxpy.transforms.scalarize submodule; access members with $:
Value
scalarize itself is a named list of the four functions
above. Each function returns a single Objective combining the
inputs: max and log_sum_exp always return a
Minimize; weighted_sum returns a Minimize when all
objectives are Minimize and a Maximize when all are
Maximize (mixing the two is an error); targets_and_priorities
returns a Minimize or Maximize according to the objective
senses (after negative priorities flip them) and the curvature of the
combined expression.
Details
scalarize$weighted_sum(objectives, weights)– weighted sum of objectives.scalarize$targets_and_priorities(objectives, priorities, targets, limits = NULL, off_target = 1e-5)– penalize each objective within a[target, limit]range; a negative priority flips the objective sense.scalarize$max(objectives, weights)– minimize the largest weighted objective term.scalarize$log_sum_exp(objectives, weights, gamma = 1.0)– smooth maximum;gamma -> 0approachesweighted_sum,gamma -> Infapproachesmax.