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