typedef GenerationLimitCondition<_Chromosome> _Condition;
const int chromosomeSize = 10;
- const int generationSize = 200;
+ const int generationSize = 500;
const double crossoverChance = 0.75;
const double mutationChance = 0.01;
_Generator generationGenerator(generationSize, chromosomeSize);
_Algorithm algorithm(generationGenerator, fitness, crossoverChance, mutationChance);
- _Condition condition(1000);
+ _Condition condition(10000);
algorithm.searchForResult(condition);