Skip to content

Commit b2cbc1a

Browse files
Merge pull request #102 from SciML/optjlintegration
kwargs in MOO instantiate_function
2 parents 2faa135 + 88feae4 commit b2cbc1a

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
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 = "2.0.1"
4+
version = "2.0.2"
55

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

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)