Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
  • Loading branch information
Vaibhavdixit02 authored Sep 17, 2024
1 parent ec28838 commit e6709ec
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/OptimizationNLopt/src/OptimizationNLopt.jl
Original file line number Diff line number Diff line change
Expand Up @@ -74,10 +74,10 @@ function SciMLBase.allowsconstraints(opt::NLopt.Algorithm)
end

function SciMLBase.__init(prob::SciMLBase.OptimizationProblem, opt::NLopt.Algorithm,
data = Optimization.DEFAULT_DATA; cons_tol = 1e-6,
; cons_tol = 1e-6,
callback = (args...) -> (false),
progress = false, kwargs...)
return OptimizationCache(prob, opt, data; cons_tol, callback, progress,
return OptimizationCache(prob, opt; cons_tol, callback, progress,
kwargs...)
end

Expand Down

0 comments on commit e6709ec

Please sign in to comment.