This class takes multiple Terminators and terminates as soon as one or all of the included terminators are positive.
R6::R6Class object inheriting from Terminator.
TerminatorCombo$new(terminators = list(TerminatorNone$new())) term("combo")
terminators
:: list()
List of objects of class Terminator.
any
:: logical(1)
Terminate iff any included terminator is positive? (not all), default is `TRUE.
Other Terminator:
TerminatorClockTime
,
TerminatorEvals
,
TerminatorModelTime
,
TerminatorNone
,
TerminatorPerfReached
,
TerminatorStagnation
,
Terminator
,
mlr_terminators
# NOT RUN {
term("combo",
list(term("model_time", secs = 60), term("evals", n_evals = 10)),
any = FALSE
)
# }
Run the code above in your browser using DataLab