The standard bat algorithm (BA) is inspired by the echolocation characteristics of microbats. This demo solves a function of d=10 dimensions. It is straightforward to extend it to solve other functions and optimization problems.
The details can be found in the book: Xin-She Yang, Nature-Inspired Optimization Algorithms, Elsevier Insights, (2014). https://www.sciencedirect.com/book/9780124167438/nature-inspired-optimization-algorithms
XS Yang (2021). The Standard Bat Algorithm (BA) (https://www.mathworks.com/matlabcentral/fileexchange/74768-the-standard-bat-algorithm-ba), MATLAB Central File Exchange. Retrieved .
Xin-She Yang, Nature-Inspired Optimization Algorithms, Elsevier Insights, (2014)
Hello Yang, in your file line number 36 what does rand(1,d) implies? i think it is the population that you se to 1 in n=input(1) line number 17. you told in the code to write the population between 20 to 40 but, why you didnt write it by yourself? i am trying yo write the population 20 instead of 1 but it would not let me.
It's wonderful but I have a question: Why Loudness and Emission_Rate are updated in each iteration for the whole swarm and not for each bat?
I actually have tried to rewrite the code with updating Loudness and Emission_Rate for each bat but the best solution didn't improve.
Find the treasures in MATLAB Central and discover how the community can help you!Start Hunting!