Main Page   Class Hierarchy   Compound List   File List   Compound Members   File Members  

Population Class Reference

Population is a collection of Individual that are evolved in a EAEnvironment. More...

#include <population.h>

Inheritance diagram for Population:

SimplePopulation SimplePopulation List of all members.

Public Methods

 Population (EAEnvironment &envr, const StringMap &params)
OStream & getOStream ()
virtual void check () const

Public Attributes

bool mBasicLog

Protected Attributes

EAEnvironmentrpEnvironment
int mAge
MutationRate mGlobalMutationRate
bool mAutoadjustGMR

Detailed Description

Population is a collection of Individual that are evolved in a EAEnvironment.

Definition at line 58 of file population.h.


Constructor & Destructor Documentation

Population EAEnvironment   envir,
const StringMap &    params
 

Standard constructor.

Parameters:
params  ["autoAdapt"] Should self-adaptation of mutation rates be used? [Default:0]
params  ["boolRate"] The mutation rate for BinaryGene genes.
params  ["intRate"] The mutation rate for IntGene genes.
params  ["floatRate"] The mutation rate for FloatGene genes.
params  ["floatVariance"] The mutation variance for FloatGene genes.
Parameters:
envir  The environment in which the population evolves in.
params  Additional dynamic parameters as a String Map.

Definition at line 273 of file population.cc.

References MutationRate::autoAdaptation(), MutationRate::binaryRate(), MutationRate::doubleRate(), MutationRate::doubleVariance(), MutationRate::intRate(), mAutoadjustGMR, and mGlobalMutationRate.


Member Function Documentation

void check   [virtual]
 

Implementation for Object.

Reimplemented in SimplePopulation, and SimplePopulation.

Definition at line 293 of file population.cc.

OStream& getOStream   [inline]
 

Returns the output logging stream.

Definition at line 70 of file population.h.


Member Data Documentation

int mAge [protected]
 

The number of times the population has been evaluated.

Definition at line 89 of file population.h.

Referenced by SimplePopulation::getAge(), SimplePopulation::report(), and SimplePopulation::SimplePopulation().

bool mAutoadjustGMR [protected]
 

Should the global mutation rate be adjusted automatically?

Definition at line 99 of file population.h.

Referenced by Population().

bool mBasicLog
 

> Default output stream for extended logs.

Definition at line 81 of file population.h.

MutationRate mGlobalMutationRate [protected]
 

Global mutation rate in the population.

This is coefficient for the mutation rate of each individual gene and defaults to 1.0

Definition at line 95 of file population.h.

Referenced by Population().

EAEnvironment* rpEnvironment [protected]
 

Environment where the fitness of the individuals is measured.

Definition at line 86 of file population.h.

Referenced by SimplePopulation::check(), SimplePopulation::evolve(), and SimplePopulation::SimplePopulation().


The documentation for this class was generated from the following files:
Generated on Thu Feb 10 20:12:01 2005 for NeHeP by doxygen1.2.18