Research Article

Modified Bat Algorithm Based on Lévy Flight and Opposition Based Learning

Algorithm 2

Pseudocode of Lévy Flight Search.
(1) Input the optimization function and .
(2) Select the individual which is chosen to be modified by Lévy Flight.
(3) Compute using Eq. (19).
(4) Compute step size s using Eq. (17) and Eq. (18).
(5) Generate a new candidate solution using Eq. (16).
(6) Calculate .
(7) if  
(8) .
(9)  end if