class Genotype: population = None def __init__(self, configuration): self.configuration = configuration self.population = Population(configuration,\ configuration.populationSize) def getPopulation(self): return self.population def getFittestChromosone(self): self.population.determineFittestChromosone() def evolve(self): self.population.applyNaturalSelectors() self.population.applyGeneticOperators()
def __init__(self, configuration): self.configuration = configuration self.population = Population(configuration,\ configuration.populationSize)