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

Docstring for optimize #1032

Open
KronosTheLate opened this issue Mar 14, 2023 · 2 comments
Open

Docstring for optimize #1032

KronosTheLate opened this issue Mar 14, 2023 · 2 comments

Comments

@KronosTheLate
Copy link

KronosTheLate commented Mar 14, 2023

As a key function of the package (the most important one?), optimize should have a docstring, with examples and common signatures. Perhaps also pointing to the documentation, and saying that it is a complicated function that is worth understanding well before using the package.

@pkofod
Copy link
Member

pkofod commented Apr 13, 2023

Yes, I agree that that would be nice.

@jariji
Copy link

jariji commented Feb 20, 2024

A complete list of functions is at https://julianlsolvers.github.io/Optim.jl/dev/user/minimization/#Complete-list-of-functions. I'm not sure any of them have docstrings.

Defined for all methods:

summary(res)
minimizer(res)
minimum(res)
iterations(res)
iteration_limit_reached(res)
trace(res)
x_trace(res)
f_trace(res)
f_calls(res)
converged(res)

Defined for univariate optimization:

lower_bound(res)
upper_bound(res)
x_lower_trace(res)
x_upper_trace(res)
rel_tol(res)
abs_tol(res)

Defined for multivariate optimization:

g_norm_trace(res)
g_calls(res)
x_converged(res)
f_converged(res)
g_converged(res)
initial_state(res)

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

3 participants