(self)
Picks an individual from population using specific selection method

      :rtype: an individual object
Picks an individual from population using specific selection method
Picks an individual from population using specific selection method
def select(self):
      """ Picks an individual from population using specific selection method

      :rtype: an individual object
      """
      if self.selector.isEmpty():
         return self.GAEngine.select(popID=self.GAEngine.currentGeneration)
      else:
         for it in self.selector.applyFunctions(self.GAEngine.internalPop,
                                                popID=self.GAEngine.currentGeneration):
            return it
def select ( self ) : if self . selector . isEmpty ( ) : return self . GAEngine . select ( popID = self . GAEngine . currentGeneration ) else : for it in self . selector . applyFunctions ( self . GAEngine . internalPop , popID = self . GAEngine . currentGeneration ) : return it