Пример #1
0
        public override BitVectorChromosome Mutate(BitVectorChromosome chromosome)
        {
            var pos = Random.GetInt(0, chromosome.Genes.Length);

            chromosome.Genes[pos] = !chromosome.Genes[pos];
            return(chromosome);
        }
Пример #2
0
 public override BitVectorChromosome Mutate(BitVectorChromosome chromosome)
 {
     return(chromosome.DeepClone());
 }