gugarosa / opytimizer

🐦 Opytimizer is a Python library consisting of meta-heuristic optimization algorithms.
https://opytimizer.readthedocs.io
Apache License 2.0
599 stars 40 forks source link

Adding option to keep only best agents and hook to perform arbitrary computation #7

Closed lzfelix closed 4 years ago

lzfelix commented 4 years ago

This PR allows the user to keep only the best agents for each iteration instead of all information stored by all implemented meta-heuristics. Storing all this information can become a burden while performing extensive optimization tasks, such as hyper-complex optimization on higher-dimensional spaces.

Additionally the user can supply a custom function that is executed before evaluating the target function, allowing to alter the meta-heuristic behavior. I intend to add an example of this possible application quite soon.

Regards, Felix