Algorithm::Evolutionary::Fitness::Trap - Error Correcting codes problem generator
my $number_of_bits = 5; my $a = $number_of_bits -1; my $b = $number_of_bits; my $z = $number_of_bits -1; my $trap = Algorithm::Evolutionary::Fitness::Trap->new( $number_of_bits, $a, $b, $z );
Trap function act as "yucky" or deceptive for evolutionary algorithms; they "trap" population into going to easier, but local optima.
Creates a new instance of the problem, with the said number of bits and peaks
Applies the instantiated problem to a chromosome
Computes the value of the trap function
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/04/24 18:09:21 $ $Header: /cvsroot/opeal/Algorithm-Evolutionary/lib/Algorithm/Evolutionary/Fitness/Trap.pm,v 1.2 2009/04/24 18:09:21 jmerelo Exp $ $Author: jmerelo $ $Revision: 1.2 $ $Name $
To install Algorithm::Evolutionary, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Algorithm::Evolutionary
CPAN shell
perl -MCPAN -e shell install Algorithm::Evolutionary
For more information on module installation, please visit the detailed CPAN module installation guide.