peoPopEval.h modified

git-svn-id: svn://scm.gforge.inria.fr/svnroot/paradiseo@1005 331e1502-861f-0410-8da2-ba01fb791d7f
This commit is contained in:
canape 2008-02-26 08:53:48 +00:00
commit b1175c10ab

View file

@ -153,20 +153,23 @@ template< class EOT > void peoPopEval< EOT >::operator()(eoPop< EOT >& __dummy,
template< class EOT > void peoPopEval< EOT >::operator()(eoPop< EOT >& __pop ) template< class EOT > void peoPopEval< EOT >::operator()(eoPop< EOT >& __pop )
{ {
for ( unsigned i = 0; i < __pop.size(); i++ ) if ( __pop.size() && (funcs.size() * __pop.size()) )
{ {
__pop[ i ].fitness(typename EOT :: Fitness() ); for ( unsigned i = 0; i < __pop.size(); i++ )
progression[ &__pop[ i ] ].first = funcs.size() - 1; {
progression[ &__pop[ i ] ].second = funcs.size(); __pop[ i ].fitness(typename EOT :: Fitness() );
for ( unsigned j = 0; j < funcs.size(); j++ ) progression[ &__pop[ i ] ].first = funcs.size() - 1;
{ progression[ &__pop[ i ] ].second = funcs.size();
/* Queuing the 'invalid' solution and its associated owner */ for ( unsigned j = 0; j < funcs.size(); j++ )
tasks.push( &__pop[ i ] ); {
} /* Queuing the 'invalid' solution and its associated owner */
} tasks.push( &__pop[ i ] );
total = funcs.size() * __pop.size(); }
requestResourceRequest( funcs.size() * __pop.size() ); }
stop(); total = funcs.size() * __pop.size();
requestResourceRequest( funcs.size() * __pop.size() );
stop();
}
} }