# Allowing simultaneous ContinuousCallback to trigger (DifferentialEquations.jl)

**URL:** https://discourse.julialang.org/t/allowing-simultaneous-continuouscallback-to-trigger-differentialequations-jl/124594
**Category:** Modelling & Simulations
**Tags:** question, diffeq
**Created:** [January 9, 2025, 2:16pm UTC](https://discourse.julialang.org/t/allowing-simultaneous-continuouscallback-to-trigger-differentialequations-jl/124594 "2025-01-09T14:16:25Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![lte678](https://avatars.discourse-cdn.com/v4/letter/l/5fc32e/32.png) [@lte678](https://discourse.julialang.org/u/lte678)
#### Post date: [January 9, 2025, 2:16pm UTC](https://discourse.julialang.org/t/allowing-simultaneous-continuouscallback-to-trigger-differentialequations-jl/124594/1 "2025-01-09T14:16:25Z")

</div>

I am working on an application where ContinuousCallbacks are dynamically generated based on a user configuration. Since I have “no control” over these, collisions can and do occur. For example if two of the conditions happen to trigger at an identical time.

In these cases only one of the ContinuousCallback trigger. This is inline with what I would expect from the DiffEqDocs documentation:

> For `ContinuousCallback`s and `VectorContinuousCallback`s, the event times are found by rootfinding and only the first `ContinuousCallback` or `VectorContinuousCallback` affect is applied.

Unfortunately, I need all applicable conditions to trigger (in any order).  
To work around this, I am considering maintaining my own list of conditions and callbacks to check every other condition manually and call the remaining callbacks when any ContinuousCallback is triggered by the integrator.

This does not seem to be in the spirit of the way the interface was designed and fragile. _I am curious if there is a more reasonable approach to achieve this._

Thanks!  
-Leon

---

<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 10, 2025, 3:14pm UTC](https://discourse.julialang.org/t/allowing-simultaneous-continuouscallback-to-trigger-differentialequations-jl/124594/2 "2025-01-10T15:14:31Z")

</div>

It’s just not implemented yet.
