Jacobian matrix in ode15s
Ältere Kommentare anzeigen
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 Kommentare
Torsten
am 22 Jul. 2024
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
am 22 Jul. 2024
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
am 28 Jul. 2024
Torsten
am 28 Jul. 2024
Yes.
Akzeptierte Antwort
Weitere Antworten (0)
Kategorien
Mehr zu Numeric Solvers finden Sie in Hilfe-Center und File Exchange
Produkte
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!


