Package edu.cnu.mdi.sim.ga
Interface SelectionOperator<T extends GASolution<T>>
- All Known Implementing Classes:
TournamentSelection
public interface SelectionOperator<T extends GASolution<T>>
Interface for selection operators in genetic algorithms. A selection operator defines how parents are selected from the population for crossover.
The GA will call this interface to select parents based on their fitness.
-
Method Summary
-
Method Details
-
select
Select one parent from an aligned population and fitness array.- Parameters:
population- candidate individualsfitnesses- fitness at each corresponding population indexrng- source of randomness- Returns:
- selected individual
-