Class EvolutionParams<G extends Gene<?,​G>,​C extends Comparable<? super C>>

    • Method Detail

      • populationSize

        public int populationSize()
        Return the population size.
        Returns:
        the population size
      • offspringFraction

        public double offspringFraction()
        Return the offspring fraction.
        Returns:
        the offspring fraction.
      • maximalPhenotypeAge

        public long maximalPhenotypeAge()
        Return the maximal allowed phenotype age.
        Returns:
        the maximal allowed phenotype age
      • offspringSize

        public int offspringSize()
        Return the number of offspring. This is a derived property.
        Returns:
        the offspring count.
      • survivorsSize

        public int survivorsSize()
        Return the number of survivors. This is a derived property.
        Returns:
        the number of survivors
      • builder

        public static <G extends Gene<?,​G>,​C extends Comparable<? super C>> EvolutionParams.Builder<G,​C> builder()
        Create a new evolution parameter builder.
        Type Parameters:
        G - the gene type
        C - the fitness function result type
        Returns:
        a new parameter builder