| Algorithms 1: Pseudo-code for WOA. |
| Initialize whale population of and maximum number of iterations
Calculate fitness of each search agent Find initial best search agent while () for each search agent Update , , , and if () if () Update by Equation (11) else if () Randomly select from population Update by Equation (17) end if else if () Update by Equation (14) end if end for Adjust all if they are out of solution range Calculate fitness of all Update if a better is found end while return |