Skip to content

Commit 90be151

Browse files
Update hybrid_diffeq.md
1 parent 1fe9a4a commit 90be151

File tree

1 file changed

+5
-6
lines changed

1 file changed

+5
-6
lines changed

docs/src/examples/hybrid_diffeq.md

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -71,9 +71,8 @@ Flux.train!(loss_n_ode, ps, data, ADAM(0.05), cb = cba)
7171

7272
## Note on Sensitivity Methods
7373

74-
Current implementation of adjoint sensitivities are not compatible with callbacks
75-
that effect the state `u`, or are implicitly triggered with respect to `u`
76-
(i.e. a ContinuousCallback whose `condition` uses `u`). For these types of equations,
77-
methods based on discrete sensitivity analysis via automatic differentiation, like
78-
`ReverseDiffAdjoint`, `TrackerAdjoint`, or `ForwardDiffAdjoint` are the methods
79-
to use (and `ReverseDiffAdjoint` is demonstrated above).
74+
Only some continuous adjoint sensitivities are compatible with callbacks, namely
75+
`BacksolveAdjoint` and `InterpolatingAdjoint`. All methods based on discrete sensitivity
76+
analysis via automatic differentiation, like `ReverseDiffAdjoint`, `TrackerAdjoint`, or
77+
`ForwardDiffAdjoint` are the methods to use (and `ReverseDiffAdjoint` is demonstrated above),
78+
are compatible with events. This applies to SDEs, DAEs, and DDEs as well.

0 commit comments

Comments
 (0)