
Algorithm::Evolutionary::Fitness::P_Peaks - P Peaks problem generator

my $number_of_peaks = 100;
my $number_of_bits = 32;
my $p_peaks = Algorithm::Evolutionary::Fitness::P_Peaks->new( $number_of_peaks, $number_of_bits );

P_Peaks fitness function; optimizes the distance to the closest in a series of peaks

Creates a new instance of the problem, with the said number of bits and peaks
Returns random string in the same style than the peaks. Useful for testing
Applies the instantiated problem to a chromosome. Intended for internal use.
Applies the instantiated problem to a string

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/02/05 07:10:35 $ $Header: /cvsroot/opeal/Algorithm-Evolutionary/lib/Algorithm/Evolutionary/Fitness/P_Peaks.pm,v 2.2 2009/02/05 07:10:35 jmerelo Exp $ $Author: jmerelo $ $Revision: 2.2 $ $Name $