Skip to content

Commit 65249c1

Browse files
Merge pull request #26 from SciML/Vaibhavdixit02-patch-1
Update cache.jl
2 parents 6e21986 + 6cd0b4a commit 65249c1

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
@@ -22,7 +22,7 @@ function OptimizationCache(prob::SciMLBase.OptimizationProblem, opt, data;
2222
reltol::Union{Number, Nothing} = nothing,
2323
progress = false,
2424
kwargs...)
25-
reinit_cache = Optimization.ReInitCache(prob.u0, prob.p)
25+
reinit_cache = OptimizationBase.ReInitCache(prob.u0, prob.p)
2626
num_cons = prob.ucons === nothing ? 0 : length(prob.ucons)
2727
f = Optimization.instantiate_function(prob.f, reinit_cache, prob.f.adtype, num_cons)
2828
return OptimizationCache(f, reinit_cache, prob.lb, prob.ub, prob.lcons,

0 commit comments

Comments
 (0)