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