Class "NelderMead"
of Nelder-Mead optimizers and its Generator
NelderMead-class.Rd
Class "NelderMead"
is a reference class for a Nelder-Mead
simplex optimizer allowing box constraints on the parameters and using
reverse communication.
The NelderMead()
function conveniently generates such objects.
Note
This is the default optimizer for the second stage of
glmer
and nlmer
fits. We
found that it was more reliable and often faster than
more sophisticated optimizers.
Arguments to NelderMead()
and the new
method must
be named arguments:
- lower
numeric vector of lower bounds - elements may be
-Inf
.- upper
numeric vector of upper bounds - elements may be
Inf
.- xst
numeric vector of initial step sizes to establish the simplex - all elements must be non-zero.
- x0
numeric vector of starting values for the parameters.
- xt
numeric vector of tolerances on the parameters.
See also
Nelder_Mead
, the typical “constructor”.
Further, glmer
, nlmer
Examples
showClass("NelderMead")
#> Class "NelderMead" [package "lme4"]
#>
#> Slots:
#>
#> Name: .xData
#> Class: environment
#>
#> Extends:
#> Class "envRefClass", directly
#> Class ".environment", by class "envRefClass", distance 2
#> Class "refClass", by class "envRefClass", distance 2
#> Class "environment", by class "envRefClass", distance 3, with explicit coerce
#> Class "refObject", by class "envRefClass", distance 3