-
Notifications
You must be signed in to change notification settings - Fork 38
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Wrong lyapunov exponent of unstable systems when the solver works adaptively #309
Comments
That sounds like a great suggestion, and in fact it sounds to me that the step size should be rescaled any time a new state is set to the integrator. |
I've known of the problem you quote here for unstable systems for quite some time, but haven't done anything about it yet... |
Datseris
changed the title
Wrong lyapunov exponent when the solver works adaptively
Wrong lyapunov exponent of unstable systems when the solver works adaptively
Jun 16, 2023
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Describe the bug
I was testing the
lyapunov()
function for the simple exponential functiondx/dt = ax
as I know it has to bea
in this case. Tough, just using the function gives some interesting results whenT > 1
is set:Debugging a little I found that the problem might be related to the adaptiveness of the solver leading to large time steps and therefore wrong results after rescaling took place. Setting
diffeq = (alg = Tsit5(), adaptive = false, dt = 1.0)
gives correct results:Maybe it is not so relevant for more complex problems, but would it be reasonable to reset the step size after rescaling took place?
Minimal Working Example
Package versions
With Julia v1.9.0:
The text was updated successfully, but these errors were encountered: