public class CouplerDefault extends Object implements Coupler
CouplerDefault uses the pairs based on their index in the list:
p0+p1,p2+p3,etc..| Constructor and Description |
|---|
CouplerDefault() |
| Modifier and Type | Method and Description |
|---|---|
Collection<Pair<Individual>> |
getCouples(int size,
List<Individual> parents)
Returns a list of
Individual-groups (couples) that are designated
to create offspring. |
public Collection<Pair<Individual>> getCouples(int size, List<Individual> parents)
CouplerIndividual-groups (couples) that are designated
to create offspring.getCouples in interface Couplersize - the number of couples to createparents - the parents