Changeset 1148 for framspy/evolalg/selection
- Timestamp:
- 08/10/21 00:48:18 (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
framspy/evolalg/selection/nsga2.py
r1147 r1148 11 11 super(NSGA2Selection, self).call(population) 12 12 pop = tools.selNSGA2(population, len(population)) 13 # TODO make count divisible by 4, is this the best way to do it/is it absolutely required? if this is applied, why popsize must still be a multiple of 4?13 # make count divisible by 4, required by deap.tools.selTournamentDCD() 14 14 remainder=count % 4 15 15 if remainder > 0:
Note: See TracChangeset
for help on using the changeset viewer.