How do I set the 'RelTol','AbsTol'?

9 visualizaciones (últimos 30 días)
채원 이
채원 이 el 3 de En. de 2022
Respondida: Cris LaPierre el 3 de En. de 2022
The following error occurs:
WARNING: Failed at t=3.120501e+01. At time t, the integration tolerance can only be satisfied by reducing the step size below the smallest allowed value (5.684342e-14). > On line ode15s (line 655)
I solved it with ODE15s.
Currently, these are 'RelTol' and 'AbsTol'.
opts = odeset('RelTol',1e-14,'AbsTol',1e-15)
How do I set the 'RelTol','AbsTol'?

Respuestas (1)

Cris LaPierre
Cris LaPierre el 3 de En. de 2022
That is how you set the tolerances. You do need to include opts in your call to ode15s.
The warning is telling you you need to increase your tolerances in order to solve the integration at that time.

Categorías

Más información sobre Ordinary Differential Equations en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by