| egf_optimizer {epigrowthfit} | R Documentation |
Define an Optimization Method
Description
Utilities for linking an optimizer with optional arguments and
control parameters to define an optimization method for use by
egf.
Usage
egf_optimizer(f = nlminb, args = list(), control = list())
Arguments
f |
a function performing optimization. Supported are
|
args |
a list of optional arguments to |
control |
a list of control parameters to be passed to |
Details
An optim-like function is a function f such that:
the first three arguments of
fspecify an initial parameter vector, an objective function, and a gradient function, respectively;-
facceptscontrolas a fourth (or later) argument; and -
freturns a named list with elementspar,value,convergence, andmessage.
Value
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.
Examples
optimizer <- egf_optimizer(nlminb)
str(optimizer)