# Cache results between function calls in Optimization.jl

**URL:** https://discourse.julialang.org/t/cache-results-between-function-calls-in-optimization-jl/94964
**Category:** Optimization (Mathematical)
**Created:** [February 21, 2023, 1:37pm UTC](https://discourse.julialang.org/t/cache-results-between-function-calls-in-optimization-jl/94964 "2023-02-21T13:37:09Z")
**Posts on this page:** 1
**Showing post:** 11

<div class="post-metadata">

### Author: ![verflieger](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/verflieger/32/43037_2.png) [@verflieger](https://discourse.julialang.org/u/verflieger)
#### Post date: [February 24, 2023, 2:59pm UTC](https://discourse.julialang.org/t/cache-results-between-function-calls-in-optimization-jl/94964/11 "2023-02-24T14:59:07Z")

</div>

Ohh I see 😅 thank you for the tips! I think this is trickier than I thought. When using reinterpret with the memoization function from the original post I ran into issues similar to [Issue with PDMP and Forwardiff - DifferentialEquation - #27 by vettert](https://discourse.julialang.org/t/issue-with-pdmp-and-forwardiff-differentialequation/17925/27)  
I will have a closer look…

---

_[View the full topic](https://discourse.julialang.org/t/cache-results-between-function-calls-in-optimization-jl/94964)._
