Class to terminate the optimization after the optimization process took a number of seconds on the clock.
Note
This terminator only works if archive$start_time
is set. This is usually
done by the Optimizer.
Dictionary
This Terminator can be instantiated via the
dictionary mlr_terminators or with the associated
sugar function trm()
:
Super class
bbotk::Terminator
-> TerminatorRunTime
Methods
Method is_terminated()
Is TRUE
iff the termination criterion is positive, and FALSE
otherwise.
Arguments
archive
(Archive).
Examples
trm("run_time", secs = 1800)
#> <TerminatorRunTime>: Run Time
#> * Parameters: secs=1800