A C E F G M N O R S T W

A

add(Chromosome, int) - Method in interface org.jgap.NaturalSelector
Add a Chromosome instance and corresponding fitness value to this selector's working pool of Chromosomes.
add(Chromosome, int) - Method in class org.jgap.WeightedRouletteSelector
 

C

Chromosome - class org.jgap.Chromosome.
Chromosomes represent fixed-length collections of genes.
Chromosome(BitSet, int) - Constructor for class org.jgap.Chromosome
Constructs this Chromosome instance with the given set of genes.
Chromosome(BitSet, int, int) - Constructor for class org.jgap.Chromosome
Constructs this Chromosome instance with the given set of genes and the given mutation rate.
crossover(Chromosome) - Method in class org.jgap.Chromosome
Performs basic crossover between this Chromosome instance and the given instance.

E

empty() - Method in interface org.jgap.NaturalSelector
Empty out the working pool of Chromosomes.
empty() - Method in class org.jgap.WeightedRouletteSelector
 
evaluate(Chromosome) - Method in interface org.jgap.FitnessFunction
Determine the fitness of the given Chromosome instance.
evolve() - Method in class org.jgap.Genotype
Evolve the collection of Chromosomes within this Genotype.

F

FitnessFunction - interface org.jgap.FitnessFunction.
Fitness functions are used to determine how optimal a particular solution is relative to other solutions.

G

Genotype - class org.jgap.Genotype.
Genotypes represent fixed-length collections or "populations" of Chromosomes.
Genotype(Chromosome[], FitnessFunction, NaturalSelector) - Constructor for class org.jgap.Genotype
Constructs a new Genotype instance with the given array of Chromosomes and the given fitness function.
getAllele(int) - Method in class org.jgap.Chromosome
Returns the allele (value) of the gene at the given locus (index) within the Chromosome.
getChromosomes() - Method in class org.jgap.Genotype
Retrieve the array of Chromosomes that make up this Genotype instance.
getFittestChromosome() - Method in class org.jgap.Genotype
Retrieve the Chromosome in the population with the highest fitness value.

M

mutate() - Method in class org.jgap.Chromosome
Runs through the genes of this Chromosome, possibly mutating some in the process.

N

NaturalSelector - interface org.jgap.NaturalSelector.
Natural selectors are responsible for actually selecting a specified number of Chromosome specimens from a population, using the fitness values as a guide.

O

org.jgap - package org.jgap
 

R

randomInitialChromosome(int) - Static method in class org.jgap.Chromosome
Convenience method that returns a newly constructed Chromosome instance of the given size with a random population of genes.
randomInitialChromosome(int, int) - Static method in class org.jgap.Chromosome
Convenience method that returns a newly constructed Chromosome instance of the given size with a random population of genes and instantiated with the given mutation rate.
randomInitialGenotype(int, int, FitnessFunction, NaturalSelector) - Static method in class org.jgap.Genotype
Convenience method that returns a newly constructed Genotype instance consisting of the given number of Chromosomes of the given size and instantiated with the given fitness function.
randomInitialGenotype(int, int, int, FitnessFunction, NaturalSelector) - Static method in class org.jgap.Genotype
Convenience method that returns a newly constructed Genotype with the given fitness function and consisting of the given number of Chromosomes instantiated with the given size and mutation rate.
reproduce() - Method in class org.jgap.Chromosome
Returns a copy of this Chromosome.

S

select(int) - Method in interface org.jgap.NaturalSelector
Select a given number of Chromosomes from the pool that will continue to survive.
select(int) - Method in class org.jgap.WeightedRouletteSelector
 
size() - Method in class org.jgap.Chromosome
Returns the size of this Chromosome (the number of genes).

T

toString() - Method in class org.jgap.Chromosome
Returns a string representation of this Chromosome, useful for debugging purposes.
toString() - Method in class org.jgap.Genotype
Return a string representation of this Genotype instance, useful for debugging purposes.

W

WeightedRouletteSelector - class org.jgap.WeightedRouletteSelector.
A basic implementation of NaturalSelector that models a roulette wheel.
WeightedRouletteSelector() - Constructor for class org.jgap.WeightedRouletteSelector
 

A C E F G M N O R S T W