Skip to content

Commit

Permalink
Update ext/NLoptMathOptInterfaceExt.jl
Browse files Browse the repository at this point in the history
  • Loading branch information
odow authored Aug 20, 2024
1 parent 8cfb8fa commit e362d76
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion ext/NLoptMathOptInterfaceExt.jl
Original file line number Diff line number Diff line change
Expand Up @@ -791,7 +791,8 @@ function MOI.optimize!(model::Optimizer)
if local_optimizer isa Symbol
local_optimizer = NLopt.Opt(local_optimizer, num_variables)
else
local_optimizer = NLopt.Opt(local_optimizer.algorithm, num_variables)
local_optimizer =
NLopt.Opt(local_optimizer.algorithm, num_variables)
end
NLopt.local_optimizer!(model.inner, local_optimizer)
end
Expand Down

0 comments on commit e362d76

Please sign in to comment.