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

SIGEL_GP::SIG_GPParameter Class Reference

This class represents the data structure of the parameters for the genetic programms evolution. More...

#include <SIG_GPParameter.h>

List of all members.

Public Types

enum  terminationType { byTime, byGeneration, byTimeGeneration, byUser }
 The type of termination condition of the GPManager. More...

enum  priorityLevel {
  veryLow, low, normal, high,
  veryHigh
}
 The priority level of the sigel-system. More...


Public Methods

 SIG_GPParameter ()
 The constructor for the parameter. More...

 SIG_GPParameter (QString parameter)
 The constructor for the parameter. More...

 ~SIG_GPParameter ()
 The destructor for a parameter. More...

void setRandomSeed (int seed)
 This sets the randomseed of the parameter. More...

int getRandomSeed () const
 This gets the randomseed of the parameter. More...

void setMinIndLength (int minIndLen)
 This sets the minimal length of an individual of the parameter. More...

int getMinIndLength () const
 This gets the minimal length of an individual of the parameter. More...

QList< SIG_GPPVMHost > const& getHostList () const
QList< SIG_GPPVMHost >& getHostList ()
void setMaxIndLength (int maxIndLen)
 This sets the max length of an individual of the parameter. More...

int getMaxIndLength () const
 This gets the max length of an individual of the parameter. More...

void setReproductionProb (int prob)
 This function sets the probability of reproduction of the winner of a tournament, which are used for the randomcreation of tournaments. More...

int getReproductionProb () const
 This function returns the probability of reproduction of the winner of a tournament, which are used for the randomcreation of tournaments. More...

void setXoverProb (int prob)
 This function sets the probability of crossover of the winners of a tournament, which are used for the randomcreation of tournaments. More...

int getXoverProb () const
 This function returns the probability of crossover of the winners of a tournament, which are used for the randomcreation of tournaments. More...

void setMutationProb (int prob)
 This function sets the probability of reproduction of the winner of a tournament, which are used for the randomcreation of tournaments. More...

int getMutationProb () const
 This function returns the probability of reproduction of the winner of a tournament, which are used for the randomcreation of tournaments. More...

void setTournamentsPerGeneration (double prob)
 This function sets the number of tournaments, which defines when a new generation level is reached. More...

double getTournamentsPerGeneration () const
 This function returns the factor, which is multiplied with the number of individuals, to get the number of tournaments, which defines when a new generation level is reached. More...

void setMaxAge (long int age)
 This function sets the maximun age of an individual. More...

long int getMaxAge () const
 This function returns the maximun age of an individual. More...

unsigned long getPassiveTime () const
 This function returns the passive time, how long the GP-thread shifts the process control back to the GUI. More...

int getMaxTouchsPerLoop () const
 This function sets the maximal touches of the toSpawnList-array per loop of the evolution, this means how many fitnesstasks will executed in one round of the evolutionloop. More...

int getToDoSweepsPerLoop () const
 This function will return the sweeps on the tournament array to do per loop of the evolution. More...

void setTerminationTime (QDateTime tTime)
 This function will set the termination time, when the evolutionloop will be stop by the GPManager. More...

QDateTime getTerminationTime () const
 This function will return the termination time, when the evolutionloop will be stop by the GPManager. More...

void setTerminationDurationDays ( int newValue )
int getTerminationDurationDays () const
void setTerminationDurationHours ( int newValue )
int getTerminationDurationHours () const
void setTerminationDurationMinutes ( int newValue )
int getTerminationDurationMinutes () const
void setTerminationDurationSeconds ( int newValue )
int getTerminationDurationSeconds () const
bool getTerminationUsesDate () const
void setTerminationUsesDate ( bool newValue )
void setTerminationGenerationNo (int tGenNo)
 This function will set the number of generations, when the evolutionloop will be stop by the GPManager. More...

int getTerminationGenerationNo () const
 This function will return the number of generations, when the evolutionloop will be stop by the GPManager. More...

void setTerminationModel (terminationType termi)
 This function will set the model of termination fo the GP-System. More...

terminationType getTerminationModel () const
 This function will returns the type of termination, which indicates on which incident the GP-Sytem will be stopped. More...

void setGraveYardDirectory (QDir directory)
 This function sets the directory, which is used for storing all indiviuals, which are deleted from the pool, if the liveundead attribute is set to true. More...

bool getSaveExit () const
 This function returns the value of save exit, which means if its enabled, that an exit in the non GUI task will be only preformed if all tournaments of a generation are play. More...

void setSaveExit (bool sexit)
 This function sets the value to the save exit attribute. More...

QDir getGraveYardDirectory () const
 This function returns the directory, which is used for storing all indiviuals, which are deleted from the pool, if the liveundead attribute is set to true. More...

void setLiveUndead (bool grave)
 This function will set the attribute liveUndead to the value of the boolean parameter. More...

bool getLiveUndead () const
 This function will return the value of the attribute liveUndead. More...

void setPoolImageDirectory (QDir PIDir)
 This function sets the poolimage directory. More...

