Package org.biojavax.ga.functions
Interface SelectionFunction
-
- All Known Implementing Classes:
ProportionalSelection,SelectionFunction.SelectAll,SelectionFunction.Threshold,TournamentSelection
public interface SelectionFunction
Selects Organisms for Replication and returns the offspring.- Since:
- 1.5
- Version:
- 1.1
- Author:
- Mark Schreiber, Susanne Merz, Andreas Dräger
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static classSelectionFunction.SelectAllstatic classSelectionFunction.ThresholdSelects individuals who's fitness exceeds a threshold value.
-
Field Summary
Fields Modifier and Type Field Description static SelectionFunctionDEFAULTSelects all members of a population for replication
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Populationselect(Population pop, GeneticAlgorithm genAlg)Selects aPopulationofOrganismsfor replication based on their fitness.
-
-
-
Field Detail
-
DEFAULT
static final SelectionFunction DEFAULT
Selects all members of a population for replication
-
-
Method Detail
-
select
Population select(Population pop, GeneticAlgorithm genAlg) throws ChangeVetoException
Selects aPopulationofOrganismsfor replication based on their fitness.- Parameters:
pop- thePopulationto select from.genAlg- the parentGeneticAlgorithm.- Returns:
- the
Organisms selected - Throws:
ChangeVetoException- if the function attempts to change the population and it is vetoed.
-
-