ode23s solver vs ode15s solver when simulating nonliner system with significant nonlinearity and stiffness
Show older comments
For simulating the closed loop system of the electro hydraulic system incorporating advanced nonlinear controller, I used ode object provided by MATLAB. Since the overall closed loop system has significant nonlinearity and stiffness, I have used the ode15s solver and the ode23s solver due to their ability in solving stiff odes. Under the same setting, the simulation result of ode23s is normal, but the simulation process of the ode15s is stucked. What causes the ode15s solver to get stuck and how to resolve this issue, I want to use the ode15s solver since it is more accurate than ode23s solver.
Figure 1. odeplot of ode15s solver Figure 2. odeplot of ode23s solver

4 Comments
Torsten
3 minutes ago
Is there no error message from ODE15S ?
Just to see whether the reason is due to the difficulty of the system you try to integrate: Increase "RelTol" and "AbsTol" for the ODE solver to 1e-4, e.g. . Does ODE15S succeed now ?
Chuguang Pan
13 minutes ago
Torsten
15 minutes ago
According to the documentation, ode23s is a low-order method. These methods are especially suited if there are discontinuities in the time derivatives. In your case, this could be true since you have adjustments due to the controller. High-order methods like ode15s are not that stable for such problems.
Chuguang Pan
4 minutes ago
Accepted Answer
More Answers (0)
Categories
Find more on Ordinary Differential Equations in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!