Updated GA attribute structure, separated selection file structure
Updated GA attribute structure, separated selection file structure
This commit is contained in:
@ -10,7 +10,7 @@ class Crossover_Methods:
|
||||
def __init__(self):
|
||||
pass
|
||||
|
||||
def single_point_crossover(self, ga):
|
||||
def single_point_crossover(ga):
|
||||
"""Single point crossover is when a "point" is selected and the genetic
|
||||
make up of the two parent chromosomes are "Crossed" or better known as swapped"""
|
||||
|
||||
@ -31,7 +31,7 @@ class Crossover_Methods:
|
||||
|
||||
return new_population
|
||||
|
||||
def multi_point_crossover(self, ga,number_of_points = 2):
|
||||
def multi_point_crossover(ga, number_of_points = 2):
|
||||
"""Multi point crossover is when a specific number (More then one) of
|
||||
"points" are created to merge the genetic makup of the chromosomes."""
|
||||
pass
|
||||
|
||||
Reference in New Issue
Block a user