<?xml version="1.0"?>
<!DOCTYPE ea SYSTEM "EvoSpec.dtd">
<!-- Parameters for an evolutionary algorithm; also generation 0 of the same algorithm -->
<!--
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: 2003/02/27 09:19:29 $
$Header: /cvsroot/opeal/opeal/Algorithm/xml/onemax.xml,v 1.5 2003/02/27 09:19:29 jmerelo Exp $
$Author: jmerelo $
$Revision: 1.5 $
$Name $
-->
<ea version='0.4'>
<initial>
<op name='Creator' >
<param name='number' value='20' />
<param name='class' value='BitString' />
<param name='options'>
<param name='length' value='64' />
</param>
</op>
<op name='Easy' type='unary'>
<param name='selrate' value='0.4' />
<param name='maxgen' value='100' />
<code type='eval' language='perl'>
<src><![CDATA[
my $indi = shift;
my $total = 0;
for ( my $i = 0; $i < length( $indi->{_str} ); $i ++ ) {
$total += substr( $indi->{_str}, $i, 1 );
}
return $total;
]]>
</src>
</code>
<op name='Bitflip' type='unary' rate='1.0'>
<param name='probability' value='0.1' />
<param name='howMany' value='1' />
</op>
<op name='Crossover' type='binary' rate='1'>
<param name='numPoints' value='2' />
</op>
</op>
</initial>
</ea>