From: Rafał Długołęcki Date: Wed, 8 Apr 2015 19:42:45 +0000 (+0200) Subject: Bigger values for testing results. X-Git-Url: https://git.dlugolecki.net.pl/?a=commitdiff_plain;h=169219566d08e4940d25b66ecdb68e80b90c090d;p=genetic.git Bigger values for testing results. --- diff --git a/src/main.cpp b/src/main.cpp index daf7fbc..ccaa43e 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -35,7 +35,7 @@ int main() { 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; @@ -43,7 +43,7 @@ int main() { _Generator generationGenerator(generationSize, chromosomeSize); _Algorithm algorithm(generationGenerator, fitness, crossoverChance, mutationChance); - _Condition condition(1000); + _Condition condition(10000); algorithm.searchForResult(condition);