diff --git a/src/agents/geneticAlgAgentJon.py b/src/agents/geneticAlgAgentJon.py index 589a57f..2dbef3c 100644 --- a/src/agents/geneticAlgAgentJon.py +++ b/src/agents/geneticAlgAgentJon.py @@ -120,6 +120,7 @@ def paring_pop(self, pop_list: list[list[list[float], float]]) -> list[list[floa if norm == 0: norm = 1e-10 # or some small constant new_pop[0] = [i / norm for i in new_pop[0]] + new_pop[0] = [i / norm for i in new_pop[0]] # Mutate 5% of children pops if random.randrange(0,1000)/1000 < 0.05: