From 6cd0b4adbdfa4da196240b29ab92b5370d0944d6 Mon Sep 17 00:00:00 2001 From: Vaibhav Kumar Dixit Date: Wed, 6 Mar 2024 19:39:16 -0500 Subject: [PATCH] Update cache.jl --- src/cache.jl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/cache.jl b/src/cache.jl index 03bedcb..6e7778e 100644 --- a/src/cache.jl +++ b/src/cache.jl @@ -22,7 +22,7 @@ function OptimizationCache(prob::SciMLBase.OptimizationProblem, opt, data; reltol::Union{Number, Nothing} = nothing, progress = false, kwargs...) - reinit_cache = Optimization.ReInitCache(prob.u0, prob.p) + reinit_cache = OptimizationBase.ReInitCache(prob.u0, prob.p) num_cons = prob.ucons === nothing ? 0 : length(prob.ucons) f = Optimization.instantiate_function(prob.f, reinit_cache, prob.f.adtype, num_cons) return OptimizationCache(f, reinit_cache, prob.lb, prob.ub, prob.lcons,