Skip to content

Commit

Permalink
Update maximize.jl
Browse files Browse the repository at this point in the history
  • Loading branch information
pkofod committed Nov 12, 2024
1 parent 064f670 commit e69a563
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/general/maximize.jl
Original file line number Diff line number Diff line change
Expand Up @@ -70,8 +70,8 @@
@test getproperty(resmax_fg.res, prop) == getproperty(resmin_fg, prop)
end

resmax_fgh = maximize(fmax, gmax, prob.initial_x, Newton())
resmin_fgh = optimize(f, g!, prob.initial_x, Newton())
resmax_fgh = maximize(fmax, gmax, hmax, prob.initial_x, Newton())
resmin_fgh = optimize(f, g!, h!, prob.initial_x, Newton())
for prop in (:iterations, :ls_success, :minimizer, :minimum)
@test getproperty(resmax_fgh.res, prop) == getproperty(resmin_fgh, prop)
end
Expand Down

0 comments on commit e69a563

Please sign in to comment.