src/GenFx/Population.cs
/// <summary>
/// Creates the collection of <see cref="GeneticEntity"/> objects contained by this population.
/// </summary>
/// <remarks>
/// <para>The default implementation of this method creates X <see cref="GeneticEntity"/> objects
/// where X is equal to <see cref="MinimumPopulationSize"/>.</para>
/// <para><b>Notes to implementers:</b> This method can be overriden in a derived class
/// to customize how a population is filled with <see cref="GeneticEntity"/> objects
/// or how those <see cref="GeneticEntity"/> objects are created.</para>
/// </remarks>
Creates the collection of  objects contained by this population.
Creates the collection of objects contained by this population .
protected virtual Task InitializeCoreAsync()
        {
            this.AssertIsInitialized();
            for (int i = 0; i < this.Algorithm!.PopulationSeed!.MinimumPopulationSize; i++)
            {
                GeneticEntity entity = (GeneticEntity)this.Algorithm.GeneticEntitySeed!.CreateNewAndInitialize();
                this.geneticEntities.Add(entity);
            }
            return Task.FromResult(true);
        }
protected virtual Task InitializeCoreAsync ( ) { this . AssertIsInitialized ( ) ; for ( int i = 0 ; i < this . Algorithm ! . PopulationSeed ! . MinimumPopulationSize ; i ++ ) { GeneticEntity entity = ( GeneticEntity ) this . Algorithm . GeneticEntitySeed ! . CreateNewAndInitialize ( ) ; this . geneticEntities . Add ( entity ) ; } return Task . FromResult ( true ) ; }
Creates the collection of  objects contained by this population.
Creates the collection of objects contained by this population .
remarks
The default implementation of this method creates X  objects
where X is equal to .Notes to implementers: objects
or how those  objects are created.
The default implementation of this method creates X objects where X is equal to . Notes to implementers : objects or how those objects are created .