Removed bad idea
This commit is contained in:
parent
b2f164f464
commit
cb0f81b3e1
@ -60,10 +60,10 @@ namespace BitEvolver
|
|||||||
void Breeder::Mutate(std::shared_ptr<Chromosome> chromosome, double mutation_rate)
|
void Breeder::Mutate(std::shared_ptr<Chromosome> chromosome, double mutation_rate)
|
||||||
{
|
{
|
||||||
//
|
//
|
||||||
int i, size;
|
int
|
||||||
|
i,
|
||||||
//
|
size
|
||||||
#warning "For efficiency, let's instead roll the number of bits to flip in advance, and loop that many times (faster than rolling for every bit)"
|
;
|
||||||
|
|
||||||
//
|
//
|
||||||
size = chromosome->GetBitCount();
|
size = chromosome->GetBitCount();
|
||||||
|
Loading…
Reference in New Issue
Block a user