-
Notifications
You must be signed in to change notification settings - Fork 29
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
CoupledDDEs #220
Comments
If you look at #212 it was quite a bit of work and back and forth. I think the whole process took a couple of months on and off... :D @oameye was the main driver so he can write about how hard it was. For me what was mindblowing was that Attractors.jl worked out of the box for a multistable SDE FitzHugh Nagumo. We didn't have to change anything there ! With DDEs we have a problem to solve: what would be I know nearly nothing about how numerically solving a DDE works unless you do it in discretized time. And I'd guess some knowledge on that front would be important to know how to handle this object as a dynamical system. But in principle, as long as this implements the |
I had a first try at defining function duffing_delay!(du, u, h, p, t)
α = p[1]; F = p[2]; ω = p[3]; tau = p[4]
hist = h(p, t - tau)[1]
du[1] = -u[1]*((1+α)*u[1]^2 -1) + α*hist + F*sin(ω*t)
end
α = -0.925; F = 0.525; ω = 1.; tau = 1.065; x = 1.; y = 1.;
lags = [tau];
h(p,t) = [x,y]
u0 = [x, y]
ds = CoupledDDEs(duffing_delay!, u0, [α, F, ω, tau]; h = h, constant_lags = lags)
y,t = trajectory(ds, 1000) It just works! Now, before beginning the PR process I have to design tests. But it will be very similar to the architecture of |
Before tests you need to figure out the above, as they are conceptual issues, not technical. |
But it is of course fantastic that things work straightforwardly :) yet another testament of how nice is the |
I literally copied the file For your specific questions:
|
I saw the fantastic work on CoupledSDEs. What about other specialized solvers? In particular DDEs or of interest in the dynamical system community.
At first sight a wrapper around DDEProblem should be doable.
Any thoughts based on your experience integrating SDEs?
The text was updated successfully, but these errors were encountered: