Converting list to numpy array when calling the fitness function
Compare changes
+ 8
− 9
@@ -29,11 +29,10 @@ def generate_random_coordinates(start_point, side_length):
@@ -93,7 +92,7 @@ class Population():
@@ -213,11 +212,11 @@ class Genetic_algorithm():
@@ -244,7 +243,7 @@ random.randint(start_point[1], start_point[1]+side_length)),