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

Class DefaultCrossoverRateCalculator

    • Method Detail

      • calculateCurrentRate

        public int calculateCurrentRate()
        Calculates the dynamic crossover rate. This is chosen to be the chromosome size. As the chromosome gets larger we assume that it is less likely to reproduce.
        Returns:
        calculated divisor of crossover rate
        Since:
        2.0
      • toBePermutated

        public boolean toBePermutated(IChromosome a_chrom,
                                      int a_geneIndex)
        Determines whether crossover is to be carried out for a given population.
        Parameters:
        a_chrom - ignored
        a_geneIndex - ignored
        Returns:
        true: the DefaultCrossoverRateCalculator always returns a finite rate
        Since:
        2.0

DMelt 3.0 © DataMelt by jWork.ORG

You see the box below because you did not login.