J. J. Merelo-Guervós > Algorithm-Evolutionary > Algorithm::Evolutionary::Op::Replace_Different

Download:
Algorithm-Evolutionary-0.77.tar.gz

Dependencies

Annotate this POD

CPAN RT

Open  0
View/Report Bugs
Module Version: 1.1   Source  

NAME ^

Algorithm::Evolutionary::Op::Replace_Different - Incorporate individuals into the population replacing the worst ones but only if they are different.

SYNOPSIS ^

  my $op = new Algorithm::Evolutionary::Op::Replace_Different; 
  $op->apply( $old_population_hashref, $new_population_hashref );

Base Class ^

Algorithm::Evolutionary::Op::Base

DESCRIPTION ^

Attempts 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.

METHODS ^

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 ALSO ^

Algorithm::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.

Copyright ^

  This 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: 2011/02/21 16:53:20 $ 
  $Header: /cvsroot/opeal/Algorithm-Evolutionary/lib/Algorithm/Evolutionary/Op/Replace_Different.pm,v 1.1 2011/02/21 16:53:20 jmerelo Exp $ 
  $Author: jmerelo $ 
  $Revision: 1.1 $
  $Name $
syntax highlighting: