Is there a way to terminate integration when multiple events are triggered simultaneoulsy?

5 次查看(过去 30 天)
Multiple events can be included in an ODE event function, but it seems there is only capability to detect and act on each event individually. I need a way to be able to terminate integration when multiple events are all triggered simultaneoulsy. E.g., when multiple functions are negative at the same time. Is there any way to do this?

采纳的回答

Walter Roberson
Walter Roberson 2024-3-19
Adjust the isTerminal flag as all(TheExpressions < 0) or as appropriate.
  7 个评论

请先登录,再进行评论。

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Programming 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by