Package smile.gap

Interface Fitness<T extends Chromosome<T>>

Type Parameters:
T - the type of Chromosome.

public interface Fitness<T extends Chromosome<T>>
A measure to evaluate the fitness of chromosomes.
  • Method Summary

    Modifier and Type
    Method
    Description
    double
    score(T chromosome)
    Returns the non-negative fitness value of a chromosome.
  • Method Details

    • score

      double score(T chromosome)
      Returns the non-negative fitness value of a chromosome. Large values indicate better fitness.
      Parameters:
      chromosome - the chromosome.
      Returns:
      the fitness score.