public interface Coupler
Coupler
determines couples that are used to create the offspring
for a given set of possible parents.Modifier and Type | Method and Description |
---|---|
java.util.Collection<org.opt4j.operators.crossover.Pair<org.opt4j.core.Individual>> |
getCouples(int size,
java.util.List<org.opt4j.core.Individual> parents)
Returns a list of
Individual -groups (couples) that are designated
to create offspring. |
java.util.Collection<org.opt4j.operators.crossover.Pair<org.opt4j.core.Individual>> getCouples(int size, java.util.List<org.opt4j.core.Individual> parents)
Individual
-groups (couples) that are designated
to create offspring.size
- the number of couples to createparents
- the parents