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

SIGEL_GP::SIG_GPOperations Class Reference

This class contains the genetic operations for the genetic algorithms. More...

#include <SIG_GPOperations.h>

List of all members.

Static Public Methods

QVector<SIGEL_GP::SIG_GPIndividualcrossOver ( SIGEL_GP::SIG_GPIndividual& winner1, int poolPos1, SIG_GPIndividual& winner2, int poolPos2, QString newName1, QString newName2, SIGEL_Tools::SIG_Randomizer& randomizer, SIGEL_GP::SIG_GPParameter& gpParameter, SIGEL_Robot::SIG_LanguageParameters &languageP )
 This operation preformes a genetic crossover of the robot control programs of two individuals. More...

SIGEL_GP::SIG_GPIndividualmutation ( SIGEL_GP::SIG_GPIndividual& winner, int poolpos, QString newName, SIGEL_Tools::SIG_Randomizer& randomizer, SIGEL_GP::SIG_GPParameter& gpParameter, SIGEL_Robot::SIG_LanguageParameters &languageP)
 This Operation mutate the Individual. More...

SIGEL_GP::SIG_GPIndividualreproduction (SIGEL_GP::SIG_GPIndividual& winner, QString newName, int poolPos, SIGEL_Tools::SIG_Randomizer& randomizer, SIGEL_GP::SIG_GPParameter& gpParameter, SIGEL_Robot::SIG_LanguageParameters &languageP )
 This operation gets the winner of an played tournament with reproduktion. More...


Detailed Description

This class contains the genetic operations for the genetic algorithms.

The operations are declared as static functions, so no attributes are there. The needed data have to be given at the function call as parameters.

Definition at line 21 of file SIG_GPOperations.h.


Member Function Documentation

QVector< SIGEL_GP::SIG_GPIndividual > SIGEL_GP::SIG_GPOperations::crossOver ( SIGEL_GP::SIG_GPIndividual & winner1,
int poolPos1,
SIG_GPIndividual & winner2,
int poolPos2,
QString newName1,
QString newName2,
SIGEL_Tools::SIG_Randomizer & randomizer,
SIGEL_GP::SIG_GPParameter & gpParameter,
SIGEL_Robot::SIG_LanguageParameters & languageP ) [static]
 

This operation preformes a genetic crossover of the robot control programs of two individuals.

Precondition:
A two tournaments has happened and the winners have to crossover.
Postcondition:
The two individuals carrying a new combination of a robot control programm are created and the parent individuals are unmodified.
Parameters:
winner1   The involved individual number one.
name1   The name of the offspring of winner1.
poolPos1   The position in the pool, where the offspring of winner1 is to put.
winner2   The involved individual number two.
name2   The name of the offspring of winner2.
poolPos2   The position in the pool, where the offspring of winner2 is to put.
randomizer   The randomizer is used for creation of random crossoverpoints.
Returns:
The offspring is returned as complete individuals in a Qvector.

Definition at line 10 of file SIG_GPOperations.cpp.

SIGEL_GP::SIG_GPIndividual & SIGEL_GP::SIG_GPOperations::mutation ( SIGEL_GP::SIG_GPIndividual & winner,
int poolPos,
QString newName,
SIGEL_Tools::SIG_Randomizer & randomizer,
SIGEL_GP::SIG_GPParameter & gpParameter,
SIGEL_Robot::SIG_LanguageParameters & languageP ) [static]
 

This Operation mutate the Individual.

Precondition:
A tournament was played, with mutation for the winner.
Postcondition:
A mutated copy of winner is created.
Parameters:
winner   The individual, which won the tournament.
name   The name of the offspring.
poolPos   The position of the new individual in the pool.
randomizer   The randomizer is used for creation of a random mutationpoint.
Returns:
The offspring of winner as a complete individual.

Definition at line 270 of file SIG_GPOperations.cpp.

SIGEL_GP::SIG_GPIndividual & SIGEL_GP::SIG_GPOperations::reproduction ( SIGEL_GP::SIG_GPIndividual & winner,
QString newName,
int poolPos,
SIGEL_Tools::SIG_Randomizer & randomizer,
SIGEL_GP::SIG_GPParameter & gpParameter,
SIGEL_Robot::SIG_LanguageParameters & languageP ) [static]
 

This operation gets the winner of an played tournament with reproduktion.

It returns the same Individual without any changes.

Precondition:
A tournament was played, with reproduction as the genetic operator.
Postcondition:
The offspring, a mutated copy of winner, is created.
Parameters:
winner   The winner of the tournament.
name   The name of the offspring.
poolPos   The position of the new individual in the pool.
Returns:
The offspring of winner as a pointer of complete individual.

Definition at line 571 of file SIG_GPOperations.cpp.


The documentation for this class was generated from the following files:
Generated at Mon Sep 3 01:32:45 2001 for PG 368 - SIGEL by doxygen1.2.3 written by Dimitri van Heesch, © 1997-2000