Giter Club home page Giter Club logo

Comments (5)

ChrisRackauckas avatar ChrisRackauckas commented on July 20, 2024

The issue is more that the model is a bit nonsense and you're not testing what the model is actually saying. You're testing that the value in the middle has a value, i.e.:

function bc!(residual, u, p, t)
    residual[1] = u(0.75)[1] + pi / 2
    residual[2] = u[end][1] - pi / 2
end

But that's not the model. The model is that the middle of the solve array is pi / 2. But the solver time steps are adaptive, so there's no guarantee that u(0.75) == u[end รท 2], nor should one ever expect that to be true. We should just change this example to use interpolation.

from boundaryvaluediffeq.jl.

ErikQQY avatar ErikQQY commented on July 20, 2024

The issue is more that the model is a bit nonsense and you're not testing what the model is actually saying.

Yeah, we should not expect the value in the middle to be the same since the adaptive time steppings, but the two solutions from different solvers are quite different, I think there is something wrong about this, especially the shooting method.

from boundaryvaluediffeq.jl.

ChrisRackauckas avatar ChrisRackauckas commented on July 20, 2024

There's nothing wrong about the solutions. The bc! is just not a good definition. Change the bc!.

from boundaryvaluediffeq.jl.

ErikQQY avatar ErikQQY commented on July 20, 2024

Oh I see, I will propose a better example for the detailed usage of BVP solvers.

We should just change this example to use interpolation.

I remembered OrdinaryDiffEq.jl can use interpolations, is there some text we can refer to add this feature to MIRK solvers?

from boundaryvaluediffeq.jl.

ChrisRackauckas avatar ChrisRackauckas commented on July 20, 2024

No, this is a good example, it's just that every multi-point example should use interpolation.

is there some text we can refer to add this feature to MIRK solvers?

The MIRK solvers already define the interpolation for the residual calculation.

from boundaryvaluediffeq.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.