
Algorithm::Evolutionary::Fitness::Royal_Road - Mitchell's Royal Road function

my $block_size = 4;
my $rr = Algorithm::Evolutionary::Fitness::Royal_Road->new( $block_size );

Royal Road function, adds block_size to fitness only when the block is complete

Creates a new instance of the problem, with the said number of bits and peaks
Computes the royal road function with given block size

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/Royal_Road.pm,v 2.2 2009/02/05 07:10:35 jmerelo Exp $ $Author: jmerelo $ $Revision: 2.2 $ $Name $