From 45976f41626851d7f46453bf1c19b3dcb09b38b0 Mon Sep 17 00:00:00 2001 From: Vaibhav Dixit Date: Wed, 11 Sep 2024 11:31:58 -0400 Subject: [PATCH 1/2] kwargs in MOO instantiate_function --- src/function.jl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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] From 88feae45f6e539886bb5eda94a07ee0983bdbd20 Mon Sep 17 00:00:00 2001 From: Vaibhav Dixit Date: Wed, 11 Sep 2024 11:33:25 -0400 Subject: [PATCH 2/2] bump version --- Project.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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"