Does the function "ode45" use matrix decomposition?

조회 수: 2 (최근 30일)
Sangwoo Kim
Sangwoo Kim 2019년 10월 3일
댓글: Sangwoo Kim 2019년 10월 30일
Hi all,
I wish to know the algorithms of ODE45 when it need to calculate multi-variable Runge Kutta.
Say, I want to solve ODE problem with muti variables such that y(x,t)'=Ay(x,t)
where y is the vector component of varibles, x is the vector component of corrdinates, A is the system matrix and t is time.
Does ODE45 solve this problem only by the explicit method without matrix decomposition?
Is there limitations for the usage of ODE45 if matrix A is singular or ill-conditioned?
Thanks for your help.
  댓글 수: 2
Marco Feder
Marco Feder 2019년 10월 30일
Since ode45 is an explicit method, in the MatLab routine no linear system is solved, and hence no matrix decomposition will be done. Other implicit integrators for sure will use matrix decomposition (like LU) since Newton's-like method are used to find the solution at each time step.
Sangwoo Kim
Sangwoo Kim 2019년 10월 30일
Thank you, Marco.

댓글을 달려면 로그인하십시오.

채택된 답변

Christine Tobler
Christine Tobler 2019년 10월 28일
ODE45 does not use a decomposition or solve a linear system with A. However, ODE15s and ODE23s, which are specialized for "stiff" problems, do compute the LU decomposition and solve a linear system with the matrix A. These methods will only work well if the matrix A is not singular or ill-conditioned, but they can work much better than ODE45 and other "non-stiff" problem solvers for these cases.
See the Choose an ODE Solver doc page for more explanations about the different ODE solvers.
  댓글 수: 1
Sangwoo Kim
Sangwoo Kim 2019년 10월 30일
Thanks for your kind explanation. Your answer was what I preassumed, and I needed some documented clarification. Thanks again.

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Ordinary Differential Equations에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by