示例#1
0
        private Chromosome <GeneType> ExecuteCrossOver(Chromosome <GeneType> Father, Chromosome <GeneType> Mother)
        {
            switch (Environment.TypeCrossover)
            {
            case TypeCrossover.CrossOverOnePoint:
                return(Father.CrossOverOnePoint(Mother));

            case TypeCrossover.CrossOverTwoPoints:
                return(Father.CrossOverTwoPoints(Mother));

            default:
                return(Father.CrossOverOnePoint(Mother));
            }
        }