示例#1
0
        public static Individual Mutation(Individual ind, double mutationRate)
        {
            double random = r.NextDouble();

            if (random < mutationRate)
            {
                ind.ModifyGene(r.Next(ind.Length()));
            }

            return(ind);
        }