test_optimizer {optimizeR} | R Documentation |
Test optimization function
Description
This function is useful for testing or debugging the behavior of optimization functions. It can throw a warning and / or an error on purpose.
Usage
test_optimizer(
objective = test_objective,
initial = 1,
...,
parameter = 1,
value = objective(parameter),
seconds = 0,
warning_prob = 0,
error_prob = 0,
warning_msg = "warning",
error_msg = "error",
call. = TRUE
)
Arguments
objective |
An objective |
initial |
The initial parameter vector. |
... |
Optionally additional arguments to be passed to |
parameter |
Defines the output |
value |
Defines the output |
seconds |
A delay in number of seconds. |
warning_prob |
The probability for throwing a warning. |
error_prob |
The probability for throwing an error. |
warning_msg |
The warning message. |
error_msg |
The error message. |
call. |
Value
A list
with elements parameter
and value
.
[Package optimizeR version 1.1.1 Index]