Giter Club home page Giter Club logo

Comments (3)

Datseris avatar Datseris commented on June 21, 2024

Maybe it is not so relevant for more complex problems, but would it be reasonable to reset the step size after rescaling took place?

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.

from chaostools.jl.

Datseris avatar Datseris commented on June 21, 2024

I've known of the problem you quote here for unstable systems for quite some time, but haven't done anything about it yet...

from chaostools.jl.

mapi1 avatar mapi1 commented on June 21, 2024

So, I tried to look deeper into this and have a try at fixing this by rescaling the step size.
There are several ways to achieve this, but I settled on calling reinit!() instead of set_state!().
The thing is, it did not bring a significant improvement, sticking with the above example:
plot_48

I added some debug printing and found that step!() rapidly increased dt, with much larger increments than when I solve the same problem via solve(ODEProblem(parallel_rule(ds, [0.0, 1e-9])..., (1,111), [a]), Tsit5()). The increments are actually the same as for solving solve(ODEProblem(sys, [0.0], (1,111), [a]), Tsit5()) which has the trivial solution 0 for all t. So it seems like the adaptivity is only decided on the first variable of the ParallelDynamicalSystem which I could further trace down to the DynamicalSystemsBase.matrixnorm that is used as internal norm. Removing it from the ParallelDynamicalSystem(ds::CoreDynamicalSystem, states) definition and letting DE use its default gave substantially better results:
plot_52

The remaining error is related to error control and adjusting that finally gave correct results, even if the dt reset is removed and the original lyapunov() function is used:
plot_58

I did not yet figure out what's wrong with the norm, but I wanted to write down my debugging results somewhere. Maybe this issue can be closed then and a new one in DynamicalSystemsBase should be opened

from chaostools.jl.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.