egf_optimizer | R Documentation |
Utilities for linking an optimizer with optional arguments and
control parameters to define an optimization method for use by
egf
.
egf_optimizer(f = nlminb, args = list(), control = list())
f |
a function performing optimization. Supported are
|
args |
a list of optional arguments to |
control |
a list of control parameters to be passed to |
An optim
-like function is a function f
such that:
the first three arguments of f
specify an initial
parameter vector, an objective function, and a gradient function,
respectively;
f
accepts control
as a fourth (or later) argument;
and
f
returns a named list with elements
par
, value
, convergence
, and message
.
A list inheriting from class egf_optimizer
containing the
validated arguments, wherein f
may be a new function wrapping
the supplied one to make it optim
-like.
optimizer <- egf_optimizer(nlminb)
str(optimizer)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.