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!


