NAME

Algorithm::Evolutionary::Fitness::wP_Peaks - wP Peaks problem generator - weighted version of P_Peaks

SYNOPSIS

my $number_of_bits = 32;
my @weights = (1);
for (my $i = 0; $i < 99; $i ++ ) {
   push @weights, 0.99;
}
my $p_peaks = Algorithm::Evolutionary::Fitness::P_Peaks->new( $number_of_bits, @weights ); #Number of peaks = scalar  @weights

DESCRIPTION

wP-Peaks fitness function, weighted version of the P-Peaks fitness function, which has now a single peak

METHODS

new( $number_of_bits, $ref_to_weights_hash )

Creates a new instance of the problem, with the said number of bits and peaks

random_string

Returns random string in the same style than the peaks. Useful for testing

_apply

Applies the instantiated problem to a chromosome

p_peaks

Applies the instantiated problem to a string

cached_evals

Returns the number of keys in the evaluation cache

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: 2008/06/22 07:51:21 $ 
$Header: /cvsroot/opeal/Algorithm-Evolutionary/lib/Algorithm/Evolutionary/Fitness/wP_Peaks.pm,v 1.2 2008/06/22 07:51:21 jmerelo Exp $ 
$Author: jmerelo $ 
$Revision: 1.2 $
$Name $