How to solve a final value problem?

Discussion in 'MATLAB' started by workaholic, Oct 20, 2008.

  1. workaholic

    workaholic Guest

    I wish to solve a final value problem of a nonlinear ordinary equation
    group, how can I use the the Matlab to do that? It seems that there is
    only functions solving the initial value problem. Please help me.
    Thanks in advance!
    workaholic, Oct 20, 2008
    1. Advertisements

  2. workaholic

    Bruno Luong Guest

    If your ode is backward equation with finale condition, you need to replace a time variable by its reverse to transform to forward problem.

    If you have both initial and final condition, check out BVP5C.

    Bruno Luong, Oct 20, 2008
    1. Advertisements

  3. workaholic

    workaholic Guest

    workaholic, Oct 20, 2008
  4. workaholic

    workaholic Guest

    Sorry, I still cannot work it out

    My equation is like this:
    s = zeros(15,1)£º
    ds = -[ 56.6255+29.8194*s(1)+3.88810*s(6)+5.63478*s(11)+109.419*s(5)+

    since s(t) is the vector variable, and the equation does not contain
    explicitly a t variable, I don't know how to transform it into a
    feasible form.
    I notice that there is a odeset option" BDP", can it be used for that?
    Anybody can help me? Thanks in advance!
    workaholic, Oct 27, 2008
  5. I wish to solve a final value problem of a nonlinear >ordinary equation
    If your ODE-system reads
    dy/dt = f(t,y), y(tend) = y_end
    make a change of variables according to
    t~ = -t
    y~(t~) = y(t)
    You arrive at
    dy~/dt~ = -f(-t~,y~(t~)), y~(-tend) = y_end
    to be integrated between -tend and 0.
    So in your case (if f does not contain t explicitely),
    just set a minus-sign in front of the vector of the
    right-hand side and integrate between -tend and 0.

    Best wishes
    Torsten Hennig, Oct 27, 2008
  6. workaholic

    workaholic Guest

    Thanks a lot!

    Best regards
    workaholic, Oct 28, 2008
    1. Advertisements

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.