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


Manual Reference Pages  -  ALGORITHM::EVOLUTIONARY::INDIVIDUAL::ANY (3)

.ds Aq ’

NAME

Algorithm::Evolutionary::Individual::Any - Wrapper around any Perl class, turns it into a Chromosome

CONTENTS

SYNOPSIS



    use Algorithm::Evolutionary::Individual::Any;
    use Class::Name; # Your class here; its required if not included anyways

    my $indi = new Algorithm::Evolutionary::Individual::Any Class::Name $class_args ;

    $indi->Fitness( $fitness );
    print $indi->Fitness();



Base Class

Algorithm::Evolutionary::Individual::Base

DESCRIPTION

Bitstring Individual for a Genetic Algorithm. Used, for instance, in a canonical GA. That does not mean it can be used for mutation or crossover; normally you’ll have to write your own classes

METHODS

new( CW$base_class, CW$base_class_args )

Creates a new individual by instantiating one of the given class with the arguments also issued here, which are forwarded to the class constructor.

    Atom([$index])

No matter what you write, it will return the object wrapped. You can subclass and overload, however, but then you win nothing to use this class; you’re better off creating a new one altogether

size()

Returns 1. Here for compatibility

    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: 2009/07/24 08:46:59 $
  $Header: /media/Backup/Repos/opeal/opeal/Algorithm-Evolutionary/lib/Algorithm/Evolutionary/Individual/Any.pm,v 3.0 2009/07/24 08:46:59 jmerelo Exp $
  $Author: jmerelo $
  $Revision: 3.0 $
  $Name $



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


perl v5.20.3 ALGORITHM::EVOLUTIONARY::INDIVIDUAL::ANY (3) 2014-10-25

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