Algorithm::Evolutionary::Fitness::Rastrigin - Implementation of Rastrigin's function
my $n_dimensions=2; #Max. number of elements to choose my $rastrigin = Algorithm::Evolutionary::Fitness::Rastrigin->new( $n_dimensions );
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
Creates a new instance of the problem, with the said number of bits and peaks
Applies the knapsack problem to the string, using a penalty 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
To install Algorithm::Evolutionary::Fitness, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Algorithm::Evolutionary::Fitness
CPAN shell
perl -MCPAN -e shell install Algorithm::Evolutionary::Fitness
For more information on module installation, please visit the detailed CPAN module installation guide.