Domain update

Can set the domain to either a range or a list of values.
This commit is contained in:
SimpleArt
2020-09-24 23:51:21 -04:00
parent 4daec6574d
commit 5c5d6920b2
5 changed files with 18 additions and 30 deletions

View File

@ -36,8 +36,7 @@ class population:
self.fitness = fitness
def __repr__(self):
for index in range(len(self.chromosomes)):
return f'{self.chromosomes[index]}'
return ''.join([chromosome.__repr__() for chromosome in self.chromosomes])
def print_all(self):
# Ex .Current population