Esempio n. 1
0
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()
Esempio n. 2
0
 def __init__(self, configuration):
     self.configuration = configuration
     self.population = Population(configuration,\
      configuration.populationSize)