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

java.lang.Object
io.jenetics.engine.EvolutionParams<G,C>
Type Parameters:
G - the gene type
C - the fitness function result type
All Implemented Interfaces:
Serializable

public final class EvolutionParams<G extends Gene<?,G>,C extends Comparable<? super C>> extends Object implements Serializable
This class collects the parameters which control the behavior of the evolution process. This doesn't include the parameters for the technical execution like the used execution service.
Since:
5.2
Version:
5.2
See Also:
  • Method Details Link icon

    • survivorsSelector Link icon

      Return the used survivor Selector of the GA.
      Returns:
      the used survivor Selector of the GA.
    • offspringSelector Link icon

      Return the used offspring Selector of the GA.
      Returns:
      the used offspring Selector of the GA.
    • alterer Link icon

      public Alterer<G,C> alterer()
      Return the used Alterer of the GA.
      Returns:
      the used Alterer of the GA.
    • populationSize Link icon

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

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

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

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

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

      Return a new builder object, initialized with this parameters.
      Returns:
      a new pre-filled builder object
    • builder Link icon

      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