Interface DeleteNLast
- All Superinterfaces:
ReplacementStrategy
- All Known Implementing Classes:
ImmutableDeleteNLast
Delete N Last
This replacement strategy deletes the N weakest individuals and replace them with the best offsprings
-
Nested Class Summary
-
Field Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic DeleteNLast.Builder
builder()
default void
check()
static DeleteNLast
of
(double weakRatio, SelectionPolicy selectionPolicy) Describe which offsprings to select for the next generationdefault double
How many weakest individuals to consider for replacement
-
Field Details
-
DEFAULT_WEAK_RATIO
static final double DEFAULT_WEAK_RATIO- See Also:
-
-
Method Details
-
weakRatio
@Default @Parameter default double weakRatio()How many weakest individuals to consider for replacement- Returns:
-
offspringSelectionPolicy
Describe which offsprings to select for the next generation- Returns:
-
check
@Check default void check() -
builder
-
of
-