Skip to content

Commit

Permalink
Update src/NLopt.jl
Browse files Browse the repository at this point in the history
  • Loading branch information
odow authored Aug 19, 2024
1 parent ddb7727 commit 16c132d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/NLopt.jl
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,7 @@ include("libnlopt.jl")
end

Base.convert(::Type{nlopt_algorithm}, a::Algorithm) = nlopt_algorithm(Int(a))
Base.convert(::Type{Algorithm}, r::nlopt_algorithm) = Algorithm(Int(r))

const _SYMBOL_TO_ALGORITHM = Dict(Symbol(i) => i for i in instances(Algorithm))

Expand Down

0 comments on commit 16c132d

Please sign in to comment.