# Different solve options within ensemble simulations

**URL:** <https://discourse.julialang.org/t/different-solve-options-within-ensemble-simulations/79102>\
**Category:** Modelling & Simulations\
**Tags:** question, diffeq\
**Created:** [April 6, 2022, 2:53pm UTC](https://discourse.julialang.org/t/different-solve-options-within-ensemble-simulations/79102 "2022-04-06T14:53:36Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![AndreaRH](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/andrearh/32/32809_2.png) [@AndreaRH](https://discourse.julialang.org/u/AndreaRH)\
**Post date:** [April 6, 2022, 2:53pm UTC](https://discourse.julialang.org/t/different-solve-options-within-ensemble-simulations/79102/1 "2022-04-06T14:53:36Z")

</div>

I have an EnsembleProblem. This allows me to remake the problem for each of the different simulations. However, I want to change the keyword arguments for **solving** the different trajectories of the ensemble problem. For instance, changing the solver algorithm (such as Tsit5() ), or adding different callbacks for different simulations (this is my case).

Is this possible?

Thanks 🙂

---

<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:** [April 6, 2022, 2:59pm UTC](https://discourse.julialang.org/t/different-solve-options-within-ensemble-simulations/79102/2 "2022-04-06T14:59:45Z")

</div>

Yes, `DEProblem` types can take in kwargs that they forward, so you can do `ODEProblem(f,u0,tspan,alg = Tsit5(),callback=cb)` in the problem making stage and then it’ll solve with different solvers and callbacks.

---

<div class="post-metadata">

**Author:** ![AndreaRH](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/andrearh/32/32809_2.png) [@AndreaRH](https://discourse.julialang.org/u/AndreaRH)\
**Post date:** [April 8, 2022, 12:17pm UTC](https://discourse.julialang.org/t/different-solve-options-within-ensemble-simulations/79102/3 "2022-04-08T12:17:31Z")

</div>

Thanks @ChrisRackauckas !
