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 ClassesModifier and TypeInterfaceDescriptionstatic final class
static final class
Selects individuals who's fitness exceeds a threshold value. -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final SelectionFunction
Selects all members of a population for replication -
Method Summary
Modifier and TypeMethodDescriptionselect
(Population pop, GeneticAlgorithm genAlg) Selects aPopulation
ofOrganisms
for replication based on their fitness.
-
Field Details
-
DEFAULT
Selects all members of a population for replication
-
-
Method Details
-
select
Selects aPopulation
ofOrganisms
for replication based on their fitness.- Parameters:
pop
- thePopulation
to select from.genAlg
- the parentGeneticAlgorithm
.- Returns:
- the
Organism
s selected - Throws:
ChangeVetoException
- if the function attempts to change the population and it is vetoed.
-