1 /* 2 * This file is part of JGAP. 3 * 4 * JGAP offers a dual license model containing the LGPL as well as the MPL. 5 * 6 * For licencing information please see the file license.txt included with JGAP 7 * or have a look at the top of class org.jgap.Chromosome which representatively 8 * includes the JGAP license policy applicable for any file delivered with JGAP. 9 */ 10 package org.jgap.gp; 11 12 /** 13 * Interface for a fitness evaluator used in a Genotype to determine how to 14 * interpret the fitness value. The fitness value can either be interpreted 15 * straight forward as a fitness indicator (the higher the better). Or it could 16 * be seen as a defect rate (the lower the better). 17 * 18 * @author Klaus Meffert 19 * @since 3.0 20 */ 21 public interface IGPFitnessEvaluator 22 extends java.io.Serializable { 23 /** String containing the CVS revision. Read out via reflection!*/ 24 final static String CVS_REVISION = "$Revision: 1.5 $"; 25 26 /** 27 * Compares the first given fitness value with the second and returns true 28 * if the first one is fitter than the second one. Otherwise returns false 29 * @param a_fitness_value1 first fitness value 30 * @param a_fitness_value2 second fitness value 31 * @return true: first fitness value fitter than second 32 * 33 * @author Klaus Meffert 34 * @since 2.0 (until 1.1: input types int) 35 */ 36 boolean isFitter(double a_fitness_value1, double a_fitness_value2); 37 38 boolean isFitter(IGPProgram a_prog1, IGPProgram a_prog2); 39 } 40