#include <CNGGGPS.hpp>
Public Member Functions | |
CNGGGPS (std::string strName, int iRuns=1, int iPopulationSize=100, int iGenerations=50, double dMutationRate=0.5, double dCrossoverRate=0.5, int iMinDepth=0, int iMaxDepth=30, int iTournamentSize=3, int iTries=5) |
CNGGGPS::CNGGGPS | ( | std::string | strName, | |
int | iRuns = 1 , |
|||
int | iPopulationSize = 100 , |
|||
int | iGenerations = 50 , |
|||
double | dMutationRate = 0.5 , |
|||
double | dCrossoverRate = 0.5 , |
|||
int | iMinDepth = 0 , |
|||
int | iMaxDepth = 30 , |
|||
int | iTournamentSize = 3 , |
|||
int | iTries = 5 | |||
) |
Runs the GP System.
[in] | strName | The name of the experiment, used as a prefix for all the files created by the run. |
[in] | iRuns | The number of runs or trials to perform |
[in] | iPopulationSize | The number of programs to consider in each generation |
[in] | iGenerations | The number of selection, reproduction, evaluation cycles to perform in each run. |
[in] | dMutationRate | The proportion of the population to be mutated in each generation. |
[in] | dCrossoverRate | The proportion of the population to have crossover applied to them in each generation. |
[in] | iMinDepth | The minimum depth a symbol tree must obtain before being considered valid. |
[in] | iMaxDepth | The maximum depht a symbol tree may be to still be considered valid. |
[in] | iTournamentSize | The number of individuals randomly chosen from the population of which the best is passed on to the next generation. |