AntMutation - AntMutation, mute several atoms, depending on the probability. This probabilitu depends ont the feromone on each gene.
my $xmlStr=<<EOC; <op name='AntMutation' type='unary' rate='2'> <param name='probability' value='0.5' /> </op> EOC my $ref = XMLin($xmlStr);
my $op = OpBase->fromXML( $ref ); print $op->asXML(), "\n*Arity ->", $op->arity(), "\n";
my $op = new AntMutation (0.5 ); #Create from scratch with 0.5 probability
Mutation operator for a GA. Probability is a memoristic function based on feromone.
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/02/22 07:58:35 $ $Header: /cvsroot/opeal/opeal/AntMutation.pm,v 1.4 2002/02/22 07:58:35 javi Exp $ $Author: javi $ $Revision: 1.0 $