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; }
/// <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; }
/// <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; }