QDir getPoolImageDirectory () const
 This function returns the poolimage directory. More...

void setPoolImageGeneration (int gener)
 This function sets the number of generations, which have to be played, before a poolimage will be created. More...

int getPoolImageGeneration () const
 This function returns the number of generations, which have to be played, before a poolimage will be created. More...

void setPriority (priorityLevel prio)
 This function sets the priority level, which indicates how much computation power is demanded for the Sigel-system. More...

priorityLevel getPriority () const
 This function sets the priority level, which indicates how much computation power is demanded for the Sigel-system. More...

void readFromFile (QTextStream & file)
 This command loads a set of parameters, given in a QTextStream, to the attributes of the gpParameter object. More...

void writeToFile (QTextStream & file)
 This function writes to a QTextStream, which contains the whole data of the current experiment. More...

double getMaxFitness () const
void setMaxFitness (double maxfit)
QString getFitnessName () const
void setFitnessName (QString name)
bool getParsimonyPressure ()
void setParsimonyPressure ( bool pressure )
void setProbability ( SIGEL_Program::Robotinstruction instruction, int prob )
int getProbability ( SIGEL_Program::Robotinstruction instruction )
QArray< int >& getInstructionProbabilities ()
int getTimeOutMinutes ()
void setTimeOutMinutes ( int newValue )

Private Methods

void setPassiveTime (unsigned long pTime)
 This function sets the time in milliseconds, how long the GP-thread will give the controll back to the GUI. More...

void setMaxTouchsPerLoop (int touchs)
 This function sets the maximal touches of the toSpawnList-array per loop of the evolution, this means how many fitnesstasks will executed in one round of the evolutionloop. More...

void setToDoSweepsPerLoop (int sweeps)
 This function will set the sweeps on the tournament array to do per loop of the evolution. More...


Private Attributes

int randomSeed
 The integer, which is used to initializes the randomizer. More...

int minIndLength
 The minimal length of a robot controll programm. More...

int maxIndLength
 The maximal length of a robot controll programm. More...

int reproductionProb
 The probability of selecting reproduction for a genetic operation. More...

int xoverProb
 The probability of selecting crossover for a genetic operation. More...

int mutationProb
 The probability of selecting mutation for a genetic operation. More...

double tournamentsPerGeneration
 The factor, which is multiplies with the number of individuals in a pool to determine the number of tournaments to play in generation. More...

long int maxAge
 The maximal age which a individual can reach before it dies. More...

unsigned long passiveTime
 The amount of time in millisecons for the GUI to preform necessary computations. More...

int maxTouchsPerLoop
 The maximal number of executable fitnesstasks, which will be spawned by PVM out of the 'toSpawnList' in the SIG_GPFitnesstrainer in one loop pass. More...

int toDoSweepsPerLoop
 The number of sweeps over the 'slaveList' in the SIG_GPFitnesstrainer in one loop pass to determine which PVM-task is finished or not. More...

QDateTime terminationTime
 The date and time of termination of the evolution computation. More...

int terminationDurationDays
int terminationDurationHours
int terminationDurationMinutes
int terminationDurationSeconds
bool terminationUsesDate
int terminationGenerationNo
 The number of generations, which have to evolve until the evolution computation is to terminate. More...

terminationType terminationModel
 The type of the termination model. More...

bool saveExit
 This attribute indicates the following, if the Sigel-System runs without GUI and the attribute is true, the program breaks up only when a new generation is reached. More...

QDir graveYardDirectory
 The directory for storing the old individuals, deleted from the pool. More...

bool liveUndead
 Boolean which indicates if the graveyard option is enabled. More...

QDir poolImageDirectory
 The directory, where to place the complete copy of the pool, the poolImages. More...

int poolImageGeneration
 The number of generation, which have to occure until a new poolImage will be saved. More...

priorityLevel priority
 This value describes the level of preformance, which is demanded by the SIGEL program from the system, on which it is executed. More...

double maxFitness
bool parsimonyPressure
long maximumLength
 Maximum program length during (!) GP runs: If maximumLength=0 is chosen, the length control mechanism will be ignored. More...

long minimumLength
 Minimum program length during (!) GP runs: If minimumLength=0 is chosen, the minimum length is set to 3. More...

QArray< int > instructionProb
 Probability of the instructions (ADD,...) to be created or to be chosen for variation: The probabilities are given as an integer value that defines the relative probability of this instruction. More...

QString fitnessName
QList< SIG_GPPVMHost > hostList
int timeOutMinutes


Detailed Description

This class represents the data structure of the parameters for the genetic programms evolution.

The parameters for the designers are programmed in the code, the parameters for the users are selectable from the gui. So every parameter the users has a set-methode and the parameters for the genetic programms have only a get-methode. More flexibility will be implemented in future.

Definition at line 24 of file SIGEL_GP/SIG_GPParameter.h.


Member Enumeration Documentation

enum SIGEL_GP::SIG_GPParameter::priorityLevel
 

The priority level of the sigel-system.

Each level represents a set of configurations. These configurations are only to be set by the function which changes the priority level.

