Commit 48db9e81 authored by Frédéric Krüger's avatar Frédéric Krüger
Browse files

Correction de bug detecte par Cedric

parent 40d56fa2
......@@ -171,7 +171,7 @@ CIndividual** CPopulation::reduceParentPopulation(size_t obSize){
nextGeneration = new CIndividual*[obSize];
reducePopulation(parents,actualParentPopulationSize,nextGeneration,obSize,
CPopulation::replacementOperator);
CPopulation::parentReductionOperator);
// free no longer needed CIndividuals
for( size_t i=0 ; i<actualParentPopulationSize-obSize ; i++ )
......@@ -193,7 +193,7 @@ CIndividual** CPopulation::reduceOffspringPopulation(size_t obSize){
CIndividual** nextGeneration = new CIndividual*[offspringPopulationSize];
reducePopulation(offsprings,actualOffspringPopulationSize,nextGeneration,obSize,
CPopulation::replacementOperator);
CPopulation::offspringReductionOperator);
//printf("POPULATION SIZE %d\n",actualOffspringPopulationSize-obSize);
// free no longer needed CIndividuals
......
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