ODE solver not running full time span
7 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
I have never encountered this issue before but I am solving a large system with ode15s and have specified a tspan of 0:0.01:360 but the solver is only outputting solutions up to t=321.6. I'm assuming there is a numerical issue but the solver is not outputting any error. Has anyone else experienced this and found a fix?
Antworten (1)
Steven Lord
am 23 Jan. 2023
Bearbeitet: Steven Lord
am 23 Jan. 2023
That suggests to me that you should have received a warning but perhaps you've suppressed it? Something along the lines of "Failure at t=321.6. Unable to meet integration tolerances without reducing the step size below the smallest value allowed (some_small_number) at time t."
Did you turn warning off in your code or turn off specifically the warning with identifier MATLAB:ode15s:IntegrationTolNotMet?
[Fixed warning identifier to refer to ode15s not ode45.]
3 Kommentare
Siehe auch
Kategorien
Mehr zu Ordinary Differential Equations finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!