# Ask \`TerminateSteadyState\` Callback to only start after a certain amount of time

**URL:** https://discourse.julialang.org/t/ask-terminatesteadystate-callback-to-only-start-after-a-certain-amount-of-time/73779
**Category:** General Usage
**Tags:** diffeq, ode
**Created:** [December 29, 2021, 7:32pm UTC](https://discourse.julialang.org/t/ask-terminatesteadystate-callback-to-only-start-after-a-certain-amount-of-time/73779 "2021-12-29T19:32:47Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![colebrookson](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/colebrookson/32/19567_2.png) [@colebrookson](https://discourse.julialang.org/u/colebrookson)
#### Post date: [December 29, 2021, 7:32pm UTC](https://discourse.julialang.org/t/ask-terminatesteadystate-callback-to-only-start-after-a-certain-amount-of-time/73779/1 "2021-12-29T19:32:47Z")

</div>

I’m using the `DiffEqCallback.jl` library’s `TerminateSteadyState` callback to help me terminate a long simulation if it reaches some steady state, but I’m wondering if there’s a way to only have the function start looking for a steady state after some certain time point?

Essentially I’m running a simulation where I change a parameter at `t = 1` and then again at `t = 100`, and then I want `TerminateSteadyState` to start looking to end the sim after `t=100`, but in some instances, the dynamics settle down enough by `t = ~30` that the sim gets cut short before the second parameter change at `t = 100`.

Is there any way to do this? I don’t really want to break the simulation up, hoping for a general case solution where I can tell `TerminateSteadyState` to begin looking at some time `t` instead of at the beginning of the sim. Any thoughts appreciated!!

---

<div class="post-metadata">

### Author: ![ChrisRackauckas](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/chrisrackauckas/32/77_2.png) [@ChrisRackauckas](https://discourse.julialang.org/u/ChrisRackauckas)
#### Post date: [January 1, 2022, 12:55am UTC](https://discourse.julialang.org/t/ask-terminatesteadystate-callback-to-only-start-after-a-certain-amount-of-time/73779/2 "2022-01-01T00:55:55Z")

</div>

Open an issue. That would be easy to implement.

---

<div class="post-metadata">

### Author: ![colebrookson](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/colebrookson/32/19567_2.png) [@colebrookson](https://discourse.julialang.org/u/colebrookson)
#### Post date: [January 3, 2022, 5:54pm UTC](https://discourse.julialang.org/t/ask-terminatesteadystate-callback-to-only-start-after-a-certain-amount-of-time/73779/3 "2022-01-03T17:54:30Z")

</div>

Will do, thanks!
