Research Article

Gaussian Quantum Bat Algorithm with Direction of Mean Best Position for Numerical Function Optimization

Algorithm 1

Pseudocode of the BA algorithm.
Initialize the bat population and ;
 Define pulse frequency , pulse rate and the loudness ;
while do
  Generate new solutions by adjusting frequency, updating velocities and  positions using equations (1)–(3);
if then
  Select a solution among the best solutions randomly;
  Generate a local solution around the selected best solution using equation (4);
end if
if then
  Accept the new solutions;
  Increase and reduce using equations (5) and (6);
end if
 Rank the bats and find the current best ;
;
end while