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

Get the local optimums #146

Open
brunomorayib opened this issue Jan 11, 2023 · 2 comments
Open

Get the local optimums #146

brunomorayib opened this issue Jan 11, 2023 · 2 comments
Labels
enhancement New feature or request

Comments

@brunomorayib
Copy link

It would be good to get the local optimums together with the "global". Is this already possible? If yes how can I do it?

In some cases, one might want to choose a local optimum that is, in some sense, "more robust" than the global one. For this reason having a list of local optimums as well would be useful

@brunomorayib brunomorayib added the enhancement New feature or request label Jan 11, 2023
@nomuramasahir0
Copy link
Collaborator

Hi @kaktus1990 ,

That's interesting.
We do not have a specific function for that, but you can determine whether the optimizer has reached a local optimum (that is, whether the optimization has converged) by .should_stop() function.
https://github.com/CyberAgentAILab/cmaes/blob/main/examples/ipop_cmaes.py#L40
I guess that it is possible to use the above criteria to create a list of local optimums.

@brunomorayib
Copy link
Author

thank you very much! I'll have a look

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

No branches or pull requests

2 participants