| Package | Description | 
|---|---|
| org.apache.commons.math3.genetics | This package provides Genetic Algorithms components and implementations. | 
| Modifier and Type | Class and Description | 
|---|---|
| class  | AbstractListChromosome<T>Chromosome represented by an immutable list of a fixed length. | 
| class  | BinaryChromosomeChromosome represented by a vector of 0s and 1s. | 
| class  | RandomKey<T>Random Key chromosome is used for permutation representation. | 
| Modifier and Type | Method and Description | 
|---|---|
| protected Chromosome | Chromosome. findSameChromosome(Population population)Searches the  populationfor another chromosome with the same representation. | 
| Chromosome | ChromosomePair. getFirst()Access the first chromosome. | 
| Chromosome | Population. getFittestChromosome()Access the fittest chromosome in this population. | 
| Chromosome | ListPopulation. getFittestChromosome()Access the fittest chromosome in this population. | 
| Chromosome | ChromosomePair. getSecond()Access the second chromosome. | 
| Chromosome | BinaryMutation. mutate(Chromosome original)Mutate the given chromosome. | 
| Chromosome | MutationPolicy. mutate(Chromosome original)Mutate the given chromosome. | 
| Chromosome | RandomKeyMutation. mutate(Chromosome original)Mutate the given chromosome. | 
| Modifier and Type | Method and Description | 
|---|---|
| protected List<Chromosome> | ListPopulation. getChromosomeList()Access the list of chromosomes. | 
| List<Chromosome> | ListPopulation. getChromosomes()Returns an unmodifiable list of the chromosomes in this population. | 
| Iterator<Chromosome> | ListPopulation. iterator()Returns an iterator over the unmodifiable list of chromosomes. | 
| Modifier and Type | Method and Description | 
|---|---|
| void | Population. addChromosome(Chromosome chromosome)Add the given chromosome to the population. | 
| void | ListPopulation. addChromosome(Chromosome chromosome)Add the given chromosome to the population. | 
| int | Chromosome. compareTo(Chromosome another)Compares two chromosomes based on their fitness. | 
| ChromosomePair | OnePointCrossover. crossover(Chromosome first,
         Chromosome second)Performs one point crossover. | 
| ChromosomePair | CrossoverPolicy. crossover(Chromosome first,
         Chromosome second)Perform a crossover operation on the given chromosomes. | 
| ChromosomePair | CycleCrossover. crossover(Chromosome first,
         Chromosome second)Perform a crossover operation on the given chromosomes. | 
| ChromosomePair | NPointCrossover. crossover(Chromosome first,
         Chromosome second)Performs a N-point crossover. | 
| ChromosomePair | OrderedCrossover. crossover(Chromosome first,
         Chromosome second)Perform a crossover operation on the given chromosomes. | 
| ChromosomePair | UniformCrossover. crossover(Chromosome first,
         Chromosome second)Perform a crossover operation on the given chromosomes. | 
| protected boolean | Chromosome. isSame(Chromosome another)Returns  trueiffanotherhas the same representation and therefore the same fitness. | 
| protected boolean | BinaryChromosome. isSame(Chromosome another)Returns  trueiffanotherhas the same representation and therefore the same fitness. | 
| protected boolean | RandomKey. isSame(Chromosome another)Returns  trueiffanotheris a RandomKey and
 encodes the same permutation. | 
| Chromosome | BinaryMutation. mutate(Chromosome original)Mutate the given chromosome. | 
| Chromosome | MutationPolicy. mutate(Chromosome original)Mutate the given chromosome. | 
| Chromosome | RandomKeyMutation. mutate(Chromosome original)Mutate the given chromosome. | 
| Modifier and Type | Method and Description | 
|---|---|
| void | ListPopulation. addChromosomes(Collection<Chromosome> chromosomeColl)Add a  Collectionof chromosomes to thisPopulation. | 
| void | ListPopulation. setChromosomes(List<Chromosome> chromosomes)Deprecated. 
 use  ListPopulation.addChromosomes(Collection)instead | 
| Constructor and Description | 
|---|
| ChromosomePair(Chromosome c1,
              Chromosome c2)Create a chromosome pair. | 
| Constructor and Description | 
|---|
| ElitisticListPopulation(List<Chromosome> chromosomes,
                       int populationLimit,
                       double elitismRate)Creates a new  ElitisticListPopulationinstance. | 
| ListPopulation(List<Chromosome> chromosomes,
              int populationLimit)Creates a new ListPopulation instance. | 
Copyright © 2003–2016 The Apache Software Foundation. All rights reserved.