Enumeration values:
veryLow   passiveTime= 500 maxTouchesPerLoop= -1 toDoSweepsPerLoop= 1.
low   passiveTime= 1000 maxTouchesPerLoop= 1 toDoSweepsPerLoop= 2.
normal   passiveTime= 2000 maxTouchesPerLoop= 3 toDoSweepsPerLoop= 5.
high   passiveTime= 5000 maxTouchesPerLoop= 5 toDoSweepsPerLoop= 7.
veryHigh   passiveTime= 10000 maxTouchesPerLoop= 7 toDoSweepsPerLoop= 10.

Definition at line 69 of file SIGEL_GP/SIG_GPParameter.h.

enum SIGEL_GP::SIG_GPParameter::terminationType
 

The type of termination condition of the GPManager.

Enumeration values:
byTime   Termination by time level.

The GPManager will terminate all its components when a time level is reached, given by the attribute terminationtime.

byGeneration   Termination by generation.

When the option 'byGeneration' is selected, the evolution will be computed until a selected number of generations are evolved.

byTimeGeneration   Termination by time or by generation.

If the option 'byTimeGeneration' is selected, the evolution will be computed until a special time is reached or a selected number of generations are evolved.

byUser   Termination by user.

If the option 'byUser' is selected, the evolution will be computed until the user presses the stop-button.

Definition at line 30 of file SIGEL_GP/SIG_GPParameter.h.


Constructor & Destructor Documentation

SIGEL_GP::SIG_GPParameter::SIG_GPParameter ( )
 

The constructor for the parameter.

Precondition:
The gpmanager or the experiment is initialized and needs an parameter.
Postcondition:
The parameter is created.

Definition at line 4 of file SIGEL_GP/SIG_GPParameter.cpp.

SIGEL_GP::SIG_GPParameter::SIG_GPParameter ( QString parameter )
 

The constructor for the parameter.

Precondition:
The gpmanager or the experiment is initialized and needs an parameter.
Postcondition:
The parameter is created.
Parameters:
parameter   The gpparameter as a QString for the initialization of the SIG_GPParameter object.

Definition at line 36 of file SIGEL_GP/SIG_GPParameter.cpp.

SIGEL_GP::SIG_GPParameter::~SIG_GPParameter ( )
 

The destructor for a parameter.

Precondition:
none
Postcondition:
The parameteronject is destructed.

Definition at line 39 of file SIGEL_GP/SIG_GPParameter.cpp.


Member Function Documentation

QString SIGEL_GP::SIG_GPParameter::getFitnessName ( ) const
 

Definition at line 341 of file SIGEL_GP/SIG_GPParameter.cpp.

QDir SIGEL_GP::SIG_GPParameter::getGraveYardDirectory ( ) const
 

This function returns the directory, which is used for storing all indiviuals, which are deleted from the pool, if the liveundead attribute is set to true.

Returns:
The graveyard directory where the deleted individuals are stored for futher examinations.

Definition at line 248 of file SIGEL_GP/SIG_GPParameter.cpp.

QList< SIGEL_GP::SIG_GPPVMHost >& SIGEL_GP::SIG_GPParameter::getHostList ( )
 

Definition at line 648 of file SIGEL_GP/SIG_GPParameter.cpp.

QList< SIGEL_GP::SIG_GPPVMHost >const & SIGEL_GP::SIG_GPParameter::getHostList ( ) const
 

Definition at line 643 of file SIGEL_GP/SIG_GPParameter.cpp.

QArray< int >& SIGEL_GP::SIG_GPParameter::getInstructionProbabilities ( )
 

Definition at line 807 of file SIGEL_GP/SIG_GPParameter.cpp.

bool SIGEL_GP::SIG_GPParameter::getLiveUndead ( ) const
 

This function will return the value of the attribute liveUndead.

If liveUndead is true, every individual, which loses an tournament, will be stored after its deletion in this directory.

Returns:
The value which indicates if liveUndead is true or not.

Definition at line 258 of file SIGEL_GP/SIG_GPParameter.cpp.

long int SIGEL_GP::SIG_GPParameter::getMaxAge ( ) const
 

This function returns the maximun age of an individual.

If the individual is older than this age, it will lose every tournament and so will deleted automaticaly.

Parameters:
age   The maximum age of an individual.

Definition at line 128 of file SIGEL_GP/SIG_GPParameter.cpp.

double SIGEL_GP::SIG_GPParameter::getMaxFitness ( ) const
 

Definition at line 329 of file SIGEL_GP/SIG_GPParameter.cpp.

int SIGEL_GP::SIG_GPParameter::getMaxIndLength ( ) const
 

This gets the max length of an individual of the parameter.

Precondition:
none
Postcondition:
The max length of an individual is returned.
Returns:
The max length of an individual.

Definition at line 78 of file SIGEL_GP/SIG_GPParameter.cpp.

Referenced by SIGEL_GP::SIG_GPOperations::crossOver(), SIGEL_Program::SIG_Program::generateRandomProgram(), SIGEL_GP::SIG_GPOperations::mutation(), and SIGEL_GP::SIG_GPOperations::reproduction().

