Browse Source

上传文件至 ''

李子树 6 years ago
parent
commit
72a336b95d
1 changed files with 10 additions and 0 deletions
  1. 10 0
      Main.py

+ 10 - 0
Main.py

@@ -0,0 +1,10 @@
+from Code.GeneticAlgorithm import MyGeneticAlgorithm
+
+if __name__ == '__main__':
+    MyGeneticAlgorithm(dna_length=50,
+                       population_number=100,
+                       cross_probability=0.3,
+                       mutation_probability=0.06,
+                       generate_number=100,
+                       target='min').run()
+