Commit 0576939d authored by maitre's avatar maitre
Browse files

Lex part for rouletteWheel selection operator

parent 0093d042
...@@ -37,8 +37,13 @@ Centre de Math ...@@ -37,8 +37,13 @@ Centre de Math
strcat(selectorName,"Deterministic()"); strcat(selectorName,"Deterministic()");
else if( mystricmp("Random",sSELECTOR)==0 ) else if( mystricmp("Random",sSELECTOR)==0 )
strcat(selectorName,"Random(globalRandomGenerator)"); strcat(selectorName,"Random(globalRandomGenerator)");
else if( mystricmp("Roulette",sSELECTOR)==0 )
strcat(selectorName,"Roulette(globalRandomGenerator)");
else return NULL; else{
DEBUG_PRT("%s is not yet implemented",sSELECTOR);
return NULL;
}
char* ret = (char*)malloc((strlen(selectorName)+1)*sizeof(char)); char* ret = (char*)malloc((strlen(selectorName)+1)*sizeof(char));
strcpy(ret,selectorName); strcpy(ret,selectorName);
......
...@@ -241,25 +241,20 @@ CPPFLAGS+= ...@@ -241,25 +241,20 @@ CPPFLAGS+=
\Default run parameters : // Please let the parameters appear in this order \Default run parameters : // Please let the parameters appear in this order
Evaluator goal : Maximise //Minimise // Maximise
Number of generations : 100 // NB_GEN Number of generations : 100 // NB_GEN
Mutation probability : 1 // MUT_PROB Mutation probability : 1 // MUT_PROB
Crossover probability : 0.8 // XOVER_PROB Crossover probability : 0.8 // XOVER_PROB
Population size : 20 // POP_SIZE Population size : 20 // POP_SIZE
Offspring size : 20 // 40% Offspring size : 20 // 40%
Genitors selector: Tournament 2 Genitors selector: RouletteWheel
Final reduce: Tournament 3 Final reduce: Tournament 3
Reduce parents: Tournament 2
Surviving parents : 5
Reduce offspring: Tournament 2
Surviving offspring: 17
// Selection operator : Tournament // RouletteWheel, Deterministic, Ranking, Random // Selection operator : Tournament // RouletteWheel, Deterministic, Ranking, Random
//Replacement strategy : Plus // Comma, SteadyState, Generational //Replacement strategy : Plus // Comma, SteadyState, Generational
// Discarding operator : Worst // Best, Tournament, Parent, Random // Discarding operator : Worst // Best, Tournament, Parent, Random
Evaluator goal : Minimise // Maximise
Elitism: Strong Elitism: Strong
Elite: 1 Elite: 1
\end \end
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment