diff --git a/RouletteWheel.cpp b/RouletteWheel.cpp index bfa0d86..cd18191 100644 --- a/RouletteWheel.cpp +++ b/RouletteWheel.cpp @@ -173,6 +173,7 @@ namespace BitEvolver // pair.first = chromosome->GetFitness() - fitness_low; + pair.first *= pair.first; // Square to enhance the difference a little pair.second = chromosome; // @@ -222,7 +223,9 @@ namespace BitEvolver std::unique_lock lock(this->chromosomes_mutex); std::vector>> chromosomes_normalized_fitness; std::pair> wheel_slot; - double slot_begin_value; + double + slot_begin_value + ; // if ( !this->slots_need_population ) {