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

User-defined random number generator #24

Open
mohamed82008 opened this issue Jul 7, 2022 · 2 comments
Open

User-defined random number generator #24

mohamed82008 opened this issue Jul 7, 2022 · 2 comments

Comments

@mohamed82008
Copy link

Thanks for this amazing package. It would be nice if every rand call inside the package used a random number generator rng that can be passed by the user. This allows maximum reproducibility of results instead of relying on Julia's global random number generator.

@mohamed82008 mohamed82008 changed the title Custom random number generator User-defined random number generator Jul 7, 2022
@jmejia8
Copy link
Owner

jmejia8 commented Jul 7, 2022

Thank you for the important comment! The next releases will include this.

Possible implementation:

options = Options(rng=Random.default_rng())
.
.
.
optimize(f, bounds, OPTIMIZER(;options))

Suggestions are welcome :)

@mohamed82008
Copy link
Author

Sounds like a good implementation approach.

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

No branches or pull requests

2 participants