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

    • Method Detail

      • population

        public ISeq<Phenotype<G,​C>> population()
        Return the population before the evolution step.
        Returns:
        the start population
      • generation

        public long generation()
        Return the generation of the start population.
        Returns:
        the start generation
      • of

        public static <G extends Gene<?,​G>,​C extends Comparable<? super C>> EvolutionStart<G,​C> of​(ISeq<Phenotype<G,​C>> population,
                                                                                                                     long generation)
        Create a new evolution start object with the given population and for the given generation.
        Type Parameters:
        G - the gene type
        C - the fitness type
        Parameters:
        population - the start population.
        generation - the start generation of the population
        Returns:
        a new evolution start object
        Throws:
        NullPointerException - if the given population is null.
        IllegalArgumentException - if the given generation is smaller then one
      • empty

        public static <G extends Gene<?,​G>,​C extends Comparable<? super C>> EvolutionStart<G,​C> empty()
        An empty evolution start object, which can be used as initial evolution value. The evolution Engine is then responsible for creating the proper initial population,
        Type Parameters:
        G - the gene type
        C - the fitness type
        Returns:
        an empty evolution start object
        Since:
        5.1