This class takes multiple Terminators and terminates as soon as one or all of the included terminators are positive.
Dictionary
This Terminator can be instantiated via the
dictionary mlr_terminators or with the associated
sugar function trm()
:
Parameters
any
logical(1)
Terminate iff any included terminator is positive? (not all). Default isTRUE
.
Super class
bbotk::Terminator
-> TerminatorCombo
Public fields
terminators
(
list()
)
List of objects of class Terminator.
Methods
Inherited methods
Method new()
Creates a new instance of this R6 class.
Usage
TerminatorCombo$new(terminators = list(TerminatorNone$new()))
Arguments
terminators
(
list()
)
List of objects of class Terminator.
Method is_terminated()
Is TRUE
iff the termination criterion is positive, and FALSE
otherwise.
Arguments
archive
(Archive).
Method remaining_time()
Returns the remaining runtime in seconds. If any = TRUE
, the remaining
runtime is determined by the time-based terminator with the shortest time
remaining. If non-time-based terminators are used and any = FALSE
,
the the remaining runtime is always Inf
.
Arguments
archive
(Archive).
Method status_long()
Returns max_steps
and current_steps
for each terminator.
Arguments
archive
(Archive).