Closed mpiku closed 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());
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).
particle = nullptr
void Swarm::computeGbest(Particle *particle)
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
invoid Swarm::computeGbest(Particle *particle)
.