This objective allows for min and max targets to be specified.
minmax_objective(
name,
target = NULL,
arguments = NULL,
multiplier = 1,
enabled = TRUE,
...,
min,
max
)
object of class 'minmax_objective'
name of the objective, should correspond to a function, though we will try to make allowances
univariate target for the objective
default arguments to be passed to an objective function when executed
multiplier to apply to the objective, usually 1 or -1
TRUE/FALSE
any other passthru parameters
minimum value
maximum value
Ross Bennett
If target is set, we'll try to meet the metric
If target is NULL and min and max are specified, then do the following:
If max is violated to the upside, penalize the metric. If min is violated to the downside, penalize the metric. The purpose of this objective is to try to meet the range between min and max