Algorithm::Evolutionary::Op::IncMutation - Increments/decrements by one the value of one of the components of the string, takes into account the char class
my $xmlStr2=<<EOC; <op name='IncMutation' type='unary' rate='0.5' /> EOC my $ref2 = XMLin($xmlStr2);
my $op2 = Algorithm::Evolutionary::Op::Base->fromXML( $ref2 ); print $op2->asXML(), "\n*Arity ", $op->arity(), "\n";
my $op = new Algorithm::Evolutionary::Op::IncMutation; #Create from scratch
Algorithm::Evolutionary::Op::Base
Mutation operator for a GA; changes a single element in a string
Creates a new mutation operator.
Applies mutation operator to a ``Chromosome'', a bitstring, really. Can be
applied only to victims with the _str
instance variable; but
it checks before application that both operands are of the required type.
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: 2002/06/18 12:21:13 $ $Header: /cvsroot/opeal/opeal/Algorithm/Evolutionary/Op/IncMutation.pm,v 1.2 2002/06/18 12:21:13 jmerelo Exp $ $Author: jmerelo $ $Revision: 1.2 $ $Name $