Skip to main content
. 2020 Apr 10;20(7):2147. doi: 10.3390/s20072147
Algorithm 1 Pseudo Code of GWO
1.Initialize the wolf population Xi(i=1,2,,n)2.Initialize a,A,and C3. Calculate the fitness of each search agent4. Xα=the best search agent5. Xβ=the second best search agent6. Xδ=the third best search agent7. while (t<Max number of iterations)8.for each search agent9.  Update the position of the current search agent by equation(7)10.end for11.Updatea,A,andC12.Calculate the fitness of all search agents13.UpdateXα,Xβ,and Xδ14.t=t+115. end while16. return Xα