int SIGEL_GP::SIG_GPParameter::getMaxTouchsPerLoop ( ) const
 

This function sets the maximal touches of the toSpawnList-array per loop of the evolution, this means how many fitnesstasks will executed in one round of the evolutionloop.

Returns:
The number of touches in the toSpawnList in one round of the evolutionloop.

Definition at line 148 of file SIGEL_GP/SIG_GPParameter.cpp.

int SIGEL_GP::SIG_GPParameter::getMinIndLength ( ) const
 

This gets the minimal length of an individual of the parameter.

Precondition:
none
Postcondition:
The minimal length of an individual is returned.
Returns:
The minimal length of an individual.

Definition at line 68 of file SIGEL_GP/SIG_GPParameter.cpp.

Referenced by SIGEL_GP::SIG_GPOperations::crossOver(), SIGEL_Program::SIG_Program::generateRandomProgram(), SIGEL_GP::SIG_GPOperations::mutation(), and SIGEL_GP::SIG_GPOperations::reproduction().

int SIGEL_GP::SIG_GPParameter::getMutationProb ( ) const
 

This function returns the probability of reproduction of the winner of a tournament, which are used for the randomcreation of tournaments.

The probability expressed as a percentage is given through the mutation probability divided through the sum of crossover-, mutation- and reproduction probability.

Returns:
The probability of mutation, given as a integer.

Definition at line 108 of file SIGEL_GP/SIG_GPParameter.cpp.

bool SIGEL_GP::SIG_GPParameter::getParsimonyPressure ( )
 

Definition at line 52 of file SIGEL_GP/SIG_GPParameter.cpp.

unsigned long SIGEL_GP::SIG_GPParameter::getPassiveTime ( ) const
 

This function returns the passive time, how long the GP-thread shifts the process control back to the GUI.

Returns:
The time, how long the GP-thread will be passive.

Definition at line 138 of file SIGEL_GP/SIG_GPParameter.cpp.

QDir SIGEL_GP::SIG_GPParameter::getPoolImageDirectory ( ) const
 

This function returns the poolimage directory.

In this directory images of the pool will saved automaticaly if the value of the attribute poolImageGeneration is higher than zero.

Returns:
The directory, where the poolimages will be saved.

Definition at line 268 of file SIGEL_GP/SIG_GPParameter.cpp.

int SIGEL_GP::SIG_GPParameter::getPoolImageGeneration ( ) const
 

This function returns the number of generations, which have to be played, before a poolimage will be created.

Returns:
The number of generations which have to played between each poolimage.

Definition at line 278 of file SIGEL_GP/SIG_GPParameter.cpp.

SIGEL_GP::SIG_GPParameter::priorityLevel SIGEL_GP::SIG_GPParameter::getPriority ( ) const
 

This function sets the priority level, which indicates how much computation power is demanded for the Sigel-system.

If the function is executed, it will not only sets the priority attribute, it will set the attributes passsiveTime, maxTouchesPerLoop and toDoSweepsPerLoop to its depending right values.

Returns:
The level of priority of the Sigel-system.

Definition at line 324 of file SIGEL_GP/SIG_GPParameter.cpp.

int SIGEL_GP::SIG_GPParameter::getProbability ( SIGEL_Program::Robotinstruction instruction )
 

Definition at line 729 of file SIGEL_GP/SIG_GPParameter.cpp.

int SIGEL_GP::SIG_GPParameter::getRandomSeed ( ) const
 

This gets the randomseed of the parameter.

Precondition:
none
Postcondition:
The randomseed is returned.
Returns:
The randomseed.

Definition at line 47 of file SIGEL_GP/SIG_GPParameter.cpp.

int SIGEL_GP::SIG_GPParameter::getReproductionProb ( ) const
 

This function returns the probability of reproduction of the winner of a tournament, which are used for the randomcreation of tournaments.

The probability expressed as a percentage is given through the reproduction probability divided through the sum of crossover-, mutation- and reproduction probability.

Returns:
The probability of reproduction, given as a integer.

Definition at line 88 of file SIGEL_GP/SIG_GPParameter.cpp.

bool SIGEL_GP::SIG_GPParameter::getSaveExit ( ) const
 

This function returns the value of save exit, which means if its enabled, that an exit in the non GUI task will be only preformed if all tournaments of a generation are play.

Definition at line 238 of file SIGEL_GP/SIG_GPParameter.cpp.

int SIGEL_GP::SIG_GPParameter::getTerminationDurationDays ( ) const
 

Definition at line 178 of file SIGEL_GP/SIG_GPParameter.cpp.

int SIGEL_GP::SIG_GPParameter::getTerminationDurationHours ( ) const
 

Definition at line 188 of file SIGEL_GP/SIG_GPParameter.cpp.

int SIGEL_GP::SIG_GPParameter::getTerminationDurationMinutes ( ) const
 

Definition at line 198 of file SIGEL_GP/SIG_GPParameter.cpp.

int SIGEL_GP::SIG_GPParameter::getTerminationDurationSeconds ( ) const
 

