// INTERFACE public void Evolve() { IGenePool newGenePool = new GenePool(_genePool); // Generate a new population of the same size // Each child's genotype is a pair of random alleles from random parent genotypes for (ulong i = 0; i < _genePool.GenotypeCount; ++i) { } // Overwrite the old genotype counts with the newly generated ones _genePool = newGenePool; }
// CONSTRUCTORS public Population(GenePool genepool) { // Define private variables _genePool = genepool; _rand = new Random(); }