File name changes to match the rest of framework. generation goal was setup twice in EasyGA.

This commit is contained in:
danielwilczak101
2020-10-08 15:53:35 -04:00
parent 3649293133
commit 88927f7415
19 changed files with 11 additions and 61 deletions

View File

@ -1,16 +0,0 @@
class Termination_methods:
"""Example functions that can be used to terminate the the algorithms loop"""
def fitness_based(ga):
"""Fitness based approach to terminate when the goal fitness has been reached"""
status = True
if(ga.current_fitness > ga.fitness_goal):
status = False
return status
def generation_based(ga):
"""Generation based approach to terminate when the goal generation has been reached"""
status = True
if(ga.current_generation > ga.generation_goal):
status = False
return status