optimizer objectThis function validates an optimizer object.
validate_optimizer(
x = new_optimizer(),
.validate = FALSE,
.validation_settings = list()
)The validated input x.
An object of class optimizer.
A logical, set to TRUE (FALSE) to (not) validate the
optimizer object.
By default, .validate = FALSE.
Ignored if .valdiate = FALSE.
Otherwise, a list of validation settings:
A function, the test function to be optimized.
By default, it is the
Ackley function.
A list of additional arguments to
objective_test (if any).
By default, objective_add = list(), because the default function
for objective_test does not have additional arguments.
A numeric vector, the initial values for the
optimization of objective_test.
By default, initial = round(stats::rnorm(2), 2).
An integer, the maximum number of seconds
before the test is aborted.
The test call is considered to be successful if no error occurred
within check_seconds seconds.
By default, check_seconds = 10.