Abstract Optimizer
class that implements the base functionality each
Optimizer
subclass must provide. A Optimizer
object describes the
optimization strategy.
A Optimizer
object must write its result to the $assign_result()
method
of the OptimInstance at the end in order to store the best point and its
estimated performance vector.
$optimize()
supports progress bars via the package progressr
combined with a Terminator. Simply wrap the function in
progressr::with_progress()
to enable them. We recommend to use package
progress as backend; enable with progressr::handlers("progress")
.
param_classes
(character()
).
properties
(character()
).
packages
(character()
).
param_set
new()
Creates a new instance of this R6 class.
Optimizer$new(param_set, param_classes, properties, packages = character())
param_set
param_classes
(character()
).
properties
(character()
).
packages
(character()
).
format()
Helper for print outputs.
Optimizer$format()
print()
Print method.
Optimizer$print()
(character()
).
optimize()
Performs the optimization and writes optimization result into OptimInstance. The optimization result is returned but the complete optimization path is stored in Archive of OptimInstance.
Optimizer$optimize(inst)
inst
clone()
The objects of this class are cloneable with this method.
Optimizer$clone(deep = FALSE)
deep
Whether to make a deep clone.