Main.py 359 B

12345678910
  1. from Code.GeneticAlgorithm import MyGeneticAlgorithm
  2. if __name__ == '__main__':
  3. MyGeneticAlgorithm(dna_length=50,
  4. population_number=100,
  5. cross_probability=0.3,
  6. mutation_probability=0.06,
  7. generate_number=100,
  8. target='min').run()