Definition at line 208 of file SIGEL_GP/SIG_GPParameter.cpp.

int SIGEL_GP::SIG_GPParameter::getTerminationGenerationNo ( ) const
 

This function will return the number of generations, when the evolutionloop will be stop by the GPManager.

Returns:
The generations, after the evolutionloop will be stop.

Definition at line 218 of file SIGEL_GP/SIG_GPParameter.cpp.

SIGEL_GP::SIG_GPParameter::terminationType SIGEL_GP::SIG_GPParameter::getTerminationModel ( ) const
 

This function will returns the type of termination, which indicates on which incident the GP-Sytem will be stopped.

Returns:
The type of truncation condition.

Definition at line 228 of file SIGEL_GP/SIG_GPParameter.cpp.

QDateTime SIGEL_GP::SIG_GPParameter::getTerminationTime ( ) const
 

This function will return the termination time, when the evolutionloop will be stop by the GPManager.

Returns:
The time of termination of the evolutionloop.

Definition at line 168 of file SIGEL_GP/SIG_GPParameter.cpp.

bool SIGEL_GP::SIG_GPParameter::getTerminationUsesDate ( ) const
 

Definition at line 812 of file SIGEL_GP/SIG_GPParameter.cpp.

int SIGEL_GP::SIG_GPParameter::getTimeOutMinutes ( )
 

Definition at line 822 of file SIGEL_GP/SIG_GPParameter.cpp.

int SIGEL_GP::SIG_GPParameter::getToDoSweepsPerLoop ( ) const
 

This function will return the sweeps on the tournament array to do per loop of the evolution.

One sweep will detect the set of executable tournaments, so the one's who have no dependencies to other tournaments.

Returns:
The number of runs of the topological sorting in one round of the evolution.

Definition at line 158 of file SIGEL_GP/SIG_GPParameter.cpp.

double SIGEL_GP::SIG_GPParameter::getTournamentsPerGeneration ( ) const
 

This function returns the factor, which is multiplied with the number of individuals, to get the number of tournaments, which defines when a new generation level is reached.

Returns:
The number of tournaments after the number of played generations is increased by one.

Definition at line 118 of file SIGEL_GP/SIG_GPParameter.cpp.

int SIGEL_GP::SIG_GPParameter::getXoverProb ( ) const
 

This function returns the probability of crossover of the winners of a tournament, which are used for the randomcreation of tournaments.

The probability expressed as a percentage is given through the crossover probability divided through the sum of crossover-, mutation- and reproduction probability.

Returns:
The probability of crossover, given as a integer.

Definition at line 98 of file SIGEL_GP/SIG_GPParameter.cpp.

void SIGEL_GP::SIG_GPParameter::readFromFile ( QTextStream & file )
 

This command loads a set of parameters, given in a QTextStream, to the attributes of the gpParameter object.

Parameters:
file   The data of a set of parameters, given as a QTextStream.

Definition at line 351 of file SIGEL_GP/SIG_GPParameter.cpp.

void SIGEL_GP::SIG_GPParameter::setFitnessName ( QString name )
 

Definition at line 346 of file SIGEL_GP/SIG_GPParameter.cpp.

void SIGEL_GP::SIG_GPParameter::setGraveYardDirectory ( QDir directory )
 

This function sets the directory, which is used for storing all indiviuals, which are deleted from the pool, if the liveundead attribute is set to true.

Parameters:
directory   The graveyard directory where the deleted individuals are stored for futher examinations.

Definition at line 243 of file SIGEL_GP/SIG_GPParameter.cpp.

void SIGEL_GP::SIG_GPParameter::setLiveUndead ( bool grave )
 

This function will set the attribute liveUndead to the value of the boolean parameter.

If liveUndead is true, every individual, which loses an tournament, will be stored after its deletion in this directory.

Parameters:
grave   The value which indicates if liveUndead is true or not.

Definition at line 253 of file SIGEL_GP/SIG_GPParameter.cpp.

void SIGEL_GP::SIG_GPParameter::setMaxAge ( long int age )
 

This function sets the maximun age of an individual.

If the individual is older than this age, it will lose every tournament and so will deleted automaticaly.

Parameters:
age   The maximum age of an individual.

Definition at line 123 of file SIGEL_GP/SIG_GPParameter.cpp.

void SIGEL_GP::SIG_GPParameter::setMaxFitness ( double maxfit )
 

Definition at line 335 of file SIGEL_GP/SIG_GPParameter.cpp.

void SIGEL_GP::SIG_GPParameter::setMaxIndLength ( int maxIndLen )
 

This sets the max length of an individual of the parameter.

Precondition:
none
Postcondition:
The individuallength is set to the new value.
Parameters:
maxIndLen   The new value of individual length.

Definition at line 73 of file SIGEL_GP/SIG_GPParameter.cpp.

void SIGEL_GP::SIG_GPParameter::setMaxTouchsPerLoop ( int touchs ) [private]
 

This function sets the maximal touches of the toSpawnList-array per loop of the evolution, this means how many fitnesstasks will executed in one round of the evolutionloop.

