Uses of Class
org.apache.commons.math.genetics.Chromosome
Packages that use Chromosome
Package
Description
This package provides Genetic Algorithms components and implementations.
-
Uses of Chromosome in org.apache.commons.math.genetics
Subclasses of Chromosome in org.apache.commons.math.geneticsModifier and TypeClassDescriptionclass
Chromosome represented by an immutable list of a fixed length.class
Chromosome represented by a vector of 0s and 1s.class
RandomKey<T>
Random Key chromosome is used for permutation representation.Methods in org.apache.commons.math.genetics that return ChromosomeModifier and TypeMethodDescriptionprotected Chromosome
Chromosome.findSameChromosome
(Population population) Searches thepopulation
for another chromosome with the same representation.ChromosomePair.getFirst()
Access the first chromosome.ListPopulation.getFittestChromosome()
Access the fittest chromosome in this population.Population.getFittestChromosome()
Access the fittest chromosome in this population.ChromosomePair.getSecond()
Access the second chromosome.BinaryMutation.mutate
(Chromosome original) Mutate the given chromosome.MutationPolicy.mutate
(Chromosome original) Mutate the given chromosome.RandomKeyMutation.mutate
(Chromosome original) Mutate the given chromosome.Methods in org.apache.commons.math.genetics that return types with arguments of type ChromosomeModifier and TypeMethodDescriptionListPopulation.getChromosomes()
Access the list of chromosomes.ListPopulation.iterator()
Chromosome list iteratorMethods in org.apache.commons.math.genetics with parameters of type ChromosomeModifier and TypeMethodDescriptionvoid
ListPopulation.addChromosome
(Chromosome chromosome) Add the given chromosome to the population.void
Population.addChromosome
(Chromosome chromosome) Add the given chromosome to the population.int
Chromosome.compareTo
(Chromosome another) Compares two chromosomes based on their fitness.CrossoverPolicy.crossover
(Chromosome first, Chromosome second) Perform a crossover operation on the given chromosomes.OnePointCrossover.crossover
(Chromosome first, Chromosome second) Performs one point crossover.protected boolean
BinaryChromosome.isSame
(Chromosome another) Returnstrue
iff
another
has the same representation and therefore the same fitness.protected boolean
Chromosome.isSame
(Chromosome another) Returnstrue
iff
another
has the same representation and therefore the same fitness.protected boolean
RandomKey.isSame
(Chromosome another) Returnstrue
iffanother
is a RandomKey and encodes the same permutation.BinaryMutation.mutate
(Chromosome original) Mutate the given chromosome.MutationPolicy.mutate
(Chromosome original) Mutate the given chromosome.RandomKeyMutation.mutate
(Chromosome original) Mutate the given chromosome.Method parameters in org.apache.commons.math.genetics with type arguments of type ChromosomeModifier and TypeMethodDescriptionvoid
ListPopulation.setChromosomes
(List<Chromosome> chromosomes) Sets the list of chromosomes.Constructors in org.apache.commons.math.genetics with parameters of type ChromosomeModifierConstructorDescriptionChromosomePair
(Chromosome c1, Chromosome c2) Create a chromosome pair.Constructor parameters in org.apache.commons.math.genetics with type arguments of type ChromosomeModifierConstructorDescriptionElitisticListPopulation
(List<Chromosome> chromosomes, int populationLimit, double elitismRate) Creates a new ElitisticListPopulation instance.ListPopulation
(List<Chromosome> chromosomes, int populationLimit) Creates a new ListPopulation instance.