Package org.biojavax.ga.functions
Class ProportionalSelection
java.lang.Object
org.biojavax.ga.functions.ProportionalSelection
- All Implemented Interfaces:
SelectionFunction
A Selection function that determines the proportion of individuals in a new population proportionally to their fitness. The population size is not allowed to grow. Individuals are randomly selected for replication, those with greater fitness tend to replicate more often.
- Version:
- 1.1
- Author:
- Mark Schreiber, Susanne Merz, Andreas Dräger
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.biojavax.ga.functions.SelectionFunction
SelectionFunction.SelectAll, SelectionFunction.Threshold -
Field Summary
Fields inherited from interface org.biojavax.ga.functions.SelectionFunction
DEFAULT -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionselect(Population pop, GeneticAlgorithm genAlg) Selects aPopulationofOrganismsfor replication based on their fitness.
-
Constructor Details
-
ProportionalSelection
public ProportionalSelection()
-
-
Method Details
-
select
Description copied from interface:SelectionFunctionSelects aPopulationofOrganismsfor replication based on their fitness.- Specified by:
selectin interfaceSelectionFunction- 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.
-