Interface Selector

    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      java.util.Collection<org.opt4j.core.Individual> getLames​(int lambda, java.util.Collection<org.opt4j.core.Individual> population)
      Selects a subset of lambda Individuals and returns it as a new Collection.
      java.util.Collection<org.opt4j.core.Individual> getParents​(int mu, java.util.Collection<org.opt4j.core.Individual> population)
      Selects a subset of Individuals and returns it as a new Collection.
      void init​(int maxsize)
      Sets the maximal number of Individuals.
    • Method Detail

      • getParents

        java.util.Collection<org.opt4j.core.Individual> getParents​(int mu,
                                                                   java.util.Collection<org.opt4j.core.Individual> population)
        Selects a subset of Individuals and returns it as a new Collection. These so called parents can be used to form the next generation.
        Parameters:
        mu - the number of parents to select
        population - the list of individuals
        Returns:
        the parents
      • getLames

        java.util.Collection<org.opt4j.core.Individual> getLames​(int lambda,
                                                                 java.util.Collection<org.opt4j.core.Individual> population)
        Selects a subset of lambda Individuals and returns it as a new Collection. These individuals can be erased in the next generation.
        Parameters:
        lambda - the number of lames to select
        population - the list of individuals
        Returns:
        the worst lambda individuals
      • init

        void init​(int maxsize)
        Sets the maximal number of Individuals.
        Parameters:
        maxsize - the number of individuals