Cap Maximum ODE solve time
I am solving a set of ODEs with several different initial conditions some of which will be badly conditioned and get bogged down. I want to cap the run time of an individual solve to say 100 seconds. If it reaches 100 seconds, I want to exit and just mark the solve as fail. I haven’t been able to find a way to do this on the forum. Does anyone have any suggestions?I am solving a set of ODEs with several different initial conditions some of which will be badly conditioned and get bogged down. I want to cap the run time of an individual solve to say 100 seconds. If it reaches 100 seconds, I want to exit and just mark the solve as fail. I haven’t been able to find a way to do this on the forum. Does anyone have any suggestions? I am solving a set of ODEs with several different initial conditions some of which will be badly conditioned and get bogged down. I want to cap the run time of an individual solve to say 100 seconds. If it reaches 100 seconds, I want to exit and just mark the solve as fail. I haven’t been able to find a way to do this on the forum. Does anyone have any suggestions? ode MATLAB Answers — New Questions