Learn R Programming

tramME (version 0.1.3)

optim_tramTMB: Optimize the tramTMB object

Description

Currently only with alabama::auglag with either nlminb or optim in the case of constrained optimization and nlminb if there are no constraints.

Usage

optim_tramTMB(
  obj,
  par = NULL,
  method = "nlminb",
  control = list(),
  trace = FALSE,
  ntry = 5,
  scale = TRUE,
  ...
)

Arguments

obj

a tramTMB object

par

optional vector of initial parameter values

method

the method used by alabama::auglag

control

a list of control parameters

trace

logical, whether the trace should be printed during the optimization

ntry

number of restarts with perturbed initial values when not converged

scale

Logical, if TRUE, the fixed effects design matrices are scaled to improve convergence

...

optional arguments, currently not in use