Added the termination features
This commit is contained in:
@ -4,11 +4,10 @@ import random
|
||||
ga = EasyGA.GA()
|
||||
|
||||
ga.chromosome_length = 3
|
||||
|
||||
ga.max_generations = 5
|
||||
# If the user wants to use a domain
|
||||
ga.gene_impl = [random.randrange,1,10]
|
||||
|
||||
|
||||
# Run Everyhting
|
||||
ga.evolve()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user