Click here to Skip to main content
15,886,595 members
Please Sign up or sign in to vote.
3.00/5 (1 vote)
See more:
I have a doubt regarding Particle Swarm Optimization algorithm.In PSO,when updating the velocity,i used the pbest and gbest in the equation.
Is pbest and gbest are values or particles?
Posted

Hey Chnr108,

Not sure about the algorithm, but a quick google found this: [^]

From the explanation there it sounds as if pbest is an individual particle's best - so it's a value per particle (i.e. a property of the particle). Gbest is the global best - so again a value, but calculated from applying some aggregate function to the particle collection (e.g. select max(pbest) from particles in simple terms - not sure if Max is the correct aggregate though, and the SQL statement is only of relevance to explain the logic).

Hope that's of some help.

Cheers,

JB
 
Share this answer
 
v2
Pbest: best solution (fitness) it has achieved so far. (The fitness value is also stored.)
Gbest: best value, obtained so far by any particle in the population.
so inshort pbest is a local best value & gbest is global best value.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900