Class DoubleTournament<T extends Comparable<T>>

java.lang.Object
net.bmahe.genetics4j.core.spec.selection.DoubleTournament<T>
All Implemented Interfaces:
SelectionPolicy
Direct Known Subclasses:
ImmutableDoubleTournament

@Immutable public abstract class DoubleTournament<T extends Comparable<T>> extends Object implements SelectionPolicy
  • Constructor Details

    • DoubleTournament

      public DoubleTournament()
  • Method Details

    • fitnessTournament

      @Parameter public abstract Tournament<T> fitnessTournament()
    • parsimonyComparator

      @Parameter public abstract Comparator<Individual<T>> parsimonyComparator()
    • parsimonyTournamentSize

      @Parameter public abstract double parsimonyTournamentSize()
    • doFitnessFirst

      @Default public boolean doFitnessFirst()
    • check

      @Check public void check()
    • of

      public static <U extends Comparable<U>> DoubleTournament<U> of(Tournament<U> fitnessTournament, Comparator<Individual<U>> parsimonyComparator, double parsimonyTournamentSize)