Algorithm::Evolutionary::Op::NoChangeTerm - Checks for termination of an algorithm; terminates when several generations transcur without change
my $nct = new Algorithm::Evolutionary::Op::NoChangeTerm 10; #nct->apply( \@pop ) will return false after 10 generations w/o change
Algorithm::Evolutionary::Op::NoChangeTerm is used when we want an algorithm to finish when the population has stagnated, or the global optimum is found. It counts how many generations the population has not changed, and returns false after that limit is reached.
It is useful if you want to run an algorithm for a certain time, or if you want to apply some fancy diversity operator
Creates a new terminator. Takes as an argument the number of generations after which it will return false, which defaults to 10.
Checks if the first member of the population has the same fitness as before, and increments counter. The population should be ordered
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 09:09:02 $ $Header: /cvsroot/opeal/opeal/Algorithm/Evolutionary/Op/NoChangeTerm.pm,v 1.3 2002/07/25 09:09:02 jmerelo Exp $ $Author: jmerelo $ $Revision: 1.3 $ $Name $
``The truth is out there'';