From a2703a8eabd8284107bfbfc016a70bce33ef3850 Mon Sep 17 00:00:00 2001 From: paradiseo Date: Wed, 9 Dec 2009 15:49:30 +0000 Subject: [PATCH] No real change -> test commit --- eo/src/eoParticleBestInit.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/eo/src/eoParticleBestInit.h b/eo/src/eoParticleBestInit.h index 79d78ed3f..b847f7162 100644 --- a/eo/src/eoParticleBestInit.h +++ b/eo/src/eoParticleBestInit.h @@ -63,8 +63,9 @@ public: void operator () (POT & _po1) { - for (unsigned i = 0; i < _po1.size (); i++) - _po1.bestPositions[i] = _po1[i]; + //Set the bestPositions + _po1.bestPositions = _po1 ; + // set the fitness _po1.best(_po1.fitness()); @@ -74,4 +75,3 @@ public: #endif /*_EOPARTICLEBESTINIT_H */ -