def getInitialPopulation(): TARGET_STRING = "Phillips Andover" popList = [] for i in range(100): popList.append( GeneticAlgorithm.StringChromosome( randomRepresentation(len(TARGET_STRING)), list(TARGET_STRING))) return GeneticAlgorithm.Population(len(popList), 0.2, popList)