Parameters:
touchs   The number of touches in the toSpawnList in one round of the evolutionloop.

Definition at line 143 of file SIGEL_GP/SIG_GPParameter.cpp.

Referenced by setPriority().

void SIGEL_GP::SIG_GPParameter::setMinIndLength ( int minIndLen )
 

This sets the minimal length of an individual of the parameter.

Precondition:
none
Postcondition:
The individuallength is set to the new value.
Parameters:
minIndLen   The new value of individual length.

Definition at line 63 of file SIGEL_GP/SIG_GPParameter.cpp.

void SIGEL_GP::SIG_GPParameter::setMutationProb ( int prob )
 

This function sets the probability of reproduction of the winner of a tournament, which are used for the randomcreation of tournaments.

The probability expressed as a percentage is given through the mutation probability divided through the sum of crossover-, mutation- and reproduction probability.

Parameters:
prob   The probability of mutation, given as a integer.

Definition at line 103 of file SIGEL_GP/SIG_GPParameter.cpp.

void SIGEL_GP::SIG_GPParameter::setParsimonyPressure ( bool pressure )
 

Definition at line 58 of file SIGEL_GP/SIG_GPParameter.cpp.

void SIGEL_GP::SIG_GPParameter::setPassiveTime ( unsigned long pTime ) [private]
 

This function sets the time in milliseconds, how long the GP-thread will give the controll back to the GUI.

Parameters:
pTime   The time, how long the GP-thread will be passive.

Definition at line 133 of file SIGEL_GP/SIG_GPParameter.cpp.

Referenced by setPriority().

void SIGEL_GP::SIG_GPParameter::setPoolImageDirectory ( QDir PIDir )
 

This function sets the poolimage directory.

In this directory images of the pool will saved automaticaly if the value of the attribute poolImageGeneration is higher than zero.

Parameters:
PIDir   The directory, where the poolimages will be saved.

Definition at line 263 of file SIGEL_GP/SIG_GPParameter.cpp.

void SIGEL_GP::SIG_GPParameter::setPoolImageGeneration ( int gener )
 

This function sets the number of generations, which have to be played, before a poolimage will be created.

Parameters:
gener   The number of generations which have to played between each poolimage.

Definition at line 273 of file SIGEL_GP/SIG_GPParameter.cpp.

void SIGEL_GP::SIG_GPParameter::setPriority ( priorityLevel prio )
 

This function sets the priority level, which indicates how much computation power is demanded for the Sigel-system.

If the function is executed, it will not only sets the priority attribute, it will set the attributes passsiveTime, maxTouchesPer and toDoSweepsPerLoop to its depending right values.

Parameters:
prio   The level of priority of the Sigel-system.

Definition at line 283 of file SIGEL_GP/SIG_GPParameter.cpp.

Referenced by SIG_GPParameter(), and readFromFile().

void SIGEL_GP::SIG_GPParameter::setProbability ( SIGEL_Program::Robotinstruction instruction,
int prob )
 

Definition at line 654 of file SIGEL_GP/SIG_GPParameter.cpp.

void SIGEL_GP::SIG_GPParameter::setRandomSeed ( int seed )
 

This sets the randomseed of the parameter.

Precondition:
none
Postcondition:
The randomseed is set.
Parameters:
seed   The seed, which is to be set.

Definition at line 42 of file SIGEL_GP/SIG_GPParameter.cpp.

void SIGEL_GP::SIG_GPParameter::setReproductionProb ( int prob )
 

This function sets the probability of reproduction of the winner of a tournament, which are used for the randomcreation of tournaments.

The probability expressed as a percentage is given through the reproduction probability divided through the sum of crossover-, mutation- and reproduction probability.

Parameters:
prob   The probability of reproduction, given as a integer.

Definition at line 83 of file SIGEL_GP/SIG_GPParameter.cpp.

void SIGEL_GP::SIG_GPParameter::setSaveExit ( bool sexit )
 

This function sets the value to the save exit attribute.

Definition at line 233 of file SIGEL_GP/SIG_GPParameter.cpp.

void SIGEL_GP::SIG_GPParameter::setTerminationDurationDays ( int newValue )
 

Definition at line 173 of file SIGEL_GP/SIG_GPParameter.cpp.

void SIGEL_GP::SIG_GPParameter::setTerminationDurationHours ( int newValue )
 

Definition at line 183 of file SIGEL_GP/SIG_GPParameter.cpp.

void SIGEL_GP::SIG_GPParameter::setTerminationDurationMinutes ( int newValue )
 

Definition at line 193 of file SIGEL_GP/SIG_GPParameter.cpp.

void SIGEL_GP::SIG_GPParameter::setTerminationDurationSeconds ( int newValue )
 

Definition at line 203 of file SIGEL_GP/SIG_GPParameter.cpp.

void SIGEL_GP::SIG_GPParameter::setTerminationGenerationNo ( int tGenNo )
 

This function will set the number of generations, when the evolutionloop will be stop by the GPManager.

