Manual Reference Pages - ALGORITHM::EVOLUTIONARY::FITNESS::BASE (3)
Algorithm::Evolutionary::Fitness::Base - Base class for fitness functions
Shouldnt be used directly, its an abstract class whose siblings are
used to implement fitness functions.
This module includes functionality that should be common to all fitness. Or at least it
would be nice to have it in common. It counts the number of evaluations and includes a common API for caching evaluations.
Initializes common variables, like the number of evaluations. Cache is not initialized.
Called from new, initializes the evaluations counter.
apply( CW$individual )
Applies the instantiated problem to a chromosome. Actually it is a
wrapper around _apply
_apply( CW$individual )
This is the one that really does the stuff. Should be overloaded by
Returns the number of evaluations made with this object. Useful for
Sets to 0 the number of evaluations; useful for repeated use of the fitness object
Returns a reference to the internal evaluations cache. Not very encapsulated, but...
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
|perl v5.20.3 ||ALGORITHM::EVOLUTIONARY::FITNESS::BASE (3) ||2014-10-25 |
Visit the GSP FreeBSD Man Page Interface.
Output converted with manServer 1.07.