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
Nested Classes -
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionstatic DeleteNLast.Builderbuilder()default voidcheck()static DeleteNLastof(double weakRatio, SelectionPolicy selectionPolicy) Describe which offsprings to select for the next generationdefault doubleHow 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
-