Switch to better roulette wheel selection
This commit is contained in:
@ -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();
|
||||
|
Reference in New Issue
Block a user