Class CrossoverGenericImplementation

    • Method Detail

      • crossover

        public Pair<org.opt4j.core.Genotype> crossover​(org.opt4j.core.Genotype parent1,
                                                       org.opt4j.core.Genotype parent2)
        Description copied from interface: Crossover
        Performs a crossover for two Genotype parents. The resulting pair of Genotype offspring is returned.
        Specified by:
        crossover in interface Crossover<org.opt4j.core.Genotype>
        Parameters:
        parent1 - The first parent genotype for the crossover
        parent2 - The second parents genotype for the crossover
        Returns:
        The resulting pair of offspring genotypes
      • crossoverComposite

        protected Pair<org.opt4j.core.Genotype> crossoverComposite​(org.opt4j.core.genotype.CompositeGenotype<?,​?> p1,
                                                                   org.opt4j.core.genotype.CompositeGenotype<?,​?> p2)