# Combining multiple-shooting with out-of-ODE multithreading

**URL:** <https://discourse.julialang.org/t/combining-multiple-shooting-with-out-of-ode-multithreading/66338>\
**Category:** Machine Learning\
**Tags:** diffeq, sciml\
**Created:** [August 13, 2021, 11:50am UTC](https://discourse.julialang.org/t/combining-multiple-shooting-with-out-of-ode-multithreading/66338 "2021-08-13T11:50:43Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![cmarcotte](https://avatars.discourse-cdn.com/v4/letter/c/a3d4f5/32.png) [@cmarcotte](https://discourse.julialang.org/u/cmarcotte)\
**Post date:** [August 13, 2021, 11:50am UTC](https://discourse.julialang.org/t/combining-multiple-shooting-with-out-of-ode-multithreading/66338/1 "2021-08-13T11:50:43Z")

</div>

DiffEqFlux has examples for multiple shooting and out-of-ODE multithreading [here](https://diffeqflux.sciml.ai/stable/examples/data_parallel/#Multithreaded-Batching-At-a-Glance) and [here](https://diffeqflux.sciml.ai/dev/examples/multiple_shooting/), respectively.

This seems like a natural pairing, but it seems like `multiple_shoot` is written for a completely serial implementation, or else I can not make an `EnsembleProblem` work with it. Is there a standard way to compose these techniques, or is it more of a matter of carefully working through the expectations for `multiple_shoot` to make it compatible with `EnsembleProblem`s?

---

<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:** [August 13, 2021, 12:05pm UTC](https://discourse.julialang.org/t/combining-multiple-shooting-with-out-of-ode-multithreading/66338/2 "2021-08-13T12:05:41Z")

</div>

[https://github.com/SciML/DiffEqFlux.jl/pull/602](https://github.com/SciML/DiffEqFlux.jl/pull/602)

I’ll make a new tag.
