Interface SelectionFunction

    • Field Detail

      • DEFAULT

        static final SelectionFunction DEFAULT
        Selects all members of a population for replication
    • Method Detail

      • select

        Population select​(Population pop,
                          GeneticAlgorithm genAlg)
                   throws ChangeVetoException
        Selects a Population of Organisms for replication based on their fitness.
        Parameters:
        pop - the Population to select from.
        genAlg - the parent GeneticAlgorithm.
        Returns:
        the Organisms selected
        Throws:
        ChangeVetoException - if the function attempts to change the population and it is vetoed.