GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages
Algorithm::Evolutionary::Op::Base(3) User Contributed Perl Documentation Algorithm::Evolutionary::Op::Base(3)

Algorithm::Evolutionary::Op::Base - Base class for Algorithm::Evolutionary operators,

    my $op = new Algorithm::Evolutionary::Op::Base; #Creates empty op, with rate

    print $op->rate();  #application rate; relative number of times it must be applied
    print "Yes" if $op->check( 'Algorithm::Evolutionary::Individual::Bit_Vector' ); #Prints Yes, it can be applied to Bit_Vector individual
    print $op->arity(); #Prints 1, number of operands it can be applied to

Base class for operators applied to Individuals and Populations and all the rest. An operator is any object with the "apply" method, which does things to individuals or populations. It is intendedly quite general so that any genetic or population operator can fit in.

Automatically define accesors for instance variables. You should probably not worry about this unless you are going to subclass.

Takes a hash with specific parameters for each subclass, creates the object, and leaves subclass-specific assignments to subclasses

Creates an operator via its default parameters. Probably obsolete

Takes a definition in the shape <op></op> and turns it into an object, if it knows how to do it. The definition must have been processed using XML::Simple.

It parses the common part of the operator, and leaves specific parameters for the subclass via the "set" method.

Prints as XML, following the EvoSpec 0.2 XML specification. Should be called from derived classes, not by itself. Provides a default implementation of XML serialization, with a void tag that includes the name of the operator and the rate (all operators have a default rate). For instance, a "foo" operator would be serialized as " <op name='foo' rate='1' > ".

If there is not anything special, this takes also care of the instance variables different from "rate": they are inserted as "param" within the XML file. In this case, "param"s are void tags; if you want anything more fancy, you will have to override this method. An optional ID can be used.

Gets or sets the rate of application of the operator

Check if the object the operator is applied to is in the correct class.

Returns the arity, ie, the number of individuals it can be applied to

Converts the parameters passed as hash in instance variables. Default method, probably should be overriden by derived classes. If it is not, it sets the instance variables by prepending a "_" to the keys of the hash. That is, $op->set( { foo => 3, bar => 6} ); will set "$op->{_foo}" and "$op->{_bar}" to the corresponding values

This is quite incomplete. Should be either generated automatically or suppressed altogether
  • Algorithm::Evolutionary::Op::Creator
  • Algorithm::Evolutionary::Op::Mutation
  • Algorithm::Evolutionary::Op::Mutation
  • Algorithm::Evolutionary::Op::BitFlip
  • Algorithm::Evolutionary::Op::GaussianMutation
  • Algorithm::Evolutionary::Op::Novelty_Mutation
  • Algorithm::Evolutionary::Op:Crossover
  • Algorithm::Evolutionary::Op::VectorCrossover
  • Algorithm::Evolutionary::Op::CX
  • Algorithm::Evolutionary::Op::ChangeLengthMutation
  • Algorithm::Evolutionary::Op::ArithCrossover
  • Algorithm::Evolutionary::Op::NoChangeTerm
  • Algorithm::Evolutionary::Op::DeltaTerm
  • Algorithm::Evolutionary::Op::Easy
  • Algorithm::Evolutionary::Op::FullAlgorithm

The introduction to the XML format used here, XML

  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
2014-10-25 perl v5.32.1

Search for    or go to Top of page |  Section 3 |  Main Index

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with ManDoc.