![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/281616/image.png)
ode does not converge
7 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
Alessandro Vitiello
el 2 de Abr. de 2020
Comentada: Alessandro Vitiello
el 4 de Abr. de 2020
Hi,
I have the following problem with code on the sliding mode control, solving a non linear problem:
running the code, I do not have errors or warning, the integration starts, but does not end, looks like enter in a sort of infinite loop.
Showing some result in the function and running I realized that:
-- with a tollerance about 1e-13 (I always use this), the results are always equal, so the integration carries on always the same result and it will not go on,
-- reducing thetollerance at 1e-5 , I change see results that change, but integration never end, maybe go to converge, but soon starting to converge.
these happen even if I use a small intervall time.
many many thanks for your time and help
best regards
0 comentarios
Respuesta aceptada
darova
el 3 de Abr. de 2020
I tried
tt = [0 1];
options=odeset('RelTol',1e-3,'AbsTol',1e-3);
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/281616/image.png)
4 comentarios
Más respuestas (0)
Ver también
Categorías
Más información sobre Ordinary Differential Equations en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!