numericalalgorithmsgroup / pybobyqa

Python-based Derivative-Free Optimization with Bound Constraints
https://numericalalgorithmsgroup.github.io/pybobyqa/
GNU General Public License v3.0
78 stars 18 forks source link

Reproducibility with random seed #30

Closed ogencoglu closed 7 months ago

ogencoglu commented 7 months ago

Is there a way to fix the randomness with some seed parameter to have reproducibility?

lindonroberts commented 7 months ago

Hi, the randomness is all done through numpy's random number generator, so you can just use numpy.random.seed(myseed) to get reproducible results