CMA-ES / libcmaes

libcmaes is a multithreaded C++11 library with Python bindings for high performance blackbox stochastic optimization using the CMA-ES algorithm for Covariance Matrix Adaptation Evolution Strategy
Other
321 stars 78 forks source link

How to set a maximum number of iterations/evals? #200

Open joaocandre opened 5 years ago

joaocandre commented 5 years ago

There is probably a straightforward method to do this, but I'm looking through the documentation and I'm not finding the answer - How would I go about limiting the maximum number of iterations or fitness evaluations?

FloopCZ commented 6 months ago

Hi, the CMAParameters class has set_max_fevals and set_max_iter methods.