ODE Matlab : How to avoid the integration problem stop the entire simulation ?

2 views (last 30 days)
Dear Matlab users,
I am using ODE15s to solve the chemistry. The ODE15s is called for many times. But the input variables are nearly the same. while the inputs are not changed a lot, the integration fails for some iterations and due to this integration issue the whole simulation is stoped. I would like to know if there is any mean to avoid the whole simulation being stopped by the integration issue of the ODE part ? I am sure that despite the error of ODE, if the whole program is not stopped, for the next iterations, ODE would integrate successfully. Is there any functionality for Matlab's ODE to do that ? Is "ODE Event Location" (https://nl.mathworks.com/help/matlab/math/ode-event-location.html) can help with this issue ?
Thanks in advance for your help,
Regards,
Mary

Answers (0)

Community Treasure Hunt

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

Start Hunting!