xref: /petsc/doc/manualpages/MANSECHeaders/Sensitivity (revision d2a308c17d7b1ee4386ae6272365c8b136d1cecc)
1# Sensitivity Analysis for ODE and DAE
2
3
4The `TS` library provides discrete adjoint models (`TSAdjoint`) and tangent linear models (`TSForward`) for sensitivity analysis for ODEs and DAEs. Users guide section: [](section_sa).
5
6The adjoint solvers support gradient calculation for multiple cost functions, and the tangent linear solvers support gradient calculation with respect to multiple parameters.
7Adjoint is particularly efficient when the number of cost functions is much less than the number of parameters.
8Note that the parameters can be initial states or system parameters as used in the calculation of ODE/DAE right-hand sides.
9
10Typical cost functions of interest may depend on the final solution to the ODE/DAE or on the whole trajectory (taking an integral form).
11The integral can be evaluated together with the time integration.
12
13<A HREF="PETSC_DOC_OUT_ROOT_PLACEHOLDER/src/ts/tutorials/index.html">Examples</A><BR>
14
15
16