![]() |
![]()
| ![]() |
![]()
NAMEAlgorithm::Evolutionary::Experiment - Class for setting up an experiment with algorithms and population SYNOPSISuse Algorithm::Evolutionary::Experiment; my $popSize = 20; my $indiType = 'BitString'; my $indiSize = 64; #Algorithm might be anything of type Op my $ex = new Algorithm::Evolutionary::Experiment $popSize, $indiType, $indiSize, $algorithm; DESCRIPTIONThis class contains (as instance variables) an algorithm and a population, and applies one to the other. Can be serialized using XML, and can read an XML description of the experiment. METHODSnew( $pop_size, $type_of_individual, $individual_size )Creates a new experiment. An
"Experiment" has two parts: the
goApplies the different operators in the order that they appear; returns the population as a ref-to-array. SEE ALSOAlgorithm::Evolutionary::Run , another option for setting up experiments, which is the one you should rather use, as XML support is going to be deprecated (some day). CopyrightThis file is released under the GPL. See the LICENSE file included in this distribution, or go to http://www.fsf.org/licenses/gpl.txt
|