class ReproductionA

The population

Public Methods

virtual void operator) ( PoolA & iPool, FitnessFunctionA const & iFitnessFunction, StatisticsA & iStatistics )
Evolving a population
ReproductionA ( ConfigurationA const & iConfiguration, CoreFactoryA const & iCoreFactory, ProblemFactoryA const & iProblemFactory, ReproductionFactoryA const & iReproductionFactory, StopConditionA const & iStopCondition, ProblemA const & iProblem, RandomA const & iRandom )
Creating a new population

Documentation

This is the reproduction unit within the library. It is called by the population to evolve to the next generation. It makes a number of supporting objects to aid all the work that as to be done. This work depends on what kind of operators and selection mechanism the evolutionary algorithm will have to contain. Most evolutionary algorithms make use of these four kinds op operators and mechanisms:

ReproductionA( ConfigurationA const & iConfiguration, CoreFactoryA const & iCoreFactory, ProblemFactoryA const & iProblemFactory, ReproductionFactoryA const & iReproductionFactory, StopConditionA const & iStopCondition, ProblemA const & iProblem, RandomA const & iRandom )
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.
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.
iStopCondition - The reproduction unit has the right to terminate the evolutionary algorithm, for instance when the maximum number of operations allowed is reached.
iRandom - Random numbers for the operators.
Author:
J.I. van Hemert
Version:
0.1

virtual void operator) ( PoolA & iPool, FitnessFunctionA const & iFitnessFunction, StatisticsA & iStatistics )
This is the only function of the reproduction unit. When called it will turn the operators and selection mechanins loose on the provided pool.

Returns:
Nothing.
Parameters:
iPool - This is the pool of genotypes the reproduction unit will work on.
iFitnessFunction - Used to evaluate newly generated genotypes.
iStatistics - Here we can store some statistics, for instance the number of operations performed.
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