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

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

Dependencies

Annotate this POD

CPAN RT

Open  0
View/Report Bugs
Module Version: 3.0   Source   Latest Release: Algorithm-Evolutionary-0.80

NAME ^

Algorithm::Evolutionary::Op::RouletteWheel - Fitness-proportional selection, using a roulette wheel

SYNOPSIS ^

    use Algorithm::Evolutionary::Op::RouletteWheel;
    my $popSize = 100;
    my $selector = new  Algorithm::Evolutionary::Op::RouletteWheel $popSize;

Base Class ^

Algorithm::Evolutionary::Op::Selector

DESCRIPTION ^

Roulette wheel selection tries to select as many copies of the individual as it corresponds to its fitness. It is used in the canonical GA. Some information on this method of selection can be found in http://www.geatbx.com/docu/algselct.html#nameselectionrws

METHODS ^

new( $output_population_size )

Creates a new roulette wheel selector

apply

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

See Also ^

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