dot-rxDiscreteAdjointBuild: Build symbolic evaluators for the discrete adjoint (RHS,...

.rxDiscreteAdjointBuildR Documentation

Build symbolic evaluators for the discrete adjoint (RHS, Jacobian, forcing)

Description

Parses the model once and returns closures that evaluate the ODE RHS F, the state Jacobian dF/dy and the parameter forcing dF/dtheta at an arbitrary state (needed at interior RK4 stage points). Pair with .rxDiscreteForwardSens() and .rxDiscreteAdjointGrad().

Usage

.rxDiscreteAdjointBuild(object, calcSens)

Arguments

object

model definition accepted by rxode2().

calcSens

character vector of parameters to differentiate w.r.t.

Value

a list with st (state names), ns, np, calcSens, and evaluator closures Fe(x, params), FXe(x, params) (⁠ns x ns⁠), FPe(x, params) (⁠ns x np⁠).

Author(s)

Matthew L. Fidler


rxode2 documentation built on July 28, 2026, 5:08 p.m.