Skip to content

Commit a289e43

Browse files
Merge pull request #27 from SciML/Vaibhavdixit02-patch-1
Update cache.jl
2 parents 2486704 + c62c6d7 commit a289e43

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Project.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
name = "OptimizationBase"
22
uuid = "bca83a33-5cc9-4baa-983d-23429ab6bcbb"
33
authors = ["Vaibhav Dixit <[email protected]> and contributors"]
4-
version = "0.0.2"
4+
version = "0.0.3"
55

66
[deps]
77
ADTypes = "47edcb42-4c32-4615-8424-f2b9edc5f35b"

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)