[CT421]: Assignment 1 over the line

This commit is contained in:
2025-02-20 03:24:49 +00:00
parent 8d726e73c0
commit 5ab6c4775a
4 changed files with 5005 additions and 505 deletions

View File

@ -134,7 +134,7 @@ def crossover(population, crossover_rate, number_to_replace):
if random.random() < 0.5:
child = pmx(parent1, parent2)
else:
child = ox(parent1, parent2)
child = pmx(parent1, parent2)
offspring.append(child)