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

Select which solver to use by default according to user parameters #18

Open
abelsiqueira opened this issue Oct 24, 2019 · 0 comments
Open
Labels
user-facing Related to user interface and experience

Comments

@abelsiqueira
Copy link
Member

When the user doesn't know the solver but wants to have an intermediate level of control, e.g., fminunc(f) could mean use Nelder-Mead or use LBFGS/Newton with automatic differentiation.
We can try to set this with Value types

# For instance
function fminunc(f, ::Val{:no_derivative})
  fminunc(f, solver=:nelder_mead)
end

function fminunc(f, ::Val{:first_derivative})
  fminunc(f, solver=:lbfgs)
end

fminunc(f, s::Symbol) = fminunc(f, Val(s))

cf. @RenanOD

@abelsiqueira abelsiqueira added the user-facing Related to user interface and experience label May 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
user-facing Related to user interface and experience
Projects
None yet
Development

No branches or pull requests

1 participant