p_peaks.pl - Implementation of the p-peaks combinatorial optimization problem
prompt% ./p_peaks.pl <population> <number of generations>
prompt% perl p_peaks.pl <bits> <peaks> <population> <number of generations> Shows the values of the two floating-point components of the chromosome and finally the best value and fitness reached, which should be as close to 1 as possible.
A simple example of how to run an Evolutionary algorithm based on Algorithm::Evolutionary. Tries to find the max of the bidimensional Tide , and outputs the x and y coordinates, along with fitness. Best fitness is close to 1. Around 50 generations should be enough, but default is population and number of generations equal to 100.
This script includes also a test of the consensus function (shown as "C" in output), which is used in some types of algorithms.
Contributed by Pedro Castillo Valdivieso, modified by J. J. Merelo
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: 2012/05/15 11:58:01 $ $Header: /media/Backup/Repos/opeal/opeal/Algorithm-Evolutionary/examples/p_peaks.pl,v 3.1 2012/05/15 11:58:01 jmerelo Exp $ $Author: jmerelo $ $Revision: 3.1 $ $Name $