Uses of Class
org.apache.commons.math4.legacy.genetics.Chromosome
-
Packages that use Chromosome Package Description org.apache.commons.math4.legacy.genetics This package provides Genetic Algorithms components and implementations. -
-
Uses of Chromosome in org.apache.commons.math4.legacy.genetics
Subclasses of Chromosome in org.apache.commons.math4.legacy.genetics Modifier and Type Class Description classAbstractListChromosome<T>Chromosome represented by an immutable list of a fixed length.classBinaryChromosomeChromosome represented by a vector of 0s and 1s.classRandomKey<T>Random Key chromosome is used for permutation representation.Methods in org.apache.commons.math4.legacy.genetics that return Chromosome Modifier and Type Method Description protected ChromosomeChromosome. findSameChromosome(Population population)Searches thepopulationfor another chromosome with the same representation.ChromosomeChromosomePair. getFirst()Access the first chromosome.ChromosomeListPopulation. getFittestChromosome()Access the fittest chromosome in this population.ChromosomePopulation. getFittestChromosome()Access the fittest chromosome in this population.ChromosomeChromosomePair. getSecond()Access the second chromosome.ChromosomeBinaryMutation. mutate(Chromosome original)Mutate the given chromosome.ChromosomeMutationPolicy. mutate(Chromosome original)Mutate the given chromosome.ChromosomeRandomKeyMutation. mutate(Chromosome original)Mutate the given chromosome.Methods in org.apache.commons.math4.legacy.genetics that return types with arguments of type Chromosome Modifier and Type Method 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.Methods in org.apache.commons.math4.legacy.genetics with parameters of type Chromosome Modifier and Type Method Description voidListPopulation. addChromosome(Chromosome chromosome)Add the given chromosome to the population.voidPopulation. addChromosome(Chromosome chromosome)Add the given chromosome to the population.intChromosome. compareTo(Chromosome another)Compares two chromosomes based on their fitness.ChromosomePairCrossoverPolicy. crossover(Chromosome first, Chromosome second)Perform a crossover operation on the given chromosomes.ChromosomePairCycleCrossover. crossover(Chromosome first, Chromosome second)Perform a crossover operation on the given chromosomes.ChromosomePairNPointCrossover. crossover(Chromosome first, Chromosome second)Performs a N-point crossover.ChromosomePairOnePointCrossover. crossover(Chromosome first, Chromosome second)Performs one point crossover.ChromosomePairOrderedCrossover. crossover(Chromosome first, Chromosome second)Perform a crossover operation on the given chromosomes.ChromosomePairUniformCrossover. crossover(Chromosome first, Chromosome second)Perform a crossover operation on the given chromosomes.protected booleanBinaryChromosome. isSame(Chromosome another)Returnstrueiffanotherhas the same representation and therefore the same fitness.protected booleanChromosome. isSame(Chromosome another)Returnstrueiffanotherhas the same representation and therefore the same fitness.protected booleanRandomKey. isSame(Chromosome another)Returnstrueiffanotheris a RandomKey and encodes the same permutation.ChromosomeBinaryMutation. mutate(Chromosome original)Mutate the given chromosome.ChromosomeMutationPolicy. mutate(Chromosome original)Mutate the given chromosome.ChromosomeRandomKeyMutation. mutate(Chromosome original)Mutate the given chromosome.Method parameters in org.apache.commons.math4.legacy.genetics with type arguments of type Chromosome Modifier and Type Method Description voidListPopulation. addChromosomes(Collection<Chromosome> chromosomeColl)Add aCollectionof chromosomes to thisPopulation.Constructors in org.apache.commons.math4.legacy.genetics with parameters of type Chromosome Constructor Description ChromosomePair(Chromosome c1, Chromosome c2)Create a chromosome pair.Constructor parameters in org.apache.commons.math4.legacy.genetics with type arguments of type Chromosome Constructor Description ElitisticListPopulation(List<Chromosome> chromosomes, int populationLimit, double elitismRate)Creates a newElitisticListPopulationinstance.ListPopulation(List<Chromosome> chromosomes, int populationLimit)Creates a new ListPopulation instance.
-