Closed mpiku closed 3 years ago
Function void computeGbest(Particle *particle); does not guarantee uniques of elements in the vector.
void computeGbest(Particle *particle);
vector
https://github.com/egi-megi/rojCzastek_Szczepanski_Jurkiewicz_Pikulinski/blob/465bd785737515fe13b82864bb7a104bbded701a/src/Swarm.cpp#L81-L93
Attention! std::vector<Particle> GbestVector is depracted now.
std::vector<Particle> GbestVector
New way of storing two best solutions is via public member of Swarm std::pair<Particle, Particle> globalBestParticle.
Swarm
std::pair<Particle, Particle> globalBestParticle
Function
void computeGbest(Particle *particle);
does not guarantee uniques of elements in thevector
.https://github.com/egi-megi/rojCzastek_Szczepanski_Jurkiewicz_Pikulinski/blob/465bd785737515fe13b82864bb7a104bbded701a/src/Swarm.cpp#L81-L93