Documentation of 'org.jgap.impl.FittestPopulationMerger' Java class
FittestPopulationMerger
org.jgap.impl

Class FittestPopulationMerger

  • All Implemented Interfaces:
    IPopulationMerger


    public class FittestPopulationMerger
    extends java.lang.Object
    implements IPopulationMerger
    A implementation of the IPopulationMerger interface that merges two populations as specified based on the fitness function, that is, the n fittest chromosomes are returned in the new population, where n is supplied by parameter.
    Since:
    2.0
    • Constructor Detail

      • FittestPopulationMerger

        public FittestPopulationMerger()
    • Method Detail

      • mergePopulations

        public Population mergePopulations(Population a_population1,
                                           Population a_population2,
                                           int a_new_population_size)
        Description copied from interface: IPopulationMerger
        Merges two populations into one that has the given size.
        Specified by:
        mergePopulations in interface IPopulationMerger
        Parameters:
        a_population1 - first population
        a_population2 - second population
        a_new_population_size - size of merged population
        Returns:
        the resulting population

DMelt 3.0 © DataMelt by jWork.ORG

You see the box below because you did not login.