% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/misc.R
\name{optimize_RTMB}
\alias{optimize_RTMB}
\title{Optimize RTMB model}
\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{
\item{obj}{The list returned by \code{\link[RTMB:TMB-interface]{RTMB::MakeADFun()}}}

\item{hessian}{Logical, whether to pass the Hessian function \code{obj$he} to \code{\link[stats:nlminb]{stats::nlminb()}}. Only used if
there are no random effects in the model.}

\item{restart}{Deprecated.}

\item{do_sd}{Deprecated.}

\item{control}{List of options passed to \code{\link[stats:nlminb]{stats::nlminb()}}}

\item{lower}{Lower bounds of parameters passed to \code{\link[stats:nlminb]{stats::nlminb()}}}

\item{upper}{Upper bounds of parameters passed to \code{\link[stats:nlminb]{stats::nlminb()}}}

\item{silent}{Logical, whether to report progress to console}
}
\value{
A named list, output of \code{\link[stats:nlminb]{stats::nlminb()}}
}
\description{
A convenient function to fit a RTMB model with \code{\link[stats:nlminb]{stats::nlminb()}}
}
\seealso{
\code{\link[=get_sdreport]{get_sdreport()}}
}
\keyword{internal}
