org.jgap.impl |
Provides stock implementations of the various
sub-components that can be plugged-in or custom
implemented.
|
Java Source File Name | Type | Comment |
AllImplTests.java | Class | |
AveragingCrossoverOperator.java | Class | The averaging crossover operator randomly selects two Chromosomes from the
population and "mates" them by randomly picking a gene and then swapping that
gene and all subsequent genes between the two Chromosomes. |
AveragingCrossoverOperatorTest.java | Class | Tests the AveragingCrossoverOperator class. |
BestChromosomesSelector.java | Class | Implementation of a NaturalSelector that takes the top n chromosomes into
the next generation. |
BestChromosomesSelectorTest.java | Class | Tests the BestChromosomesSelector class. |
BooleanGene.java | Class | A Gene implementation that supports two possible values (alleles) for each
gene: true and false.
NOTE: Since this Gene implementation only supports two different
values (true and false), there's only a 50% chance that invocation
of the setToRandomValue() method will actually change the value of
this Gene (if it has a value). |
BooleanGeneTest.java | Class | Tests the BooleanGene class. |
BulkFitnessOffsetRemover.java | Class | Takes away the fitness offset of the population to evolve.
The fitness function values of the population of
org.jgap.IChromosome instances will start from a minimum of 1 afterwards.
The removal of an offset in the fitness values of a population strengthens
the "survival of the fittest" effect of a selector that performs selection
upon fitness values. |
BulkFitnessOffsetRemoverTest.java | Class | Tests for the BulkFitnessOffsetRemover class. |
CauchyRandomGenerator.java | Class | Cauchy probability density function (cumulative distribution function). |
CauchyRandomGeneratorTest.java | Class | Tests the CauchyRandomGenerator class. |
ChainOfSelectors.java | Class | Ordered chain of NaturalSelectors. |
ChainOfSelectorsTest.java | Class | Tests the ChainOfSelectors class. |
ChromosomePool.java | Class | Provides a pooling mechanism for Chromosome instances so that
discarded Chromosome instances can be recycled, thus saving memory and the
overhead of constructing new ones from scratch each time. |
ChromosomePoolTest.java | Class | Tests the ChromosomePool class. |
CompositeGene.java | Class | Ordered container for multiple genes
Has the same interface as a single gene and could be used accordingly.
Use the addGene(Gene) method to add single genes (possibly CompositeGenes)
after construction, an empty CompositeGene without genes makes no sense.
Beware that there are two equalities defined for a CompositeGene in respect
to its contained genes:
a) Two genes are (only) equal if they are identical
b) Two genes are (seen as) equal if their equals method returns true
This influences several methods such as addGene. |
CompositeGenePersistentReprTest.java | Class | Test persistent representation of the CompositeGene. |
CompositeGeneTest.java | Class | Tests the CompositeGene class. |
CrossoverOperator.java | Class | The crossover operator randomly selects two Chromosomes from the
population and "mates" them by randomly picking a gene and then
swapping that gene and all subsequent genes between the two
Chromosomes. |
CrossoverOperatorTest.java | Class | Tests the CrossoverOperator class. |
DefaultCloneHandler.java | Class | Default clone handler supporting IApplicationData as well as implementations
of Cloneable (for the latter: in case the clone-method is accessible via
reflection). |
DefaultCloneHandlerTest.java | Class | Tests the DefaultCloneHandler class. |
DefaultCompareToHandler.java | Class | Default implementation for comparing Comparables. |
DefaultCompareToHandlerTest.java | Class | Tests the DefaultCompareToHandler class. |
DefaultConfiguration.java | Class | The DefaultConfiguration class simplifies the JGAP configuration
process by providing default configuration values for many of the
configuration settings. |
DefaultConfigurationTest.java | Class | Tests the DefaultConfiguration class. |
DefaultCrossoverRateCalculator.java | Class | Default implementation of a dynamic CrossoverRateCalculator. |
DefaultCrossoverRateCalculatorTest.java | Class | Tests the DefaultCrossoverRateCalculator class. |
DefaultInitializer.java | Class | Default implementation for initializing Chromosomes. |
DefaultInitializerTest.java | Class | Tests the DefaultInitializer class. |
DefaultMutationRateCalculator.java | Class | Default implementation of a mutation rate calculcator. |
DefaultMutationRateCalculatorTest.java | Class | Tests the DefaultMutationRateCalculator class. |
DoubleGene.java | Class | A Gene implementation that supports a double values for its allele. |
DoubleGeneTest.java | Class | Tests the DoubleGene class. |
FittestPopulationMerger.java | Class | A implementation of the IPopulationMerger interface that merges two
populations as specified based on the fitness function, that is, the n
fittest chromosomes are returned in the new population, where n is supplied
by parameter. |
FittestPopulationMergerTest.java | Class | Tests the FittestPopulationMerger class. |
FixedBinaryGene.java | Class | A Gene implementation that supports two possible values (alleles, 1 and 0)
with a fixed length of alleles.
NOTE: Since this Gene implementation only supports two different
values (1 and 0), there's only a 50% chance that invocation
of the setToRandomValue() method will actually change the value of
this Gene (if it has a value). |
FixedBinaryGeneTest.java | Class | Tests the FixedBinaryGene class. |
GABreeder.java | Class | |
GaussianMutationOperator.java | Class | This genetic operator performs Gaussian mutation across all genes in a given
Chromosome. |
GaussianMutationOperatorTest.java | Class | Tests the GaussianMutationOperator class. |
GaussianRandomGenerator.java | Class | Gaussian deviation serving as basis for randomly finding a number. |
GaussianRandomGeneratorTest.java | Class | Tests the GaussianRandomGenerator class. |
GreedyCrossover.java | Class | The Greedy Crossover is a specific type of crossover. |
GreedyCrossoverTest.java | Class | Teste the GreedyCrossover class. |
HotBitsRandomGenerator.java | Class | |
IntegerGene.java | Class | A Gene implementation that supports an integer values for its allele. |
IntegerGeneTest.java | Class | |
InversionOperator.java | Class | The inversion operator randomly selects one chromosomes from the
population and inverses it by randomly picking a splitting locus on which
to swap the first part with the last part of the chromosome. |
InversionOperatorTest.java | Class | Tests the InversionOperator class. |
JGAPFactory.java | Class | Central factory for creating default objects to use, e.g. |
JGAPFactoryTest.java | Class | |
MapGene.java | Class | ATTENTION: This class is preliminary and subject of future adaptations! Use
with care or wait for a more mature version we are working on.
Creates a gene instance in which individual alleles have both a label (key)
and a value with a distinct meaning. |
MapGeneTest.java | Class | |
MutationOperator.java | Class | The mutation operator runs through the genes in each of the Chromosomes
in the population and mutates them in statistical accordance to the
given mutation rate. |
MutationOperatorTest.java | Class | Tests the MutationOperator class. |
NumberGene.java | Class | Base class for all Genes based on numbers. |
NumberGeneTest.java | Class | |
Pool.java | Class | A simple, generic pool class that can be used to pool any kind of object.
Objects can be released to this pool, either individually or as a
Collection, and then later acquired again. |
PoolTest.java | Class | |
RandomFitnessFunction.java | Class | |
RandomGeneratorForTesting.java | Class | A random generator only determined for testing purposes. |
RangedSwappingMutationOperator.java | Class | Swaps the genes instead of mutating them. |
SetGene.java | Class | ATTENTION: This class is preliminary and subject of future adaptations! Use
with care or wait for a more mature version we are working on.
Creates a gene instance in which individual alleles have both a label (key)
and a value with a distinct meaning. |
SetGeneTest.java | Class | Tests the SetGene class. |
StandardPostSelector.java | Class | Implementation of a NaturalSelector that is suited for being processed after
genetic operators have been executed. |
StaticFitnessFunction.java | Class | |
StockRandomGenerator.java | Class | The stock random generator uses the java.util.Random class to
provide a simple implementation of the RandomGenerator interface. |
StockRandomGeneratorTest.java | Class | Tests the StockRandomGenerator class. |
StringGene.java | Class | A Gene implementation that supports a string for its allele. |
StringGeneTest.java | Class | Tests the StringGene class. |
SwappingMutationOperator.java | Class | Swaps the genes instead of mutating them. |
SwappingMutationOperatorTest.java | Class | Tests the SwappingMutationOperator class. |
ThresholdSelector.java | Class | Implementation of a NaturalSelector that ensures a certain threshold of the
best chromosomes are taken to the next generation. |
ThresholdSelectorTest.java | Class | Tests the ThresholdSelector class. |
TournamentSelector.java | Class | Implementation of a NaturalSelector that plays tournaments to determine
the chromosomes to be taken to the next generation. |
TournamentSelectorTest.java | Class | Tests the TournamentSelector class. |
TwoWayMutationOperator.java | Class | Considers two levels of mutation. |
TwoWayMutationOperatorTest.java | Class | Tests the TwoWayMutationOperator class. |
WeightedRouletteSelector.java | Class | A basic implementation of NaturalSelector that models a roulette wheel.
When a Chromosome is added, it gets a number of "slots" on the wheel equal
to its fitness value. |
WeightedRouletteSelectorTest.java | Class | Tests the WeightedRouletteSelector class. |