Package org.opt4j.optimizer.ea
Interface Coupler
-
- All Known Implementing Classes:
CouplerDefault
,CouplerRandom
,CouplerUnique
public interface Coupler
TheCoupler
determines couples that are used to create the offspring for a given set of possible parents.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Collection<Pair<Individual>>
getCouples(int size, List<Individual> parents)
Returns a list ofIndividual
-groups (couples) that are designated to create offspring.
-
-
-
Method Detail
-
getCouples
Collection<Pair<Individual>> getCouples(int size, List<Individual> parents)
Returns a list ofIndividual
-groups (couples) that are designated to create offspring.- Parameters:
size
- the number of couples to createparents
- the parents- Returns:
- the selected couples
-
-