| Pseudocode 2: |
| Initialize the grey wolf population Initialize and Calculate fitness of every search agent the best search agent the second-best search agent the third-best search agent maximum number of iterations) For each search agent Update the position of the current search agent End for Update and Calculate the fitness of all search agents Update End while Return |