vector<_Chromosome> selected;
multimap<FitnessValueType, _Chromosome> probabilities;
- unsigned int size = this->generation.get().size();
- const unsigned int power2N = 1 << this->generation.get()[0].get().size();
+ unsigned int size = this->generation.size();
+ const unsigned int power2N = 1 << this->generation[0].size();
/** Random value used to draw chromosome */
FitnessValueType random = 0;
normalizedFitness = this->normalizeFitness(
this->calculateGenerationFitness(this->generation),
- this->generation.get()[0].get().size()
+ this->generation[0].size()
);
return spinRoulette(normalizedFitness);