Switch to better roulette wheel selection

This commit is contained in:
2018-04-14 02:24:22 -07:00
parent a0fc0257ef
commit 4f1522ff43
2 changed files with 21 additions and 44 deletions

View File

@ -86,11 +86,15 @@ namespace BitEvolver
double mutation_rate;
int evolution_number;
//
std::shared_ptr<class RouletteWheel> roulette_wheel;
//
std::mutex breed_mutex;
//
void InitRandomGenerator();
void InitRouletteWheel();
void InitBreeder();
//
@ -102,7 +106,6 @@ namespace BitEvolver
//
std::shared_ptr<Chromosome> BreedChild();
std::shared_ptr<Chromosome> PickChromosomeForBreeding();
//
int GetThreadCountSuggestion();