class PopulationA

The population

Public Methods

virtual GenotypeA const& GetBestIndividual ()
Getting the best individual
virtual void Init ()
Initializing the population
virtual void NextGeneration ()
Evolving the population
PopulationA ( ConfigurationA const & iConfiguration, StatisticsA & iStatistics, CoreFactoryA const & iCoreFactory, ProblemFactoryA const & iProblemFactory, ReproductionFactoryA const & iReproductionFactory, StopConditionA const & iStopCondition, ProblemA const & iProblem )
Creating a new population

Documentation

The population consists of a pool that holds the genomes and a reproduction unit that provides the population with a way to the next generation. In addtion to that it has a fitnessfunction for evaluating the genotypes in the pool.

PopulationA( ConfigurationA const & iConfiguration, StatisticsA & iStatistics, CoreFactoryA const & iCoreFactory, ProblemFactoryA const & iProblemFactory, ReproductionFactoryA const & iReproductionFactory, StopConditionA const & iStopCondition, ProblemA const & iProblem )
This constructor should only be called by its children. It copies the reference of the parameters into protected members, they can then be used by its children to spawn objects and read configuration parameters. Its children should create the following objects:

Returns:
Nothing.
Parameters:
iConfiguration - The configuration used to determine settings for the algorithm and to provide a configuration to spawned objects within this class.
iStatistics - The statistics are used to write data to and build a report after a run of the evolutionary algorithm.
iCoreFactory - The factory that is used to spawn objects from classes of the Core package, within this class. It is passed on to these spawned objects as well.
iProblemFactory - The factory that is used to spawn objects from classes of the Problem package, within this class. It is passed on to these spawned objects as well.
iReproductionFactory - The factory that is used to spawn objects from classes of the Reproduction package, within this class. It is passed on to these spawned objects as well.
iProblem - Actual problem the evolutionary algorithm has to work on.
Author:
J.I. van Hemert
Version:
0.1

virtual void Init()
By calling this function the pool is filled with genotypes, these genotypes are initialised and evaluated before they are inserted into the pool.

Returns:
Nothing.
Author:
J.I. van Hemert
Version:
0.1

virtual void NextGeneration()
This function should take the population to the next generation by using the Reproduction unit.

Returns:
Nothing.
Author:
J.I. van Hemert
Version:
0.1

virtual GenotypeA const& GetBestIndividual()
A function to get the best individual of the population.

Returns:
The best genotype according to the fittnessfunction.
Author:
J.I. van Hemert
Version:
0.1


This class has no child classes.
Author:
J.I. van Hemert
Version:
0.1

alphabetic index hierarchy of classes


this page has been generated automatically by doc++

(c)opyright by Malte Zöckler, Roland Wunderling
contact: doc++@zib.de