Skip to content

Commit

Permalink
Update maximize.jl
Browse files Browse the repository at this point in the history
  • Loading branch information
pkofod authored Nov 12, 2024
1 parent 77501f4 commit 825fef9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/maximize.jl
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ end
function maximize(f, g, h, x0::AbstractArray, method::AbstractOptimizer, options = Optim.Options(); kwargs...)
fmax = x->-f(x)
gmax = (G,x)->(g(G,x); G.=-G)
hmax = (H,x)->(h(G,x); H.=-H)
hmax = (H,x)->(h(H,x); H.=-H)
MaximizationWrapper(optimize(fmax, gmax, hmax, x0, method, options; kwargs...))
end

Expand Down

0 comments on commit 825fef9

Please sign in to comment.