Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add minmax function #68

Open
lucaferranti opened this issue Apr 9, 2022 · 1 comment
Open

add minmax function #68

lucaferranti opened this issue Apr 9, 2022 · 1 comment

Comments

@lucaferranti
Copy link
Member

It would be nice to have a minmax function that computes both the minimum and the maximum function.

A start could be

function minmax(f::Function, X; kwargs...)
   global_min, minimiser = minimise(f, X; kwargs...)
   global_max, maximiser = maximise(f, X; kwargs...)
   return minimiser, global_min, maximiser, global_max
end

on the longer run, it could be nice to try to be smarted and solve both simultaneously and more efficiently.

@dpsanders what do you think?

@dpsanders
Copy link
Member

I don't think there's any way to do this more efficiently than doing each separately as you suggested.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants