Algorithm::Evolutionary::Op::Tournament_Selection - Tournament selector, takes individuals from one population and puts them into another
my $popSize = 100; my $tournamentSize = 7; my $selector = new Algorithm::Evolutionary::Op::Tournament_Selection $tournamentSize; my @newPop = $selector->apply( @pop ); #Creates a new population from old
Algorithm::Evolutionary::Op::Selector
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 the best.
Creates a new tournament selector
Applies the tournament selection to a population, returning another of the same size by default or whatever size is selected
Algorithm::Evolutionary::Op::RouleteWheel is another option for selecting a pool of individuals
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: 2012/05/15 11:58:01 $ $Header: /cvsroot/opeal/Algorithm-Evolutionary/lib/Algorithm/Evolutionary/Op/Tournament_Selection.pm,v 1.3 2012/05/15 11:58:01 jmerelo Exp $ $Author: jmerelo $
To install Algorithm::Evolutionary, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Algorithm::Evolutionary
CPAN shell
perl -MCPAN -e shell install Algorithm::Evolutionary
For more information on module installation, please visit the detailed CPAN module installation guide.