Skip to content

Commit

Permalink
mating
Browse files Browse the repository at this point in the history
  • Loading branch information
lavakin committed Apr 25, 2024
1 parent 4a9ea3e commit e956f73
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion setga/select_subset.py
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ def evaluate_individual(individual,**kwargs):
toolbox.register("select", tools.selSPEA2)
if selection == "NSGA2":
toolbox.register("select", tools.selNSGA2)
if crossover not in ["SPEA2","NSGA2"]:
if selection not in ["SPEA2","NSGA2"]:
raise WrongType("Unknown type of mating")

toolbox.register("migrate",tools.migRing,k=10,selection = toolbox.select)
Expand Down

0 comments on commit e956f73

Please sign in to comment.