Package org.opt4j.optimizer.ea
Interface Mating
- All Known Implementing Classes:
MatingCrossoverMutate
public interface Mating
The
Mating interface is used to create offspring from a given set of
parents.-
Method Summary
Modifier and TypeMethodDescriptiongetOffspring(int size, Collection<Individual> parents) Creates offspring from a given set of parents.getOffspring(int size, Individual... parents) Creates offspring from a given set of parents.
-
Method Details
-
getOffspring
Creates offspring from a given set of parents.- Parameters:
size- the number of individuals to createparents- the parents- Returns:
- the offspring
-
getOffspring
Creates offspring from a given set of parents.- Parameters:
size- the number of individuals to createparents- the parents- Returns:
- the offspring
-