View on
MetaCPAN
J. J. Merelo-Guervós > Algorithm-Evolutionary-0.79_1 > Algorithm::Evolutionary::Op::Selector

Download:
Algorithm-Evolutionary-0.79_1.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::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: /media/Backup/Repos/opeal/opeal/Algorithm-Evolutionary/lib/Algorithm/Evolutionary/Op/Selector.pm,v 3.0 2009/07/24 08:46:59 jmerelo Exp $ 
  $Author: jmerelo $ 
syntax highlighting: