Class SpecificationFitness

    • Constructor Detail

      • SpecificationFitness

        public SpecificationFitness()
    • Method Detail

      • calculate

        public Double calculate​(SpecificationChromosome chromosome)
        Description copied from interface: com.lagodiuk.ga.Fitness
        Assume that chromosome1 is better than chromosome2
        fit1 = calculate(chromosome1)
        fit2 = calculate(chromosome2)
        So the following condition must be true
        fit1.compareTo(fit2) <= 0
        Specified by:
        calculate in interface com.lagodiuk.ga.Fitness<SpecificationChromosome,​Double>