Skip site navigation (1)Skip section navigation (2)

FreeBSD Manual Pages

  
 
  

home | help
Algorithm::EvolutionarUserpContributedtPerlEDolutionary::Op::ArithCrossover(3)

NAME
       Algorithm::Evolutionary::Op::ArithCrossover - Arithmetic	crossover
       operator; performs the average of the n parents crossed

SYNOPSIS
	 my $xmlStr6=<<EOC; #Create it from XML
	 <op name='ArithCrossover' type='binary' rate='1' />
	 EOC
	 my $ref6 = XMLin($xmlStr6);
	 my $op6 = Algorithm::Evolutionary::Op::Base->fromXML( $ref6 );
	 print $op6->asXML(), "\n";
	 $op6->apply( $indi4, $indi5 );
	 print $indi4->asString(), "\n"

	 my $op	= new Algorithm::Evolutionary::Op::ArithCrossover; #Create from	scratch

Base Class
       Algorithm::Evolutionary::Op::Base

DESCRIPTION
       Crossover operator for a	vector-rep individual

METHODS
   create()
       Creates the operator, but is more or less empty.	Does not have instance
       variables

   apply( $chromosome_1, $chromosome_2 )
       Applies xover operator to a "Chromosome", a vector of stuff, really.
       Can be applied only to victims with the "_array"	instance variable; but
       it checks before	application that both operands are of type
       Algorithm::Evolutionary::Individual::Vector.  Returns the resulting
       chromosome

Copyright
	 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: 2011/02/14 06:55:36 $
	 $Header: /media/Backup/Repos/opeal/opeal/Algorithm-Evolutionary/lib/Algorithm/Evolutionary/Op/ArithCrossover.pm,v 3.1 2011/02/14 06:55:36 jmerelo Exp $
	 $Author: jmerelo $
	 $Revision: 3.1	$
	 $Name $

perl v5.24.1			Algorithm::Evolutionary::Op::ArithCrossover(3)

NAME | SYNOPSIS | Base Class | DESCRIPTION | METHODS | Copyright

Want to link to this manual page? Use this URL:
<https://www.freebsd.org/cgi/man.cgi?query=Algorithm::Evolutionary::Op::ArithCrossover&sektion=3&manpath=FreeBSD+12.1-RELEASE+and+Ports>

home | help