# Problem passing gradients into Optim

**URL:** <https://discourse.julialang.org/t/problem-passing-gradients-into-optim/70885>\
**Category:** General Usage\
**Tags:** optim, optimization\
**Created:** [November 3, 2021, 3:37pm UTC](https://discourse.julialang.org/t/problem-passing-gradients-into-optim/70885 "2021-11-03T15:37:46Z")\
**Posts on this page:** 1\
**Showing post:** 5

<div class="post-metadata">

**Author:** ![jmcastro2109](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/jmcastro2109/32/38427_2.png) [@jmcastro2109](https://discourse.julialang.org/u/jmcastro2109)\
**Post date:** [November 4, 2021, 11:14pm UTC](https://discourse.julialang.org/t/problem-passing-gradients-into-optim/70885/5 "2021-11-04T23:14:21Z")

</div>

Hi, I streamlined the MWE a little bit and incorporated the tips you gave me in this new post [Improving performance of a number of functions for large scale gradient based optimization](https://discourse.julialang.org/t/improving-performance-of-a-number-of-functions-for-large-scale-gradient-based-optimization/70980)

---

_[View the full topic](https://discourse.julialang.org/t/problem-passing-gradients-into-optim/70885)._
