gugarosa / opytimizer

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

BHA division by zero #8

Closed lzfelix closed 4 years ago

lzfelix commented 4 years ago

In some rare cases all candidates fitness may be zero, causing the radius computation to raise a division by zero error. This patch fixes such a problem.

Kind regards, Felix