Stan Math Library
4.9.0
Automatic Differentiation
|
|
inline |
Construct cvodes_integrator object.
Note: All arguments must be stored as copies if in doubt. The reason is that the references can go out of scope, since the work done from the integrator is in the chain method.
function_name | Calling function name (for printing debugging messages) | |
f | Right hand side of the ODE | |
y0 | Initial state | |
t0 | Initial time | |
ts | Times at which to solve the ODE at. All values must be sorted and not less than t0. | |
relative_tolerance_forward | Relative tolerance for forward problem passed to CVODES | |
absolute_tolerance_forward | Absolute tolerance per ODE state for forward problem passed to CVODES | |
relative_tolerance_backward | Relative tolerance for backward problem passed to CVODES | |
absolute_tolerance_backward | Absolute tolerance per ODE state for backward problem passed to CVODES | |
relative_tolerance_quadrature | Relative tolerance for quadrature problem passed to CVODES | |
absolute_tolerance_quadrature | Absolute tolerance for quadrature problem passed to CVODES | |
max_num_steps | Upper limit on the number of integration steps to take between each output (error if exceeded) | |
num_steps_between_checkpoints | Number of integrator steps after which a checkpoint is stored for the backward pass | |
interpolation_polynomial | type of polynomial used for interpolation | |
solver_forward | solver used for forward pass | |
solver_backward | solver used for backward pass take between each output (error if exceeded) | |
[in,out] | msgs | the print stream for warning messages |
args | Extra arguments passed unmodified through to ODE right hand side function |
ts
Solve the ODE initial value problem y' = f(t, y), y(t0) = y0 at a set of times, { t1, t2, t3, ... } using the requested forward solver of CVODES.
Definition at line 211 of file cvodes_integrator_adjoint.hpp.