Files
EasyGA/src/run_testing.py
2020-09-23 16:46:59 -04:00

12 lines
203 B
Python

import random
import EasyGA
# Create the Genetic algorithm
ga = EasyGA.GA()
# Start the population
ga.initialize()
for chromosome in ga.population.chromosomes:
print(chromosome.genes[0].__dict__)