00001 using System; 00002 using System.Collections.Generic; 00003 using System.Linq; 00004 using System.Text; 00005 00007 namespace GEP.Core.Common.FitnessFunctions 00008 { 00012 [Serializable] 00013 public abstract class FitnessFunction 00014 { 00020 public int _teachingVariableCasesStartIndex; 00026 public int _teachingVariableCasesEndIndex; 00033 public int _testVariableCasesStartIndex; 00040 public int _testVariableCasesEndIndex; 00057 public int _maxN_CasesOfNaNorInfinityToIgnore; 00058 00093 public FitnessFunction(int teachingVariableCasesStartIndex, int teachingVariableCasesEndIndex, 00094 int testVariableCasesStartIndex, int testVariableCasesEndIndex, int maxN_CasesOfNaNorInfinityToIgnore) 00095 { 00096 _teachingVariableCasesStartIndex = teachingVariableCasesStartIndex; 00097 _teachingVariableCasesEndIndex = teachingVariableCasesEndIndex; 00098 _testVariableCasesStartIndex = testVariableCasesStartIndex; 00099 _testVariableCasesEndIndex = testVariableCasesEndIndex; 00100 _maxN_CasesOfNaNorInfinityToIgnore = maxN_CasesOfNaNorInfinityToIgnore; 00101 } 00102 00111 public abstract void SetFitness(Genotype genotype, bool isTest); 00112 } 00113 }