Skip to contents

Evaluate a prebuilt adjoint objective gradient at given parameters

Usage

.rxAdjointGradEval(
  build,
  params,
  obsTimes,
  obs,
  weight = 1,
  denseBy = 0.01,
  atol = 1e-10,
  rtol = 1e-10
)

Arguments

build

object returned by .rxAdjointGradBuild().

params

named numeric vector of parameter values.

obsTimes

numeric observation times.

obs

numeric observed values aligned with obsTimes.

weight

numeric scalar or vector of least-squares observation weights (ignored when errModel is supplied).

denseBy

grid spacing for the forward checkpoint trajectory; smaller values reduce the covariate-interpolation error.

atol, rtol

solver tolerances used for both the forward checkpoint and the backward sweeps.

Value

named numeric vector dG/dtheta over the build's calcSens.

Author

Matthew L. Fidler