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: 2001/12/17 12:59:24 $ 
  $Header: /cvsroot/opeal/opeal/RouletteWheel.pm,v 1.2 2001/12/17 12:59:24 jmerelo Exp $ 
  $Author: jmerelo $