Algorithm::Evolutionary::Op::Combined - Combinator of several operators of the same arity, unary or binary
#Initialize using OO interface my $op = new Algorithm::Evolutionary::Op::Mutation 0.1 3 my $another_op = new Algorithm::Evolutionary::Op::Permutation 2 # Single operator with rate of application = 3 my $combined_op = new Algorithm::Evolutionary::Op::Combined [ $op, $another_op ], 3;
Algorithm::Evolutionary::Op::Base
Some algorithms (such as Algorithm::Evolutionary::Op::Canonical_GA_NN) need a single "mutation" and a single "crossover" operator. If you want to combine several (like above, mutation and permutation), each one with its own rate, you have to give them a façade like this one.
Priority defaults to one, operator array has no defaults.
Applies the operator to the set of operands. All are passed, as such, to whatever operator is selected
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, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Algorithm::Evolutionary
CPAN shell
perl -MCPAN -e shell install Algorithm::Evolutionary
For more information on module installation, please visit the detailed CPAN module installation guide.