NAME

    RouletteWheel - Fitness-proportional selection, using a roulette wheel


SYNOPSIS use RouletteWheel; my $popSize = 100; my $selector = new RouletteWheel $popSize; =cut


Base Class

OpBase


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.

new

Creates a new roulette wheel selector

apply

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


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: 2002/05/29 10:02:11 $ 
  $Header: /cvsroot/opeal/opeal/RouletteWheel.pm,v 1.3 2002/05/29 10:02:11 jmerelo Exp $ 
  $Author: jmerelo $