Uses of Class
org.apache.commons.math3.genetics.Chromosome
-
Packages that use Chromosome Package Description org.apache.commons.math3.genetics This package provides Genetic Algorithms components and implementations. -
-
Uses of Chromosome in org.apache.commons.math3.genetics
Subclasses of Chromosome in org.apache.commons.math3.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.Fields in org.apache.commons.math3.genetics declared as Chromosome Modifier and Type Field Description private ChromosomeChromosomePair. firstthe first chromosome in the pair.private ChromosomeChromosomePair. secondthe second chromosome in the pair.Fields in org.apache.commons.math3.genetics with type parameters of type Chromosome Modifier and Type Field Description private java.util.List<Chromosome>ListPopulation. chromosomesList of chromosomesMethods in org.apache.commons.math3.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.private ChromosomeTournamentSelection. tournament(ListPopulation population)Helper forTournamentSelection.select(Population).Methods in org.apache.commons.math3.genetics that return types with arguments of type Chromosome Modifier and Type Method Description protected java.util.List<Chromosome>ListPopulation. getChromosomeList()Access the list of chromosomes.java.util.List<Chromosome>ListPopulation. getChromosomes()Returns an unmodifiable list of the chromosomes in this population.java.util.Iterator<Chromosome>ListPopulation. iterator()Returns an iterator over the unmodifiable list of chromosomes.Methods in org.apache.commons.math3.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.math3.genetics with type arguments of type Chromosome Modifier and Type Method Description voidListPopulation. addChromosomes(java.util.Collection<Chromosome> chromosomeColl)Add aCollectionof chromosomes to thisPopulation.voidListPopulation. setChromosomes(java.util.List<Chromosome> chromosomes)Deprecated.useListPopulation.addChromosomes(Collection)insteadConstructors in org.apache.commons.math3.genetics with parameters of type Chromosome Constructor Description ChromosomePair(Chromosome c1, Chromosome c2)Create a chromosome pair.Constructor parameters in org.apache.commons.math3.genetics with type arguments of type Chromosome Constructor Description ElitisticListPopulation(java.util.List<Chromosome> chromosomes, int populationLimit, double elitismRate)Creates a newElitisticListPopulationinstance.ListPopulation(java.util.List<Chromosome> chromosomes, int populationLimit)Creates a new ListPopulation instance.
-