added temporary population sorting

This commit is contained in:
Caner Candan 2010-08-31 19:29:05 +02:00
commit 13b9b62397

View file

@ -184,12 +184,12 @@ public:
current_solution = candidate_solution; current_solution = candidate_solution;
} }
} }
while ( _sa_continue( current_solution) ); while ( _sa_continue( current_solution) );
_replacor(pop, current_pop); // copy current_pop in pop
pop.sort(); pop.sort();
_replacor(pop, current_pop);
if ( ! _cooling_schedule( temperature ) ){ eo::log << eo::debug << "_cooling_schedule" << std::endl; break; } if ( ! _cooling_schedule( temperature ) ){ eo::log << eo::debug << "_cooling_schedule" << std::endl; break; }
if ( ! _distribution_continue( distrib ) ){ eo::log << eo::debug << "_distribution_continue" << std::endl; break; } if ( ! _distribution_continue( distrib ) ){ eo::log << eo::debug << "_distribution_continue" << std::endl; break; }