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

Input arguments to modcmaes.fmin #32

Open
nikohansen opened this issue Jul 17, 2023 · 2 comments
Open

Input arguments to modcmaes.fmin #32

nikohansen opened this issue Jul 17, 2023 · 2 comments

Comments

@nikohansen
Copy link

From the example in the readme

modularcmaes.fmin(func=sum, dim=5, maxfun=100)

I wonder why the fmin function does not take an initial solution as input and what is the initial value used by fmin (or modularcmaes.ModularCMAES for that matter)?

It seems strange to me to assume a default initial solution value because it heavily depends on the problem and use-case. Similarly, I believe that the initial step-size sigma should be an input to the algorithm for which the user should be commandingly invited to make a decision, because it also depends on the problem and the desired use-case.

@jacobdenobel
Copy link
Contributor

Thank you for your comment. We know that documentation is not yet up to standards, and we indeed only have included very minimal usage examples in the readme. We are planning to improve this in the future.

In principle, these and many more parameters can be passed as keyword arguments to both the class and the fmin based ways of calling the method.

For changing the value for sigma, you could pass the option sigma0=... for example, and x0 controls the initial setting of the centre of mass.

Hope this helps.

@nikohansen
Copy link
Author

Thank you for your comment. We know that documentation is not yet up to standards, and we indeed only have included very minimal usage examples in the readme. We are planning to improve this in the future.

In principle, these and many more parameters can be passed as keyword arguments to both the class and the fmin based ways of calling the method.

Right, my point though would be to a lesser extend about which optional parameters can be passed if desired. I rather wanted to raise the question which parameters should be exposed and mandatory to pass in order to best reflect the semantics of the algorithm.

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