29 Mar 2021 11:30:17 UTC
- Distribution: Algorithm-Evolutionary
- Module version: 3.1
- Source (raw)
- Browse (raw)
- How to Contribute
- Issues (1)
- Testers (88 / 0 / 0)
- KwaliteeBus factor: 1
- License: open_source
- Activity24 month
- Download (97.19KB)
- MetaCPAN Explorer
- Subscribe to distribution
- This version
- Latest version++ed by:1 non-PAUSE userJMERELO J. J. Merelo-Guervósand 1 contributors
- JJ Merelo <jj /at/ merelo.net>
- and possibly others
- Reverse dependencies
- CPAN Testers List
- Dependency graph
- Known subclasses
Algorithm::Evolutionary::Fitness::Base - Base class for fitness functions
Shouldn't be used directly, it's 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.
Applies the instantiated problem to a chromosome. Actually it is a wrapper around
This is the one that really does the stuff. Should be overloaded by derived clases
Returns the number of evaluations made with this object. Useful for collecting stats
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
Module Install Instructions
To install Algorithm::Evolutionary, copy and paste the appropriate command in to your terminal.
perl -MCPAN -e shell install Algorithm::Evolutionary
For more information on module installation, please visit the detailed CPAN module installation guide.