
Algorithm::Evolutionary::Op::Convergence_Terminator - Checks for termination of an algorithm, returns true if a certain percentage of the population is the same

my $ct = new Algorithm::Evolutionary::Op::Convergence_Terminator 0.5;

Algorithm::Evolutionary::Op::Base

Checks for termination after if population has converged

Creates a new generational terminator: my $ct = new Algorithm::Evolutionary::Op::Convergence_Terminator 0.5; will make the apply method return false after if 50% of the population are the same
Checks for population convergence

Algorithm::Evolutionary::Op::FullAlgorithm needs an object of this class to check for the termination condition. It's normally used alongside "generation-type" objects such as Algorithm::Evolutionary::Op::Easy
There are other options for termination conditions: Algorithm::Evolutionary::Op::NoChangeTerm and Algorithm::Evolutionary::Op::DeltaTerm.

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/02/16 16:16:40 $ $Header: /cvsroot/opeal/Algorithm-Evolutionary/lib/Algorithm/Evolutionary/Op/GenerationalTerm.pm,v 2.3 2009/02/16 16:16:40 jmerelo Exp $ $Author: jmerelo $ $Revision: 2.3 $ $Name $