GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages


Manual Reference Pages  -  ALGORITHM::EVOLUTIONARY::OP::NOCHANGETERM (3)

.ds Aq ’

NAME



    Algorithm::Evolutionary::Op::NoChangeTerm - Checks for termination of an algorithm; terminates
                   when several generations transcur without change



CONTENTS

SYNOPSIS



    my $nct = new Algorithm::Evolutionary::Op::NoChangeTerm 10;
    #nct->apply( \@pop ) will return false after 10 generations w/o change



Base Class

Algorithm::Evolutionary::Op::Base

DESCRIPTION

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

METHODS

    new( [$number_of_generations_without_change] )

Creates a new terminator. Takes as an argument the number of generations after which it will return false, which defaults to 10.

apply( CW$population )

Checks if the first member of the population has the same fitness as before, and increments counter. The population should be ordered

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::DeltaTerm and Algorithm::Evolutionary::Op::GenerationalTerm.

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/NoChangeTerm.pm,v 3.0 2009/07/24 08:46:59 jmerelo Exp $
  $Author: jmerelo $
  $Revision: 3.0 $
  $Name $



Search for    or go to Top of page |  Section 3 |  Main Index


perl v5.20.3 ALGORITHM::EVOLUTIONARY::OP::NOCHANGETERM (3) 2014-10-25

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with manServer 1.07.