- for (int i = 0; i < 11; i++) {
- _Gene gene(rand() % 2);
- cout << "Generated gene: " << (int)gene.get() << "\n";
- genes.push_back(gene);
- }
+ command::Command command(argc, argv, {
+ new command::Option<int>("--chromosome-size", "Chromosome size", [](int value)->void { chromosomeSize = value; }),
+ new command::Option<int>("--generation-size", "Generation size", [](int value)->void { generationSize = value; }),
+ new command::Option<float>("--crossover", "Crossover chance", [](float value)->void { crossoverChance = value; }),
+ new command::Option<float>("--mutation", "Mutation chance", [](float value)->void { mutationChance = value; }),
+ new command::Option<float>("--generation-limit", "Limit of generations", [](float value)->void { generationLimit = value; }),
+ });