FreeBSD Manual Pages
Algorithm::EvolutionarUserAContributedvoerliDocumentp::Tournament_Selection(3) NAME Algorithm::Evolutionary::Op::Tournament_Selection - 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::Tournament_Selection $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 the best. METHODS new( $output_population_size, $tournament_size ) Creates a new tournament selector apply( $ref_to_population[, $output_size || @$ref_to_population] ) Applies the tournament selection to a population, returning another of the same size by default or whatever size is selected. Please bear in mind that, unlike other selectors, this one uses a reference to population instead of a population array. 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 perl v5.32.1 Algorithm::Evolutionary::Op::Tournament_Selection(3)
NAME | SYNOPSIS | Base Class | DESCRIPTION | METHODS | See Also | Copyright
Want to link to this manual page? Use this URL:
<https://www.freebsd.org/cgi/man.cgi?query=Algorithm::Evolutionary::Op::Tournament_Selection&sektion=3&manpath=FreeBSD+13.0-RELEASE+and+Ports>