public final class RankPreselection<R extends java.io.Serializable,T extends Solution<R>> extends java.lang.Object implements Preselection<T>
Rank preselection, acting as a decorator on some other preselection.
Ranks the given population, then update each solution’s evaluation to be inversely proportional to that solution’s rank, i.e. the worst will have fitness 1 and the best will have fitness N.
Modifier and Type | Class and Description |
---|---|
static interface |
io.vavr.Lambda.Memoized |
Modifier and Type | Field and Description |
---|---|
private Preselection<T> |
preselection |
private static long |
serialVersionUID |
Constructor and Description |
---|
RankPreselection(Preselection<T> preselection) |
Modifier and Type | Method and Description |
---|---|
default boolean |
isMemoized() |
io.vavr.collection.List<T> |
preselect(io.vavr.collection.List<T> population) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
apply
private static final long serialVersionUID
private final Preselection<T extends Solution<R>> preselection
public RankPreselection(Preselection<T> preselection)