- New
ParameterSpaces
R6 object to transform parameters between optimization and interpretation space.
- The
Objective
object now allows for different types of output structures of the objective function, for which a template can be provided via the$output_template
field.
-
The
Optimizer
object has a new methodoptimize
which can be used for minimization and maximization by setting the argumentdirection
. -
In method
Objective$initialize()
, renamed argumentobjective
->f
. -
In method
Objective$initialize()
, iftarget = NULL
(the new default), the first argument fromf
is taken as target argument.
- Removed
install_optimizer_packages()
.
- Fixed bug and added test cases when having fixed arguments that are
NULL
.
-
Fixed bug in creating error message in case of a time out.
-
Added checks for objective, initial, and ellipsis argument for the optimizer function.
-
Added
verbose
argument to methods$get_argument()
and$remove_argument()
ofObjective
object. -
Added field
fixed_arguments
toObjective
object which returns the names of the fixed arguments. -
Fixed bug in proper backwards compatibility.
-
Small bug fixes.
-
Backward compatibility with
{optimizeR}
version 0.3.3.
- Fixed wrong values for
"out_value"
and"out_parameter"
in the optimizer dictionary entry forstats::optim
.
- Instead of using S3 classes, we treat optimizers as R6 objects now.
-
Removed package start-up message.
-
Added the
.direction
argument todefine_optimizer()
to specify whether the optimizer minimizes or maximizes. -
Added a dot before the argument names for
define_optimizer()
to avoid clashes with the...
argument. -
Removed dependency on
{glue}
. -
Using
TestFunctions::TF_ackley
instead of own implementation of Ackley function (for the validation).
- Just added package logo and created package website (https://loelschlaeger.de/optimizeR) with the {pkgdown} package. No code changes.
- In
define_optimizer()
, nowvalidate = FALSE
by default.
-
Function
set_optimizer()
was renamed todefine_optimizer()
. -
Inputs for
define_optimizer()
were renamed for clarity:opt_fun
->optimizer
f
->objective
p
->initial
v
->value
z
->parameter
out_ign
->output_ignore
test_par
->validation_settings
-
Elements for input
validation_settings
have been simplified, please see the documentation ofdefine_optimizer()
. -
Elements in the output of
apply_optimizer()
were renamed for clarity:v
->value
z
->parameter
time
->seconds
(now just anumeric
)
-
Element
initial
(the starting parameter vector) was added to the output ofapply_optimizer()
.
-
Some functions were renamed:
optimizeR()
->apply_optimizer()
set_optimizer_nlm()
->optimizer_nlm()
set_optimizer_optim()
->optimizer_optim()
-
Functions
is_number()
,try_silent()
,timed()
, anddo.call_timed()
are no longer exported. -
Function
try_silent_timed()
was removed.
- Initial CRAN release.