Beispiel #1
0
        public IGenome CreateOffspring_Asexual(NeatParameters neatParameters, IdGenerator idGen, Hashtable newNeuronTable, Hashtable newConnectionTable)
        {
            // Make an exact copy this Genome.
            NeatGenome offspring = new NeatGenome(this, idGen.NextGenomeId);

            // Mutate the new genome.
            //WIN acknowledges any connection or node mutations, but doesn't save any other mutations
            offspring.Mutate(neatParameters, idGen, newNeuronTable, newConnectionTable);

            return offspring;
        }
Beispiel #2
0
		/// <summary>
		/// Asexual reproduction with built in mutation.
		/// </summary>
		/// <returns></returns>
		public override IGenome CreateOffspring_Asexual(EvolutionAlgorithm ea)
		{
			// Make an exact copy this Genome.
			NeatGenome offspring = new NeatGenome(this, ea.NextGenomeId);

			// Mutate the new genome.
			offspring.Mutate(ea);
			return offspring;
		}
Beispiel #3
0
        /// <summary>
        /// Asexual reproduction with built in mutation.
        /// </summary>
        /// <returns></returns>
        public override IGenome CreateOffspring_Asexual(EvolutionAlgorithm ea)
        {
            // Make an exact copy this Genome.
            NeatGenome offspring = new NeatGenome(this, ea.NextGenomeId);

            // Mutate the new genome.
            offspring.Mutate(ea.NeatParameters, ea.Population.IdGenerator, ea.NewNeuronGeneStructTable, ea.NewConnectionGeneTable);
            return offspring;
        }