Skip to content
This repository was archived by the owner on Aug 25, 2025. It is now read-only.

Commit 45976f4

Browse files
kwargs in MOO instantiate_function
1 parent 2faa135 commit 45976f4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/function.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ documentation of the `AbstractADType` types.
4545
"""
4646
function OptimizationBase.instantiate_function(
4747
f::MultiObjectiveOptimizationFunction, x, ::SciMLBase.NoAD,
48-
p, num_cons = 0)
48+
p, num_cons = 0; kwargs...)
4949
jac = f.jac === nothing ? nothing : (J, x, args...) -> f.jac(J, x, p, args...)
5050
hess = f.hess === nothing ? nothing :
5151
[(H, x, args...) -> h(H, x, p, args...) for h in f.hess]
@@ -79,7 +79,7 @@ end
7979

8080
function OptimizationBase.instantiate_function(
8181
f::MultiObjectiveOptimizationFunction, cache::ReInitCache, ::SciMLBase.NoAD,
82-
num_cons = 0)
82+
num_cons = 0; kwargs...)
8383
jac = f.jac === nothing ? nothing : (J, x, args...) -> f.jac(J, x, cache.p, args...)
8484
hess = f.hess === nothing ? nothing :
8585
[(H, x, args...) -> h(H, x, cache.p, args...) for h in f.hess]

0 commit comments

Comments
 (0)