Parameters:
tGenNo   The generations, after the evolutionloop will be stop.

Definition at line 213 of file SIGEL_GP/SIG_GPParameter.cpp.

void SIGEL_GP::SIG_GPParameter::setTerminationModel ( terminationType termi )
 

This function will set the model of termination fo the GP-System.

Parameters:
termi   The type of termination.

Definition at line 223 of file SIGEL_GP/SIG_GPParameter.cpp.

void SIGEL_GP::SIG_GPParameter::setTerminationTime ( QDateTime tTime )
 

This function will set the termination time, when the evolutionloop will be stop by the GPManager.

Parameters:
tTime   The time of termination of the evolutionloop.

Definition at line 163 of file SIGEL_GP/SIG_GPParameter.cpp.

void SIGEL_GP::SIG_GPParameter::setTerminationUsesDate ( bool newValue )
 

Definition at line 817 of file SIGEL_GP/SIG_GPParameter.cpp.

void SIGEL_GP::SIG_GPParameter::setTimeOutMinutes ( int newValue )
 

Definition at line 827 of file SIGEL_GP/SIG_GPParameter.cpp.

void SIGEL_GP::SIG_GPParameter::setToDoSweepsPerLoop ( int sweeps ) [private]
 

This function will set the sweeps on the tournament array to do per loop of the evolution.

One sweep will detect the set of executable tournaments, so the one's who have no dependencies to other tournaments.

Parameters:
sweeps   The number of runs of the topological sorting in one round of the evolution.

Definition at line 153 of file SIGEL_GP/SIG_GPParameter.cpp.

Referenced by setPriority().

void SIGEL_GP::SIG_GPParameter::setTournamentsPerGeneration ( double prob )
 

This function sets the number of tournaments, which defines when a new generation level is reached.

Parameters:
prob   The number of tournaments after the number of played generations is increased by one.

Definition at line 113 of file SIGEL_GP/SIG_GPParameter.cpp.

void SIGEL_GP::SIG_GPParameter::setXoverProb ( int prob )
 

This function sets the probability of crossover of the winners of a tournament, which are used for the randomcreation of tournaments.

The probability expressed as a percentage is given through the crossover probability divided through the sum of crossover-, mutation- and reproduction probability.

Parameters:
prob   The probability of crossover, given as a integer.

Definition at line 93 of file SIGEL_GP/SIG_GPParameter.cpp.

void SIGEL_GP::SIG_GPParameter::writeToFile ( QTextStream & file )
 

This function writes to a QTextStream, which contains the whole data of the current experiment.

Parameters:
file   The data of a set of parameters, given as a QTextStream.

Definition at line 535 of file SIGEL_GP/SIG_GPParameter.cpp.


Member Data Documentation

QString SIGEL_GP::SIG_GPParameter::fitnessName [private]
 

Definition at line 302 of file SIGEL_GP/SIG_GPParameter.h.

QDir SIGEL_GP::SIG_GPParameter::graveYardDirectory [private]
 

The directory for storing the old individuals, deleted from the pool.

Definition at line 239 of file SIGEL_GP/SIG_GPParameter.h.

QList< SIG_GPPVMHost > SIGEL_GP::SIG_GPParameter::hostList [private]
 

Definition at line 305 of file SIGEL_GP/SIG_GPParameter.h.

QArray< int > SIGEL_GP::SIG_GPParameter::instructionProb [private]
 

Probability of the instructions (ADD,...) to be created or to be chosen for variation: The probabilities are given as an integer value that defines the relative probability of this instruction.

The relative probability is dependend on the other instruction probabilities. This value defines the number of places on a roulette wheel. If this value is set to p, and the total sum of all probabilties is n (= p1+p2+...), the probability of the current instruction is p/n.

Definition at line 299 of file SIGEL_GP/SIG_GPParameter.h.

bool SIGEL_GP::SIG_GPParameter::liveUndead [private]
 

Boolean which indicates if the graveyard option is enabled.

Definition at line 245 of file SIGEL_GP/SIG_GPParameter.h.

long int SIGEL_GP::SIG_GPParameter::maxAge [private]
 

The maximal age which a individual can reach before it dies.

Definition at line 169 of file SIGEL_GP/SIG_GPParameter.h.

double SIGEL_GP::SIG_GPParameter::maxFitness [private]
 

Definition at line 268 of file SIGEL_GP/SIG_GPParameter.h.

int SIGEL_GP::SIG_GPParameter::maxIndLength [private]
 

The maximal length of a robot controll programm.

Definition at line 123 of file SIGEL_GP/SIG_GPParameter.h.

int SIGEL_GP::SIG_GPParameter::maxTouchsPerLoop [private]
 

The maximal number of executable fitnesstasks, which will be spawned by PVM out of the 'toSpawnList' in the SIG_GPFitnesstrainer in one loop pass.

Definition at line 184 of file SIGEL_GP/SIG_GPParameter.h.

long SIGEL_GP::SIG_GPParameter::maximumLength [private]
 

Maximum program length during (!) GP runs: If maximumLength=0 is chosen, the length control mechanism will be ignored.

