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

Commit 32c0a1a

Browse files
Removed a dispatch on review function.jl
Removed the dispatch as per the review comment.
1 parent 6bd3b78 commit 32c0a1a

File tree

1 file changed

+0
-13
lines changed

1 file changed

+0
-13
lines changed

src/function.jl

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -76,19 +76,6 @@ function instantiate_function(f::MultiObjectiveOptimizationFunction, x, ::SciMLB
7676
observed = f.observed)
7777
end
7878

79-
function instantiate_function(f::MultiObjectiveOptimizationFunction, x, adtype::ADTypes.AbstractADType,
80-
p, num_cons = 0)
81-
adtypestr = string(adtype)
82-
_strtind = findfirst('.', adtypestr)
83-
strtind = isnothing(_strtind) ? 5 : _strtind + 5
84-
open_nrmlbrkt_ind = findfirst('(', adtypestr)
85-
open_squigllybrkt_ind = findfirst('{', adtypestr)
86-
open_brkt_ind = isnothing(open_squigllybrkt_ind) ? open_nrmlbrkt_ind :
87-
min(open_nrmlbrkt_ind, open_squigllybrkt_ind)
88-
adpkg = adtypestr[strtind:(open_brkt_ind - 1)]
89-
throw(ArgumentError("The passed automatic differentiation backend choice is not available. Please load the corresponding AD package $adpkg."))
90-
end
91-
9279
function instantiate_function(f::MultiObjectiveOptimizationFunction, cache::ReInitCache, ::SciMLBase.NoAD,
9380
num_cons = 0)
9481
jac = f.jac === nothing ? nothing : (J, x, args...) -> f.jac(J, x, cache.p, args...)

0 commit comments

Comments
 (0)