![]() |
![]()
| ![]() |
![]()
NAMEAlgorithm::Evolutionary::Op::Replace_Worst - Incorporate individuals into the population replacing the worst ones SYNOPSISmy $op = new Algorithm::Evolutionary::Op::Replace_Worst; $op->apply( $old_population_hashref, $new_population_hashref ); Base ClassAlgorithm::Evolutionary::Op::Base DESCRIPTIONAttempts all possible mutations in order, until a "novelty" individual is found. Generated individuals are checked against the population hash, and discarded if they are already in the population. METHODSnew()Does nothing, really apply( $population, $chromosome_list )Eliminates the worst individuals in the population, replacing them by the list of new chromosomes. The population must be evaluated, but there's no need to have it sorted in advance. SEE ALSOAlgorithm::Evolutionary::Op::Generation_Skeleton, where the replacement policy is one of the parameters It can also be used in POE::Component::Algorithm::Evolutionary for insertion of new individuals asynchronously. CopyrightThis file is released under the GPL. See the LICENSE file included in this distribution, or go to http://www.fsf.org/licenses/gpl.txt CVS Info: $Date: 2010/12/20 16:56:46 $ $Header: /media/Backup/Repos/opeal/opeal/Algorithm-Evolutionary/lib/Algorithm/Evolutionary/Op/Replace_Worst.pm,v 3.2 2010/12/20 16:56:46 jmerelo Exp $ $Author: jmerelo $ $Revision: 3.2 $ $Name $
|