NAME

Algorithm::Evolutionary::Fitness::Trap - 'Trap' fitness function for evolutionary algorithms

SYNOPSIS

my $number_of_bits = 5;
my $a = $number_of_bits -1; # Usual default values follow
my $b = $number_of_bits;
my $z = $number_of_bits -1;
my $trap = Algorithm::Evolutionary::Fitness::Trap->new( $number_of_bits, $a, $b, $z );

DESCRIPTION

Trap function act as "yucky" or deceptive for evolutionary algorithms; they "trap" population into going to easier, but local optima.

METHODS

new

Creates a new instance of the problem, with the said number of bits and peaks. Depending on the parameter value, might produce some errors and bail out, not all values are admissible.

_really_apply

Applies the instantiated problem to a chromosome

trap

Computes the value of the trap function

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 10:20:46 $ 
$Header: /media/Backup/Repos/opeal/opeal/Algorithm-Evolutionary/lib/Algorithm/Evolutionary/Fitness/Trap.pm,v 3.1 2009/07/24 10:20:46 jmerelo Exp $ 
$Author: jmerelo $ 
$Revision: 3.1 $
$Name $