egi-megi / porr-pso

2 stars 0 forks source link

Segmentation fault for low number of particles #13

Closed mpiku closed 3 years ago

mpiku commented 3 years ago

Segmentation fault appears when one solves the following problem:

Swarm s1a(2, 2, new ConfigEx1()); Particle theBestParticle1a = s1a.findTheBestParticle(0.1, 0.8, .1, .2, new ConfigStopCriterionAcademic());

It might be connected with particle = nullptr in void Swarm::computeGbest(Particle *particle).