Jacobian matrix in ode15s
古いコメントを表示
Hi everyone,
I am using ode15s to solve a set of stiff odes and the final model is developed in the form of
where M(t,y) is the mass matrix, and y is the generalised coordinate vector. According to the syntax of ode15s, it is crucial to provide its Jacobian matrix to raise the accuracy.
I do not know too much numerical calculation of stiff odes, and here I want to know, is the Jacobian matrix JJ calculated in this manner:
If not, how to arrive at a correct one?
Many thanks!
5 件のコメント
Torsten
2024 年 7 月 22 日
According to the syntax of ode15s, it is crucial to provide its Jacobian matrix to raise the accuracy.
If you want to solve sensitivity equations, it is advisable to supply the Jacobian matrix. But for "usual" differential equations, the internal difference approximation from "ode15s" usually suffices.
Tony Cheng
2024 年 7 月 22 日
BTW, are there any ways to format a good odeset to raise the computational efficiency and accuracy?
RelTol and AbsTol are the usual parameters that influence accuracy. I doubt there will be a great gain in efficiency by supplying the Jacobian matrix - especially since most probably you had to use finite differencing like ode15s itself because of the complexity of your model.
I'd start with the standard settings for odeset - often, beginners have good intentions, but tend to make things worse.
Tony Cheng
2024 年 7 月 28 日
Torsten
2024 年 7 月 28 日
Yes.
採用された回答
その他の回答 (0 件)
カテゴリ
ヘルプ センター および File Exchange で Numeric Solvers についてさらに検索
製品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!


