Doubled mutation rate. To solve default fitness function.
This commit is contained in:
@ -7,8 +7,10 @@ ga = EasyGA.GA()
|
||||
# Create 25 chromosomes each with 10 genes and 200 generations
|
||||
ga.population_size = 100
|
||||
ga.chromosome_length = 10
|
||||
ga.generation_goal = 150
|
||||
ga.generation_goal = 1000
|
||||
|
||||
ga.evolve()
|
||||
|
||||
ga.graph.generation_total_fitness()
|
||||
ga.print_population()
|
||||
|
||||
ga.graph.highest_value_chromosome()
|
||||
|
||||
Reference in New Issue
Block a user