/// <summary> /// Performs elitizmus. /// </summary> /// <param name="offspring">Children.</param> /// <param name="parents">Parents.</param> /// <returns>Offspring</returns> protected IList <IIndividual> SelectElite(IList <IIndividual> offspring, IList <IIndividual> parents) { return(elitizmus.EliteIndividuals(Population.Size, offspring, parents)); }
/// <summary> /// Reisert old ind to new gen. /// </summary> /// <param name="population">Population info</param> /// <param name="offspring">New gen.</param> /// <param name="parents">Parents</param> /// <returns></returns> public IList <IIndividual> Reinsert(IPopulation population, IList <IIndividual> offspring, IList <IIndividual> parents) { return(elite.EliteIndividuals(population.Size, offspring, parents)); }