项目作者: Jarsse

项目描述 :
Particle swarm optimization example with animations.
高级语言: Python
项目地址: git://github.com/Jarsse/Particle_Swarm_Optimization.git
创建时间: 2021-01-20T08:07:59Z
项目社区:https://github.com/Jarsse/Particle_Swarm_Optimization

开源协议:MIT License

下载


Particle_Swarm_Optimization

Simple PSO that creates swarm and drones and searches the smallest value from the function.
code has banana function and schwefel function for testing purposes.
PSO-image1
In the starting position all the particles are spread across the field. All particles start as blue particles and turn to red over time. Blue particles are searching in their close vicinity and red particles move towards swarm’s best position and look for better position there.
PSO-image2
In image2, particles have turned to red and started moving towards the swarm’s best position (white +).
PSO-image3
In image3, all particles have reached the swarm’s best position and look for even better position there until earlystopping stops the search or iterations have reached the maximum.