The genotype
![]() | Evaluate ( FitnessFunctionA const & iFitnessFunction ) Evaluating a genotype |
![]() | EvolutionaryAlgorithmC ( ConfigurationA const & iConfiguration, StatisticsA & iStatistics, CoreFactoryA const & iCoreFactory, ProblemFactoryA const & iProblemFactory, ReproductionFactoryA const & iReproductionFactory, ProblemA const & iProblem ) This constructor is only called by the CoreFactory |
![]() | GenotypeA ( ConfigurationA const & iConfiguration, ProblemFactoryA const & iProblemFactory ) Creating a new genotype |
![]() | GetData () Looking/changing data |
![]() | GetFitness () Getting the fitnessvalue |
![]() | GetUniqueID () Getting a genotype's unique number |
![]() | Init ( InitializationA const & iInitialization ) Initializing a genotype |
![]() | Run () Running the Evolutionary Algorithm |
![]() | Comparator operators Comparing genotypes
|
![]() | Population This simple implementation has one population |
![]() | StopCondition The stopcondition for requesting a termination of the run |
![]() | ID Genotype's unique identification number |
![]() | Unique_ID Unique number generator |
The genotype consists of a data and a fitness part. The data will be manipulated by the reproduction operators. The fitness part is used by the selection operators. Ofcourse additional ideas can be inorporated into children of this class.
For comparing genotypes, or better said: for comparing genotype's fitness these operators are defined.
virtual void Run()
It runs the evolutionary algorithm until the stopcondition is true and the it collects the data from the run. PopulationA* Population
StopConditionA* StopCondition
GenotypeA( ConfigurationA const & iConfiguration, ProblemFactoryA const & iProblemFactory )
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.
virtual void Evaluate( FitnessFunctionA const & iFitnessFunction )
virtual void Init( InitializationA const & iInitialization )
virtual DataA& GetData()
virtual FitnessType const& GetFitness()
unsigned int GetUniqueID()
Comparator operators
bool operator==
( GenotypeA const & iGenotype )
bool operator!=
( GenotypeA const & iGenotype )
bool operator<
( GenotypeA const & iGenotype )
bool operator>
( GenotypeA const & iGenotype )
static unsigned int Unique_ID
this page has been generated automatically by doc++
(c)opyright by Malte Zöckler, Roland Wunderling
contact: doc++@zib.de