# Impossible to perform autodiff on simple ODE

**URL:** <https://discourse.julialang.org/t/impossible-to-perform-autodiff-on-simple-ode/120861>\
**Category:** Optimization (Mathematical)\
**Tags:** ode, zygote, autodiff, differentialequation\
**Created:** [October 3, 2024, 3:38pm UTC](https://discourse.julialang.org/t/impossible-to-perform-autodiff-on-simple-ode/120861 "2024-10-03T15:38:57Z")\
**Posts on this page:** 3\
**Page:** 2

<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:** [November 1, 2024, 10:24am UTC](https://discourse.julialang.org/t/impossible-to-perform-autodiff-on-simple-ode/120861/21 "2024-11-01T10:24:39Z")

</div>

Okay I’ll need an issue on SciMLSensitivity.jl and I’ll need some time to dive into this one.

---

<div class="post-metadata">

**Author:** ![albertomercurio](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/albertomercurio/32/27051_2.png) [@albertomercurio](https://discourse.julialang.org/u/albertomercurio)\
**Post date:** [November 1, 2024, 10:29am UTC](https://discourse.julialang.org/t/impossible-to-perform-autodiff-on-simple-ode/120861/22 "2024-11-01T10:29:25Z")

</div>

Ok, I think it is related to the `update_coefficients` of a `ScalarOperator`, where it is trying to change the value of a `Float64` `ScalarOperator` into a `Dual` one. Do you want I make the issue on SciMLSensitivity.jl?

---

<div class="post-metadata">

**Author:** ![albertomercurio](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/albertomercurio/32/27051_2.png) [@albertomercurio](https://discourse.julialang.org/u/albertomercurio)\
**Post date:** [November 1, 2024, 10:47am UTC](https://discourse.julialang.org/t/impossible-to-perform-autodiff-on-simple-ode/120861/23 "2024-11-01T10:47:16Z")

</div>

Ok, issue submitted [here](https://github.com/SciML/SciMLSensitivity.jl/issues/1139).

[Previous page](https://discourse.julialang.org/t/impossible-to-perform-autodiff-on-simple-ode/120861.md?page=1)
