Interface Mating

  • All Known Implementing Classes:
    MatingCrossoverMutate

    public interface Mating
    The Mating interface is used to create offspring from a given set of parents.
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      java.util.Collection<org.opt4j.core.Individual> getOffspring​(int size, java.util.Collection<org.opt4j.core.Individual> parents)
      Creates offspring from a given set of parents.
      java.util.Collection<org.opt4j.core.Individual> getOffspring​(int size, org.opt4j.core.Individual... parents)
      Creates offspring from a given set of parents.
    • Method Detail

      • getOffspring

        java.util.Collection<org.opt4j.core.Individual> getOffspring​(int size,
                                                                     org.opt4j.core.Individual... parents)
        Creates offspring from a given set of parents.
        Parameters:
        size - the number of individuals to create
        parents - the parents
        Returns:
        the offspring
      • getOffspring

        java.util.Collection<org.opt4j.core.Individual> getOffspring​(int size,
                                                                     java.util.Collection<org.opt4j.core.Individual> parents)
        Creates offspring from a given set of parents.
        Parameters:
        size - the number of individuals to create
        parents - the parents
        Returns:
        the offspring