Interface FitnessEvaluator<T extends Comparable<T>>

Type Parameters:
T -
All Known Implementing Classes:
FitnessEvaluatorBulkAsync, FitnessEvaluatorSync, GPUFitnessEvaluator

public interface FitnessEvaluator<T extends Comparable<T>>
Facade to abstract the various ways that fitnesses could be evaluated
  • Method Summary

    Modifier and Type
    Method
    Description
    evaluate(long generation, List<Genotype> genotypes)
    Compute the fitness for a list of genotypes
    default void
     
    default void
     
  • Method Details

    • preEvaluation

      default void preEvaluation()
    • postEvaluation

      default void postEvaluation()
    • evaluate

      List<T> evaluate(long generation, List<Genotype> genotypes)
      Compute the fitness for a list of genotypes
      Parameters:
      genotypes - Population to evaluate
      Returns:
      Their associated fitnesses