NAME

    Algorithm::Evolutionary::Op::GenerationalTerm  - Checks for termination of an algorithm.


SYNOPSIS

  my $gt = new Algorithm::Evolutionary::Op::GenerationalTerm 100; #apply will return false after 100 generations


Base Class

Algorithm::Evolutionary::Op::Base


DESCRIPTION

Base class for terminators, that is, checks performed at the end of the evolutionary algorithm loop to see if it should continue or not


METHODS

new

Creates a new generational terminator: my $gt = new Algorithm::Evolutionary::Op::GenerationalTerm 100; #apply will return false after 100 generations will make the apply method return false after 100 calls

apply

Checks if the counter has arrived to the allotted number of generations, returns false when it has. $gt->apply(); will return false when it has been run for the number of times it has been initialized to


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/07/25 07:03:09 $ 
  $Header: /cvsroot/opeal/opeal/Algorithm/Evolutionary/Op/GenerationalTerm.pm,v 1.2 2002/07/25 07:03:09 jmerelo Exp $ 
  $Author: jmerelo $ 
  $Revision: 1.2 $
  $Name $