Ignore:
Timestamp:
08/10/21 00:48:18 (3 years ago)
Author:
Maciej Komosinski
Message:

Added exception when popsize is not a multiple of 4 (required by deap.tools.selTournamentDCD())

File:
1 edited

Legend:

Unmodified
Added
Removed
  • framspy/evolalg/selection/nsga2.py

    r1147 r1148  
    1111        super(NSGA2Selection, self).call(population)
    1212        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()
    1414        remainder=count % 4
    1515        if remainder > 0:
Note: See TracChangeset for help on using the changeset viewer.