| Algorithm 1: SOA |
| Input: Objective function f(x), seagull population size N, dimensional space D, maximum number of iterations T. |
| 1. Initialize population;
2. Set to 2; 3. Set u and v to 1; 4. While t < T 5. for i = 1 : N 6. Calculate seagull migration position by Equation (5); 7. Compute ,,, using Equations (6)–(9); 8. Calculate seagull attack position by Equation (10); 9. Update seagull optimal position ; 10. t = t + 1; 11. end for 12. end while 13. Output the global optimal solution. |