Skip to contents

Performs all symbolic work (Jacobian, dose-dual expressions, model compilation) once and returns a reusable object for .rxAdjointSolveEvalC(), the C++-backed counterpart of .rxAdjointSolve().

Usage

.rxAdjointSolveBuild(object, calcSens, events, adjStates = NULL)

Arguments

object

model definition accepted by rxode2() (text, rxode2 object, or function/ui).

calcSens

character vector of parameter names to differentiate with respect to.

events

event table / data used to define dosing.

adjStates

character vector of output states of interest. Defaults to all ODE states (full forward-sensitivity parity).

Value

an opaque list consumed by .rxAdjointSolveEvalC().

Author

Matthew L. Fidler