Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

Optimizer

Optimizer


Description

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.

Progress Bars

$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").

Public fields

param_classes

(character()).

properties

(character()).

packages

(character()).

Active bindings

param_set

(paradox::ParamSet).

Methods

Public methods


Method new()

Creates a new instance of this R6 class.

Usage
Optimizer$new(param_set, param_classes, properties, packages = character())
Arguments
param_set

(paradox::ParamSet).

param_classes

(character()).

properties

(character()).

packages

(character()).


Method format()

Helper for print outputs.

Usage
Optimizer$format()

Method print()

Print method.

Usage
Optimizer$print()
Returns

(character()).


Method 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.

Usage
Optimizer$optimize(inst)
Arguments
inst

(OptimInstance).

Returns

Method clone()

The objects of this class are cloneable with this method.

Usage
Optimizer$clone(deep = FALSE)
Arguments
deep

Whether to make a deep clone.


bbotk

Black-Box Optimization Toolkit

v0.3.2
LGPL-3
Authors
Marc Becker [cre, aut] (<https://orcid.org/0000-0002-8115-0400>), Jakob Richter [aut] (<https://orcid.org/0000-0003-4481-5554>), Michel Lang [aut] (<https://orcid.org/0000-0001-9754-0393>), Bernd Bischl [aut] (<https://orcid.org/0000-0001-6002-6980>), Martin Binder [aut], Olaf Mersmann [ctb]
Initial release

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.