% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/adjointDiscrete.R
\name{.rxAdjointModel}
\alias{.rxAdjointModel}
\title{Build (and cache) the compiled adjoint-expansion model for rk4s}
\usage{
.rxAdjointModel(object, calcSens, stiff = FALSE)
}
\arguments{
\item{object}{model definition accepted by \code{\link[=rxode2]{rxode2()}}.}

\item{calcSens}{character vector of parameters to differentiate w.r.t.}
}
\value{
list with \code{model} (compiled rxode2) and \code{info} (the
\code{\link[=.rxAdjointExpand]{.rxAdjointExpand()}} layout).
}
\description{
Runs \code{\link[=.rxAdjointExpand]{.rxAdjointExpand()}} and compiles the result, caching by the normalized
model text + \code{calcSens} so an optimizer that resolves the gradient many times
compiles once.
}
\author{
Matthew L. Fidler
}
\keyword{internal}
