NAME

Algorithm::Evolutionary::Fitness::Rastrigin - Implementation of Rastrigin's function

SYNOPSIS

my $n_dimensions=2;  #Max. number of elements to choose
my $rastrigin = Algorithm::Evolutionary::Fitness::Rastrigin->new( $n_dimensions ); 

DESCRIPTION

Classical Rastrigin function, used for tests of numerical optimization problems. Check it at http://www-optima.amp.i.kyoto-u.ac.jp/member/student/hedar/Hedar_files/TestGO_files/Page2607.htm

METHODS

new

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

Rastrigin

Applies the knapsack problem to the string, using a penalty 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