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::FITNESS::STRING (3)

.ds Aq ’

NAME

Algorithm::Evolutionary::Fitness::String - Base class for string-based fitness functors

CONTENTS

SYNOPSIS



    package My::Own::Fitness;
    use base Algorithm::Evolutionary::Fitness::String; #Mainly for deriving
   
    my $evaluator = new My::Own::Fitness;
    my $cache_hits = $evaluator->cached_evals();



DESCRIPTION

Base class for fitness functions applied to string-based chromosomes; extracts common code, and saves time. Provides a hash called %cache to be used as a, well, cache for evaluations. Assumes it’s using the _str instance variable of the chromosome

METHODS

new()

Initializes the cache

_apply( CW$individual )

Applies the instantiated problem to a chromosome, delegating to a specific function

_really_apply( CW$string )

This one applies the function to the string. Should be overloaded

cached_evals()

Returns the number of keys in the evaluation cache, which can be compared to the total number of evaluations to find the cache hit rate.

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



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


perl v5.20.3 ALGORITHM::EVOLUTIONARY::FITNESS::STRING (3) 2014-10-25

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