J. J. Merelo-Guervós > Algorithm-Evolutionary-0.78_2 > Algorithm::Evolutionary::Op::TournamentSelect

Download:
Algorithm-Evolutionary-0.78_2.tar.gz

Dependencies

Annotate this POD

CPAN RT

Open  0
View/Report Bugs
Module Version: 3.0   Source  

NAME ^

Algorithm::Evolutionary::Op::TournamentSelect - Tournament selector, takes individuals from one population and puts them into another

SYNOPSIS ^

  my $popSize = 100;
  my $tournamentSize = 7;
  my $selector = new Algorithm::Evolutionary::Op::TournamentSelect $popSize, $tournamentSize;
  my @newPop = $selector->apply( @pop ); #Creates a new population from old

Base Class ^

Algorithm::Evolutionary::Op::Selector

DESCRIPTION ^

One of the possible selectors used for selecting the pool of individuals that are going to be the parents of the following generation. Takes a set of individuals randomly out of the population, and select a few of the best.

METHODS ^

new( $output_population_size, $tournament_size )

Creates a new tournament selector

apply

Applies the tournament selection to a population, returning another of the said size

See Also ^

Algorithm::Evolutionary::Op::RouleteWheel is another option for selecting a pool of individuals

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: 2009/07/24 08:46:59 $ 
  $Header: /cvsroot/opeal/Algorithm-Evolutionary/lib/Algorithm/Evolutionary/Op/TournamentSelect.pm,v 3.0 2009/07/24 08:46:59 jmerelo Exp $ 
  $Author: jmerelo $ 
syntax highlighting: