Package | Description |
---|---|
gov.sandia.cognition.learning.algorithm.genetic |
Provides a genetic algorithm implementation.
|
gov.sandia.cognition.learning.algorithm.genetic.reproducer |
Provides reproduction functions for use with a Genetic Algorithm.
|
gov.sandia.cognition.learning.algorithm.genetic.selector |
Provides selection functions for a Genetic Algorithm.
|
Modifier and Type | Method and Description |
---|---|
EvaluatedGenome<GenomeType> |
GeneticAlgorithm.getBestSoFar()
Gets the best genome found so far.
|
protected EvaluatedGenome<GenomeType> |
GeneticAlgorithm.searchForBetter(EvaluatedGenome<GenomeType> bestSoFar,
java.util.Collection<EvaluatedGenome<GenomeType>> population)
Searches the provided population of genomes for one whose cost is lower
than the provided best so far genome.
|
Modifier and Type | Method and Description |
---|---|
java.util.ArrayList<EvaluatedGenome<GenomeType>> |
ParallelizedGeneticAlgorithm.EvaluateGenome.call() |
protected java.util.ArrayList<EvaluatedGenome<GenomeType>> |
GeneticAlgorithm.evaluatePopulation(java.util.Collection<GenomeType> population)
Converts a population of genomes into evaluated genomes.
|
protected java.util.ArrayList<EvaluatedGenome<GenomeType>> |
ParallelizedGeneticAlgorithm.evaluatePopulation(java.util.Collection<GenomeType> population)
Converts a population of genomes into evaluated genomes.
|
java.util.Collection<EvaluatedGenome<GenomeType>> |
GeneticAlgorithm.getPopulation()
Gets the population of genomes.
|
Modifier and Type | Method and Description |
---|---|
protected EvaluatedGenome<GenomeType> |
GeneticAlgorithm.searchForBetter(EvaluatedGenome<GenomeType> bestSoFar,
java.util.Collection<EvaluatedGenome<GenomeType>> population)
Searches the provided population of genomes for one whose cost is lower
than the provided best so far genome.
|
void |
GeneticAlgorithm.setBestSoFar(EvaluatedGenome<GenomeType> bestSoFar)
Sets the best genome found so far.
|
Modifier and Type | Method and Description |
---|---|
protected EvaluatedGenome<GenomeType> |
GeneticAlgorithm.searchForBetter(EvaluatedGenome<GenomeType> bestSoFar,
java.util.Collection<EvaluatedGenome<GenomeType>> population)
Searches the provided population of genomes for one whose cost is lower
than the provided best so far genome.
|
void |
GeneticAlgorithm.setPopulation(java.util.Collection<EvaluatedGenome<GenomeType>> population)
Sets the population of genomes.
|
Modifier and Type | Method and Description |
---|---|
java.util.ArrayList<GenomeType> |
CrossoverReproducer.reproduce(java.util.Collection<EvaluatedGenome<GenomeType>> genomes)
Produces a new population of genomes from the supplied population using
crossover.
|
java.util.ArrayList<GenomeType> |
MultiReproducer.reproduce(java.util.Collection<EvaluatedGenome<GenomeType>> genomes)
Applies the supplied reproducers to the population of genomes.
|
java.util.Collection<GenomeType> |
MutationReproducer.reproduce(java.util.Collection<EvaluatedGenome<GenomeType>> genomes)
Produces a new mutated population based on the supplied population.
|
java.util.Collection<GenomeType> |
Reproducer.reproduce(java.util.Collection<EvaluatedGenome<GenomeType>> genomes)
Applies a reproduction algorithm to the given collection of genomes and
their associated score from the cost function.
|
Modifier and Type | Method and Description |
---|---|
java.util.Collection<EvaluatedGenome<GenomeType>> |
Selector.select(java.util.Collection<EvaluatedGenome<GenomeType>> genomes)
Selects and returns a portion of the given population.
|
java.util.Collection<EvaluatedGenome<GenomeType>> |
TournamentSelector.select(java.util.Collection<EvaluatedGenome<GenomeType>> genomes)
Uses tournament selection to create a new population.
|
Modifier and Type | Method and Description |
---|---|
java.util.Collection<GenomeType> |
AbstractSelector.reproduce(java.util.Collection<EvaluatedGenome<GenomeType>> genomes)
Applies the selection algorithm to the given collection of genomes and
their associated score from the cost function.
|
java.util.Collection<EvaluatedGenome<GenomeType>> |
Selector.select(java.util.Collection<EvaluatedGenome<GenomeType>> genomes)
Selects and returns a portion of the given population.
|
java.util.Collection<EvaluatedGenome<GenomeType>> |
TournamentSelector.select(java.util.Collection<EvaluatedGenome<GenomeType>> genomes)
Uses tournament selection to create a new population.
|