Jacobian matrix in ode15s
Mostra commenti meno recenti
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 Commenti
Torsten
il 22 Lug 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
il 22 Lug 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
il 28 Lug 2024
Torsten
il 28 Lug 2024
Yes.
Risposta accettata
Più risposte (0)
Categorie
Scopri di più su Numeric Solvers in Centro assistenza e File Exchange
Prodotti
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!


