lio.replacement
Interface Replacement
- All Superinterfaces:
- LiOResource
- All Known Implementing Classes:
- ElitistReplacement, SelectionReplacement
public interface Replacement
- extends LiOResource
This interface must be implemented for those objects whose task consist of
generating a new population from both the current and the former one.
These objects are mainly used in population based algorithms.
replace
Individual[] replace(Population current,
Population former)
- Generates a new population from the current and the former one.
The returned population can have either fixed or variable size
depending on the value of the variable varSize
- Parameters:
former
- The former population.current
- The current population.