godatadriven / evol

a python grammar for evolutionary algorithms and heuristics
https://evol.rtfd.io
MIT License
187 stars 12 forks source link

Add conditions #137

Closed rogiervandergeer closed 5 years ago

rogiervandergeer commented 5 years ago

I think this is a more elegant solution than the stoppers. @koaning what do you think?

koaning commented 5 years ago

add the option to add StopEvolution in callback

koaning commented 5 years ago

To keep the speed in, I'll go ahead an approve this so you're not dependant on me. The context manager is the way to go here. Feel free to merge once all the tests are in.