BatAlgorithm
BatAlgorithm copied to clipboard
Possibly one of the worst python code I have seen in my life
- Poorly commented code
- Awful code, can't stress this enough. Really awful code.
- Horribly inefficient because of the use of for loops even though
numpy
has been imported. Butnumpy
has only been used for random number generation. 🤦🏼
@Pipe-Runner, thank you very much for your critics. Critics are always significant since they contribute to a better product or process. Since this piece of code was just more or less a translation of the BA algorithm from Matlab, to have it for comparisons (no major update since its creation back in 2015), I am not interested in undertaking work and making any specific changes. Anyway, the BA has also been included in the NiaPy framework, and I hope you will have a better first insight when watching a code: Link.
To maintain a spirit of open-source software development, I expect you to incorporate your fixes into this source code to make this code more beautiful, more efficient, and more commented. Thank you for your time.