Skip site navigation (1)Skip section navigation (2)

FreeBSD Manual Pages

  
 
  

home | help
Algorithm::EvolutionarUsergContributedlPtrlnDocumentatonvergence_Terminator(3)

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

SYNOPSIS
	 my $ct	= new Algorithm::Evolutionary::Op::Convergence_Terminator 0.5;
	 do {
	   $generation->apply($pop_hashref );
	 } until ($ct->apply( $pop_hashref );

Base Class
       Algorithm::Evolutionary::Op::Base

DESCRIPTION
       Checks for termination after if population has converged

METHODS
   new(	[$population_proportion	= 0.5] )
       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,	that is, its "genetic" representation is
       equal.

   apply()
       Checks for population convergence

See Also
       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.

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/28 11:30:56 $
	 $Header: /media/Backup/Repos/opeal/opeal/Algorithm-Evolutionary/lib/Algorithm/Evolutionary/Op/Convergence_Terminator.pm,v 3.1 2009/07/28 11:30:56 jmerelo Exp $
	 $Author: jmerelo $
	 $Revision: 3.1	$
	 $Name $

perl v5.32.1		Algorithm::Evolutionary::Op::Convergence_Terminator(3)

NAME | SYNOPSIS | Base Class | DESCRIPTION | METHODS | See Also | Copyright

Want to link to this manual page? Use this URL:
<https://www.freebsd.org/cgi/man.cgi?query=Algorithm::Evolutionary::Op::Convergence_Terminator&sektion=3&manpath=FreeBSD+13.0-RELEASE+and+Ports>

home | help