The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

NAME

Algorithm::Evolutionary::Op::Selector - Abstract base class for population selectors

SYNOPSIS

    package My::Selector;
    use base ' Algorithm::Evolutionary::Op::Selector';

Base Class

Algorithm::Evolutionary::Op::Base

DESCRIPTION

Abstract base class for population selectors; defines a few instance variables and interface elements

METHODS

new( $output_population_size )

Creates a new selector which outputs a fixed amount of individuals. This goes to the base class, since all selectors must know in advance how many they need to generate

apply

Applies the tournament selection to a population, returning another of the set size. This is an abstract method that should be implemented by descendants.

Known descendants

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/Selector.pm,v 3.0 2009/07/24 08:46:59 jmerelo Exp $ 
  $Author: jmerelo $