Skip to main content
. 2022 Jul 14;24(7):973. doi: 10.3390/e24070973
Algorithm 2: SPSOA
Input: Objective function f(x), seagull population size N, dimensional space D, maximum number of iterations T, learning factors c1 and c2
1. Sobol sequence initialize population;
2. Set u and v to 1;
3. While t < T
4.     for i = 1 : N
5.      Calculate seagull migration position D→S by Equation (5);
6.      Compute x′,y′,z′,r using Equations (6)–(9);
7.      Calculate seagull attack position P→S1(t) by Equation (10);
8.      Compute w using Equation (16);
9.      Calculate learning location P→l(t) by Equation (15);
10.    Update seagull optimal position P→bS(t);
11.      t = t + 1;
12.    end for
13. end while
14. Output the global optimal solution.