Solve a set of ODEs with given initial conditions and final conditions

53 ビュー (過去 30 日間)
Akshat Koolwal
Akshat Koolwal 2021 年 3 月 19 日
回答済み: Bjorn Gustavsson 2021 年 3 月 19 日
I am trying to solve a set of ODEs in MATLAB. I have four different ODEs for four variables and solving them should be easy if we had initial conditions for all the variables. But that's where things get tricky, I have initial conditions for three variables but final condition for the fourth variable. All the traditional solvers are designed to handle IVPs only. What can be the most optimised approach to handle it since I might have to solve the equation multiple times.

採用された回答

Jan
Jan 2021 年 3 月 19 日
編集済み: Jan 2021 年 3 月 19 日
If you have some initial and some final values, this is not an IVP (initial value problem), but a BVP (boundary value problem). A single oder mutliple shooting appraoch is working then.
There is no "most optimized" approach and you can write a PhD about a solver for a specific problem.

その他の回答 (1 件)

Bjorn Gustavsson
Bjorn Gustavsson 2021 年 3 月 19 日
To me this seems to be a problem that the shooting-method would be suited for. That will require you to solve the problem multiple times, so hopefully it is not too stiff ODEs or too long period of integration. Just set up something like a Newton-Raphson method for testing improved initial guesses for your fourth variable.
HTH

カテゴリ

Help Center および File ExchangeOrdinary Differential Equations についてさらに検索

製品


リリース

R2019a

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by