Example #1
0
void XnesAlgo::describe(QString type)
{
	Descriptor d = addTypeDescription(type, "xNES Algorithm");
	d.describeInt("numGenerations").limits(1, INT_MAX).def(1000).help("Number of the generations of the evolutionary process");
	d.describeObject("gaEvaluator").type("RobotExperiment").props(IsMandatory).help("Object that calculate the fitness");
	d.describeObject("genotypeTester").type("SingleGenotypeFloatToEvonet").props(IsMandatory).help("Object that sets the genotype to be tested");
	d.describeSubgroup("Genotype").type("GenotypeFloat").props(IsMandatory).help("Object containing the individual under evolution");
}
Example #2
0
void SteadyStateAlgo::describe(QString type)
{
	Descriptor d = addTypeDescription(type, "steadyState Algorithm");
	d.describeInt("popSize").limits(1, INT_MAX).def(1).help("Number of the individuals belonging to the population");
	d.describeInt("numGenerations").limits(1, INT_MAX).def(1000).help("Number of the generations of the evolutionary process");
	d.describeReal("mutRate").def(0.1).help("Mutation rate");
	d.describeReal("mutDecay").def(0.01).help("Mutation rate decay");
	d.describeReal("initMutRate").def(0.5).help("Initial mutation rate");
	d.describeObject("gaEvaluator").type("RobotExperiment").props(IsMandatory).help("Object that calculate the fitness");
	d.describeObject("genotypeTester").type("SingleGenotypeIntToEvonet").props(IsMandatory).help("Object that sets the genotype to be tested");
	d.describeSubgroup("Genotype").type("GenotypeInt").props(IsMandatory).help("Object containing the individual under evolution");
}