A convenient function to fit a RTMB model with stats::nlminb()
Usage
optimize_RTMB(
obj,
hessian = FALSE,
restart = 0,
do_sd = TRUE,
control = list(iter.max = 2e+05, eval.max = 4e+05),
lower = -Inf,
upper = Inf,
silent = FALSE
)Arguments
- obj
The list returned by
RTMB::MakeADFun()- hessian
Logical, whether to pass the Hessian function
obj$hetostats::nlminb(). Only used if there are no random effects in the model.- restart
Deprecated.
- do_sd
Deprecated.
- control
List of options passed to
stats::nlminb()- lower
Lower bounds of parameters passed to
stats::nlminb()- upper
Upper bounds of parameters passed to
stats::nlminb()- silent
Logical, whether to report progress to console
Value
A named list, output of stats::nlminb()