Skip to content

Commit 8b12143

Browse files
Update cache.jl
1 parent 2486704 commit 8b12143

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/cache.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ function OptimizationCache(prob::SciMLBase.OptimizationProblem, opt, data;
2424
kwargs...)
2525
reinit_cache = OptimizationBase.ReInitCache(prob.u0, prob.p)
2626
num_cons = prob.ucons === nothing ? 0 : length(prob.ucons)
27-
f = Optimization.instantiate_function(prob.f, reinit_cache, prob.f.adtype, num_cons)
27+
f = OptimizationBase.instantiate_function(prob.f, reinit_cache, prob.f.adtype, num_cons)
2828
return OptimizationCache(f, reinit_cache, prob.lb, prob.ub, prob.lcons,
2929
prob.ucons, prob.sense,
3030
opt, data, progress, callback,

0 commit comments

Comments
 (0)