Skip to content

Particle swarm Optimization(PSO) used for solving optimisation. A particle swarm searching for the global minimum of a function

Notifications You must be signed in to change notification settings

adityaknegi/Particle-swarm-Optimization

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Particle-swarm-Optimization

Particle swarm Optimization(PSO) used for solving optimisation

  1. Initialize particles with random position and velocity vectors.

  2. For each particle’s position (p) evaluate fitness(eg Sin(x))

  3. If fitness(p) better than fitness(pbest) then pbest= p

  4. Set best of pBests as gBest

  5. Update particles velocity and position

Stop: giving gBest, optimal solution.

                                       Initial state

alt text.

                                        final state(3000 iteration)

alt text

About

Particle swarm Optimization(PSO) used for solving optimisation. A particle swarm searching for the global minimum of a function

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published