You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Lightup1
changed the title
Dynamical ODEs and SDEs fail when they are combined with VariableRateJump.
Dynamical ODE and SDE solvers fail when they are combined with VariableRateJump.
Nov 29, 2023
This seems somewhat fundamental. At a programming level what's going on is that the array type is then wrapped in a ExtendedJumpArray when it's a variable rate jump of this form. However, dynamical ODEs want a partitionedarray, and so the ExtendedJumpArray{PartitionedArray{Array}} isn't hitting the right dispatches. One may thing you can fix this by just fixing the dispatches it would hit, but the issue there is that the ExtendedJumpArray is adding ODEs to the system which aren't quite part of the dynamical structure, so there isn't a clean way to map it to the partitionedarray.
There are two ways to do this. One, the way that should be recommended, is just use Coevolve which does the variable rate jumps by rejection instead of extension, and thus the problem is immediately gone.
Minimal Reproducible Example of ODE👇
Error & Stacktrace⚠️
Minimal Reproducible Example of SDE👇
Error & Stacktrace⚠️
The text was updated successfully, but these errors were encountered: