Skip to content

Particle swarm optimization (PSO) is one of the bio-inspired algorithms and it is a simple one to search for an optimal solution in the solution space.

License

Notifications You must be signed in to change notification settings

raaz23/Partical-SWarm-Optimization-PSO-algorithm

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

https://github.com/raaz23/Partical-SWarm-Optimization-PSO-algorithm

alt text alt text alt text

Vectorized general particle swarm optimization code using python.

The code can work with any arbitrary fitness/cost function with arbitrary number of optimization parameters (dimensions). To increase the processing speed, the code has been completely vectorized. All possible parallel operations are implemented using matrix mathematics. Thus, nested loops are avoided. Only a single for loop going over the iterations/generations is used.

Output animation

Generated using pso_2D_animation_v1.py

alt text alt text alt text

this code is totally based on python.

About

Particle swarm optimization (PSO) is one of the bio-inspired algorithms and it is a simple one to search for an optimal solution in the solution space.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published