Skip to main content
. 2020 Nov 17;22(11):1312. doi: 10.3390/e22111312
Algorithm 1 Standard PSO algorithm
1: procedure PSO(N,wmax,wmin,c1,c2,Tmax)
2: Acceleratedfactor=(c1,c2),maxgeneration=Tmax
3:  Initializelocationandvelocity;
4:  while t<Tmax do
5:    tt+1;
6:    w(t)wmaxwmaxwminTmax
7:    for i=1,,N do
8:     update vi(t);
9:     xi(t)xi(t1)+vi(t);
10:     update pi(t);
11:    end for
12:    update g(t);
13:  end while
14: end procedure