ode solvers state solution numerical errors

5 vues (au cours des 30 derniers jours)
Taehun Kim
Taehun Kim le 19 Avr 2022
Commenté : Taehun Kim le 20 Avr 2022
Dear All,
I am wondering about the numerical errors in the state solution obtained from using the ode solvers in MATLAB. How accurate are the state solutions obtained from the solvers? Could you please explain in terms of the discretization error, round off error, and floating point arithematics, in terms of how much error is expected using the big O notation?
Thank you for your help!
Sincerely,
Tae

Réponses (1)

Torsten
Torsten le 19 Avr 2022
Look at the references at the bottom of the pages describing the codes, e.g. at the bottom of
and
  2 commentaires
Taehun Kim
Taehun Kim le 19 Avr 2022
Modifié(e) : Taehun Kim le 19 Avr 2022
Thank you! I looked at the reference but they are quite hard for me to fully understand. I am looking for the possible error in the numerical solution of the ODEs solved by MATLAB ode solvers. In a model that I have, there is a term constructed with component-wise subtracting two vectors, each defined by multiplying states variables, that are in the similar magnitude, hance causing the catastrpohic cancellation problem. The order of the magnitude in the comptued difference term is and we multiply the vector by a large constant to obtain the final result. I am wondering if the state solution error is behind the scene, causing the erratic behavior in my solution.
Taehun Kim
Taehun Kim le 20 Avr 2022
Thank you for your help! I talked to my friends and we learned that we can adjust the absolute and relative tolerances to get rid of the errorenous behavior!

Connectez-vous pour commenter.

Community Treasure Hunt

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

Start Hunting!

Translated by