Is there a way to add constraints (other than nonnegativity) on ode15s?
4 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
Georgios Pasias
el 21 de Abr. de 2019
Comentada: Georgios Pasias
el 21 de Abr. de 2019
I am using ode15s to solve a DAE system describing oil-water flow in a pipe. Some of the variables in the solution are physically unrealistic, and I was wondering whether there is a way to add specific constraints?
Thank you.
0 comentarios
Respuesta aceptada
Walter Roberson
el 21 de Abr. de 2019
Only in the sense that you could add an event function to detect the value going out of range, and terminating when it does. If you wanted it to somehow "bounce off" of the boundary then you would have to signal the termination and then call ode15s again with revised conditions and tspan. See for example ballode()
Más respuestas (0)
Ver también
Categorías
Más información sobre Ordinary Differential Equations en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!