Particle swarm Optimization(PSO) used for solving optimisation
-
Initialize particles with random position and velocity vectors.
-
For each particle’s position (p) evaluate fitness(eg Sin(x))
-
If fitness(p) better than fitness(pbest) then pbest= p
-
Set best of pBests as gBest
-
Update particles velocity and position
Stop: giving gBest, optimal solution.
Initial state
final state(3000 iteration)