From: Rafał Długołęcki Date: Sun, 3 May 2015 20:57:36 +0000 (+0200) Subject: Fix Generation Limit Option. X-Git-Url: https://git.dlugolecki.net.pl/?a=commitdiff_plain;h=fdbe06445323de1f82bcd6a61279c3ca46a4b826;p=genetic.git Fix Generation Limit Option. --- diff --git a/src/main.cpp b/src/main.cpp index fc396cd..5ca1684 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -42,7 +42,7 @@ int main(int argc, char* argv[]) { new command::Option("--generation-size", "Generation size", [](int value)->void { generationSize = value; }), new command::Option("--crossover", "Crossover chance", [](float value)->void { crossoverChance = value; }), new command::Option("--mutation", "Mutation chance", [](float value)->void { mutationChance = value; }), - new command::Option("--generation-limit", "Limit of generations", [](float value)->void { mutationChance = value; }), + new command::Option("--generation-limit", "Limit of generations", [](float value)->void { generationLimit = value; }), }); _Fitness fitness(0.5, 2.5);