public interface Mating
Mating
interface is used to create offspring from a given set of
parents.Modifier and Type | Method and Description |
---|---|
java.util.Collection<org.opt4j.core.Individual> |
getOffspring(int size,
java.util.Collection<org.opt4j.core.Individual> parents)
Creates offspring from a given set of parents.
|
java.util.Collection<org.opt4j.core.Individual> |
getOffspring(int size,
org.opt4j.core.Individual... parents)
Creates offspring from a given set of parents.
|
java.util.Collection<org.opt4j.core.Individual> getOffspring(int size, org.opt4j.core.Individual... parents)
size
- the number of individuals to createparents
- the parentsjava.util.Collection<org.opt4j.core.Individual> getOffspring(int size, java.util.Collection<org.opt4j.core.Individual> parents)
size
- the number of individuals to createparents
- the parents