Research Article

A New Initialization Approach in Particle Swarm Optimization for Global Optimization Problems

Algorithm 4

Proposed PSO pseudocode.
Step 1: initialize the swarm
Set epoch count , population size , dimension of the problem , and
For each particle
 Step 1.1: initialize as
 Step 1.2: initialize the particle velocity as,
 Step 1.3: compute the fitness score
  Step 1.4: set global best position as ) where
  Step 1.5: set local best position as ) where
Step 2:
Compare the current particle’s fitness score in the swarm and its old local best location . If the current fitness score is greater than , then substitute , with ; else retain the unchanged
Step 3:
Compare the current particle’s fitness score in the swarm and its old global best location . If the current fitness score is greater than , then substitute , with ; else retain the unchanged
Step 4:
Using equation (1), compute ⟶ updated velocity vector
Using equation (2), compute ⟶ updated position vector
Step 5:
Go to step 2, if the stopping criteria does not met, else terminate.