| Algorithm 1 Algorithm of WOA |
|
Input: Number of whales (n), Max_Iter Output: Prey or the fittest whale ) Calculate the objective value of each solution while) for each solution if) if) Update the current solution’s position by Equation (5) else if) ) Use Equation (12) end if else if) Update the current solution’s position by the Equation (9) end if end for Check whether there is any solution present beyond the search space and update it Calculate each solution’s fitness end while return X* |