diff --git a/Project.toml b/Project.toml index 0a06eb0..3f39d0b 100644 --- a/Project.toml +++ b/Project.toml @@ -1,7 +1,7 @@ name = "OptimizationBase" uuid = "bca83a33-5cc9-4baa-983d-23429ab6bcbb" authors = ["Vaibhav Dixit and contributors"] -version = "2.0.1" +version = "2.0.2" [deps] ADTypes = "47edcb42-4c32-4615-8424-f2b9edc5f35b" diff --git a/src/function.jl b/src/function.jl index c5d3e94..f05e035 100644 --- a/src/function.jl +++ b/src/function.jl @@ -45,7 +45,7 @@ documentation of the `AbstractADType` types. """ function OptimizationBase.instantiate_function( f::MultiObjectiveOptimizationFunction, x, ::SciMLBase.NoAD, - p, num_cons = 0) + p, num_cons = 0; kwargs...) jac = f.jac === nothing ? nothing : (J, x, args...) -> f.jac(J, x, p, args...) hess = f.hess === nothing ? nothing : [(H, x, args...) -> h(H, x, p, args...) for h in f.hess] @@ -79,7 +79,7 @@ end function OptimizationBase.instantiate_function( f::MultiObjectiveOptimizationFunction, cache::ReInitCache, ::SciMLBase.NoAD, - num_cons = 0) + num_cons = 0; kwargs...) jac = f.jac === nothing ? nothing : (J, x, args...) -> f.jac(J, x, cache.p, args...) hess = f.hess === nothing ? nothing : [(H, x, args...) -> h(H, x, cache.p, args...) for h in f.hess]