WARNING: The program lengths may increase very fast.

Definition at line 279 of file SIGEL_GP/SIG_GPParameter.h.

int SIGEL_GP::SIG_GPParameter::minIndLength [private]
 

The minimal length of a robot controll programm.

Definition at line 117 of file SIGEL_GP/SIG_GPParameter.h.

long SIGEL_GP::SIG_GPParameter::minimumLength [private]
 

Minimum program length during (!) GP runs: If minimumLength=0 is chosen, the minimum length is set to 3.

Definition at line 287 of file SIGEL_GP/SIG_GPParameter.h.

int SIGEL_GP::SIG_GPParameter::mutationProb [private]
 

The probability of selecting mutation for a genetic operation.

Definition at line 156 of file SIGEL_GP/SIG_GPParameter.h.

bool SIGEL_GP::SIG_GPParameter::parsimonyPressure [private]
 

Definition at line 271 of file SIGEL_GP/SIG_GPParameter.h.

unsigned long SIGEL_GP::SIG_GPParameter::passiveTime [private]
 

The amount of time in millisecons for the GUI to preform necessary computations.

Definition at line 176 of file SIGEL_GP/SIG_GPParameter.h.

QDir SIGEL_GP::SIG_GPParameter::poolImageDirectory [private]
 

The directory, where to place the complete copy of the pool, the poolImages.

Definition at line 252 of file SIGEL_GP/SIG_GPParameter.h.

int SIGEL_GP::SIG_GPParameter::poolImageGeneration [private]
 

The number of generation, which have to occure until a new poolImage will be saved.

Definition at line 258 of file SIGEL_GP/SIG_GPParameter.h.

priorityLevel SIGEL_GP::SIG_GPParameter::priority [private]
 

This value describes the level of preformance, which is demanded by the SIGEL program from the system, on which it is executed.

Definition at line 265 of file SIGEL_GP/SIG_GPParameter.h.

int SIGEL_GP::SIG_GPParameter::randomSeed [private]
 

The integer, which is used to initializes the randomizer.

Definition at line 111 of file SIGEL_GP/SIG_GPParameter.h.

int SIGEL_GP::SIG_GPParameter::reproductionProb [private]
 

The probability of selecting reproduction for a genetic operation.

Definition at line 144 of file SIGEL_GP/SIG_GPParameter.h.

bool SIGEL_GP::SIG_GPParameter::saveExit [private]
 

This attribute indicates the following, if the Sigel-System runs without GUI and the attribute is true, the program breaks up only when a new generation is reached.

Definition at line 233 of file SIGEL_GP/SIG_GPParameter.h.

int SIGEL_GP::SIG_GPParameter::terminationDurationDays [private]
 

Definition at line 200 of file SIGEL_GP/SIG_GPParameter.h.

int SIGEL_GP::SIG_GPParameter::terminationDurationHours [private]
 

Definition at line 203 of file SIGEL_GP/SIG_GPParameter.h.

int SIGEL_GP::SIG_GPParameter::terminationDurationMinutes [private]
 

Definition at line 206 of file SIGEL_GP/SIG_GPParameter.h.

int SIGEL_GP::SIG_GPParameter::terminationDurationSeconds [private]
 

Definition at line 209 of file SIGEL_GP/SIG_GPParameter.h.

int SIGEL_GP::SIG_GPParameter::terminationGenerationNo [private]
 

The number of generations, which have to evolve until the evolution computation is to terminate.

Definition at line 219 of file SIGEL_GP/SIG_GPParameter.h.

terminationType SIGEL_GP::SIG_GPParameter::terminationModel [private]
 

The type of the termination model.

Definition at line 225 of file SIGEL_GP/SIG_GPParameter.h.

QDateTime SIGEL_GP::SIG_GPParameter::terminationTime [private]
 

The date and time of termination of the evolution computation.

Definition at line 197 of file SIGEL_GP/SIG_GPParameter.h.

bool SIGEL_GP::SIG_GPParameter::terminationUsesDate [private]
 

Definition at line 212 of file SIGEL_GP/SIG_GPParameter.h.

int SIGEL_GP::SIG_GPParameter::timeOutMinutes [private]
 

Definition at line 308 of file SIGEL_GP/SIG_GPParameter.h.

int SIGEL_GP::SIG_GPParameter::toDoSweepsPerLoop [private]
 

The number of sweeps over the 'slaveList' in the SIG_GPFitnesstrainer in one loop pass to determine which PVM-task is finished or not.

Definition at line 191 of file SIGEL_GP/SIG_GPParameter.h.

double SIGEL_GP::SIG_GPParameter::tournamentsPerGeneration [private]
 

The factor, which is multiplies with the number of individuals in a pool to determine the number of tournaments to play in generation.

Definition at line 163 of file SIGEL_GP/SIG_GPParameter.h.

int SIGEL_GP::SIG_GPParameter::xoverProb [private]
 

The probability of selecting crossover for a genetic operation.

Definition at line 150 of file SIGEL_GP/SIG_GPParameter.h.


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