Package | Description |
---|---|
org.biojavax.ga |
Classes to provide a genetic algorithm framework
|
org.biojavax.ga.functions |
GA functions
A genetic algorithm requires a number of functions.
|
org.biojavax.ga.impl |
Default implementations and abstract classes.
|
Modifier and Type | Method and Description |
---|---|
Population |
GeneticAlgorithm.getPopulation()
The registered
Population |
Modifier and Type | Method and Description |
---|---|
void |
Population.addOrganisms(Population orgs)
Adds the residents of one population to this one
|
void |
GeneticAlgorithm.setPopulation(Population pop)
Sets the
Population of Organisms to the
Algorithm. |
Modifier and Type | Method and Description |
---|---|
Population |
TournamentSelection.select(Population pop,
GeneticAlgorithm genAlg)
Standard call to select organisms, will select a number of Organisms
corresponding to 75 % of the population.
|
Population |
SelectionFunction.select(Population pop,
GeneticAlgorithm genAlg)
Selects a
Population of Organisms for
replication based on their fitness. |
Population |
SelectionFunction.Threshold.select(Population pop,
GeneticAlgorithm genAlg)
Selects individuals whose fitness (as determined by the
FitnessFunction ) is more than the cutoff. |
Population |
SelectionFunction.SelectAll.select(Population pop,
GeneticAlgorithm genAlg) |
Population |
ProportionalSelection.select(Population pop,
GeneticAlgorithm genAlg) |
Population |
TournamentSelection.selectNIndividuals(Population pop,
GeneticAlgorithm ga,
int n)
This method selects n Organism from the population it is given, using the
tournament selection method
|
Modifier and Type | Method and Description |
---|---|
double[] |
FitnessFunction.fitness(Organism org,
Population pop,
GeneticAlgorithm genAlg)
Calculates the fitness of
org . |
Population |
TournamentSelection.select(Population pop,
GeneticAlgorithm genAlg)
Standard call to select organisms, will select a number of Organisms
corresponding to 75 % of the population.
|
Population |
SelectionFunction.select(Population pop,
GeneticAlgorithm genAlg)
Selects a
Population of Organisms for
replication based on their fitness. |
Population |
SelectionFunction.Threshold.select(Population pop,
GeneticAlgorithm genAlg)
Selects individuals whose fitness (as determined by the
FitnessFunction ) is more than the cutoff. |
Population |
SelectionFunction.SelectAll.select(Population pop,
GeneticAlgorithm genAlg) |
Population |
ProportionalSelection.select(Population pop,
GeneticAlgorithm genAlg) |
Population |
TournamentSelection.selectNIndividuals(Population pop,
GeneticAlgorithm ga,
int n)
This method selects n Organism from the population it is given, using the
tournament selection method
|
Modifier and Type | Class and Description |
---|---|
class |
AbstractPopulation
Most Population implementations will want to inherit from here.
|
class |
SimplePopulation
Simple concrete implementation of the
Population interface
Internally the SimplePopulation store Organisms in a HashMap |
Modifier and Type | Field and Description |
---|---|
protected Population |
AbstractGeneticAlgorithm.population |
Modifier and Type | Method and Description |
---|---|
Population |
AbstractGeneticAlgorithm.getPopulation() |
Modifier and Type | Method and Description |
---|---|
void |
AbstractPopulation.addOrganisms(Population orgs) |
void |
AbstractGeneticAlgorithm.setPopulation(Population pop) |
Constructor and Description |
---|
SimpleGeneticAlgorithm(Population pop,
MutationFunction mutFunc,
CrossOverFunction xFunc,
SelectionFunction selFunc) |
Copyright © 2014 BioJava. All rights reserved.