optim
.Nimble wrapper around R's builtin optim
.
nimOptim(par, fn, gr = "NULL", ..., method = "Nelder-Mead", lower = -Inf,
upper = Inf, control = nimOptimDefaultControl(), hessian = FALSE)
Initial values for the parameters to be optimized over.
A function to be minimized (or maximized), with first argument the vector of parameters over which minimization is to take place. It should return a scalar result.
A function to return the gradient for the "BFGS", "CG" and "L-BFGS-B" methods.
IGNORED
The method to be used. See `Details` section of optim
. One of:
"Nelder-Mead", "BFGS", "CG", "L-BFGS-B".
Note that the R methods "SANN", "Brent" are not supported.
Vector or scalar of lower bounds for parameters.
Vector or scalar of upper bounds for parameters.
A list of control parameters. See Details
section of optim
.
Logical. Should a Hessian matrix be returned?