Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature request: a callback detecting whether certain conditions have been satisfied for a given duration #100

Open
JinraeKim opened this issue Jun 23, 2021 · 1 comment

Comments

@JinraeKim
Copy link

Hi,
simulation sometimes requires the detection of whether a certain event has occured for a given duration.

For example, I would like to terminate simulation if a condition whether a scalar state (namely, u) is negative has been satisfied for 5 seconds.

It would be useful if such functionality is provided as an exported callback.

@ChrisRackauckas
Copy link
Member

Yes, this could be an interesting feature.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants