Interface Fitness


  • public interface Fitness
    Class to handle the fitness specification for the problem.
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      double fitness​(Chromosome c)
      evaluate the fitness of the passed chromosome.
      boolean isBetter​(double fitness, double best)
      is this fitness better than the best fitness known?
      double theWorst()
      the worst possible value OO or -OO
    • Method Detail

      • fitness

        double fitness​(Chromosome c)
        evaluate the fitness of the passed chromosome.
        Parameters:
        c - c
        Returns:
        fitness value for a given Chromosome
      • isBetter

        boolean isBetter​(double fitness,
                         double best)
        is this fitness better than the best fitness known?
        Parameters:
        fitness - fitness
        best - best
        Returns:
        true is this fitness better than the best fitness and false otherwise
      • theWorst

        double theWorst()
        the worst possible value OO or -OO
        Returns:
        worst possible value OO or -OO