Callback of DiffEq detecting "whether a certain condition has been satisfied for a given duration"

Hi,

is it possible in DifferentialEquations.jl to detect whether a certain condition has been satisfied for a given time duration?

Iā€™m no expert. I also cannot find a ready-made solution. Maybe you could do it yourself similar to this:

Where instead of p.curmax you somehow store how long the condition is active already.

1 Like

It seems that there is no direct solution provided from DiffEq.jl.
Thanks a lot :slight_smile: