Friday, August 6, 2010

Genetic Algorithms

There is something a little bit creepy about writing genetic algorithms. I'm not quite sure what it is...


// Run selected breeding program
while (stopWatch.Elapsed < _parameters.SimulationExecutionTime)
{
population = Selection(population).ToList();

var children = Breed(population);

Mutate(children);

population.AddRange(children);
}

No comments:

Post a Comment