Research Article

Dynamic Neighborhood-Based Particle Swarm Optimization for Multimodal Problems

Algorithm 1

Dynamic ε-neighborhood selection of particle Xi.
 Input: Population size, NPSO, MinPts, the i-th particle in the population, Xi;
 Output: Ndr: Directly neighborhood-reachable group of Xi; Nr: neighborhood-reachable group of Xi;
(1) For j = 1: NPSO;
(2) While Xi∼ = Xj do;
(3)  Calculate the Euclidean distance between Xi and Xj;
(4) End;
(5) End;
(6) Take the nearest MinPts particles with Xi, 1, …, MinPts, and store them in Ndr;
(7) The maximum distance between Xi and the particles in Ndr is denoted as dismax, and set εi = dismax;
(8) For k = 1: MinPts;
(9)  For j = 1: NPSO;
(10)   While 1-MinPts∼ = Xj & Xi∼ = Xj do;
(11)    Calculate the Euclidean distance between k and Xj. If the distance is less than εi, then put it into Nr.
(12)   End;
(13)  End;
(14)  End.