Can ode15i solve a stiff DAE?

6 visualizaciones (últimos 30 días)
Tony Cheng
Tony Cheng el 24 de Ag. de 2025 a las 6:37
Comentada: Tony Cheng el 26 de Ag. de 2025 a las 2:19
Hi there,
Can ode15i solve a stiff DAE?
Many THX!

Respuestas (1)

Yifeng Tang
Yifeng Tang el 25 de Ag. de 2025 a las 14:40
I would suggest that you try ode15s or ode23t instead.
While ode15i, being an implict solver, may work well with stiff system of equations, it doesn't allow a "mass" matrix in the input set to indicate a certain equation is an algebraic equation. See https://www.mathworks.com/help/matlab/math/summary-of-ode-options.html and look for the "mass" option in the table. It's still possible to rewrite your equations with multiplier to trick ode15i into solving it, but I find it easier to use ode15s or ode23t with a mass matrix so the equations are more human-understandable.
I've seen ode15s and ode23t picked automatically in some Simscape models, which usually is a DAE system, although daessc solver is much more likely (but it's not available in MATLAB solvers).
Hope this helps.
  1 comentario
Tony Cheng
Tony Cheng el 26 de Ag. de 2025 a las 2:19
Hi Yifeng,
Thanks vey much for ur detailed description. I will make a first attempt to use ode15s then ode15i will be tested to compare the results.
your idea really help!

Iniciar sesión para comentar.

Categorías

Más información sobre 常微分方程 en Help Center y File Exchange.

Etiquetas

Productos

Community Treasure Hunt

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

Start Hunting!