SensitivityFunction is the class name shared by the right-hand sides of
the adjoint equations, SciMLSensitivity's abstract type: the right-hand
side of an ODEAdjointProblem() has the class
ODEInterpolatingAdjointSensitivityFunction,
ODEBacksolveSensitivityFunction,
ODEQuadratureAdjointSensitivityFunction or
ODEGaussAdjointSensitivityFunction (by method), and that of a
DAEAdjointProblem() DAEAdjointSensitivityFunction, each also a
SensitivityFunction. As in Julia, ODEForwardSensitivityFunction() is
not one.
Examples
prob <- ODEProblem(function(u, p, t) -p[1] * u, 1, c(0, 1), 2)
sol <- solve(prob, Tsit5())
ap <- ODEAdjointProblem(sol, t = 1, dgdu_discrete = function(u, p, t, i) 1)
inherits(ap$f$f, SensitivityFunction)
#> [1] TRUE