Research Article

Opposition-Based Barebones Particle Swarm for Constrained Nonlinear Optimization Problems

Algorithm 1

The proposed OBPSO algorithm.
Uniform randomly initialize each particle in the swarm;
2 Initialize pbest and gbest;
3 While    FEs ≤ MAX_FEs   do
  /*  Barebones PSO                         */
4 for   to   do
5   Calculate the position of the th particle according to (2.2);
6   Calculate the fitness value of according to (3.6);
7    ++;
8 end
  /*  Opposition-based learning                   */
9 if  rand   then  
10   Update the dynamic interval boundaries in according to (3.3);
11   for   to   do
12    Generate the opposite particle of according to (3.2)
13    Calculate the fitness value of according to (3.6)
14     ++;
15   end
16   Select fittest particles from , as current population ;
17 end
  /*  Boundary search strategy                   */
18 if     then  
19   
20   for   to   do
21    Randomly select a feasible solution and an infeasible solution ;
22    Generate a new solution according to (3.11);
23    Calculate the fitness value of according to (3.6);
24     ++;
25    if   is feasible  then
26       ;
27    end
28    else
29       ;
30    end
31   end
32 end
33  Update pbest and gbest;
34 end