Expand description
Nelder–Mead simplex minimizer, a faithful port of R’s nmmin
(src/appl/optim.c), which backs optim(method = "Nelder-Mead").
The algorithm is deterministic, so with the same starting point, objective
and control constants it reproduces R’s iterate path — and therefore R’s
optim result — bit for bit. This is what limma’s genas relies on.
Only the plain (unconstrained, unscaled) Nelder–Mead is ported; parameter
scaling (parscale) and the other optim methods are out of scope.
Structs§
- Nelder
Mead - Result of
nelder_mead, mirroring the parts of R’soptimreturn value that callers need.
Functions§
- nelder_
mead - Minimize
fstarting fromx0using Nelder–Mead with R’s default control constants:reltol = sqrt(f64::EPSILON),abstol = -inf,maxit = 500, reflectionalpha = 1, contractionbeta = 0.5, expansiongamma = 2. - nelder_
mead_ with - Nelder–Mead with explicit control constants (see
nelder_meadfor the defaults).abstol/reltolare R’soptimabstol/reltol.