Permalink
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
23 lines (22 sloc) 1.07 KB
using System.Collections.Generic;
using GeneticSharp.Domain.Chromosomes;
using GeneticSharp.Domain.Populations;
namespace GeneticSharp.Domain.Selections
{
/// <summary>
/// Defines a interface for selection.
/// Selection is the stage of a genetic algorithm in which individual genomes are chosen from a population for later breeding (recombination or crossover).
/// <see href="http://en.wikipedia.org/wiki/Selection_(genetic_algorithm)">Wikipedia</see>
/// <see href=" http://www.ijest.info/docs/IJEST11-03-05-190.pdf">A Review of Selection Methods in Genetic Algorithm</see>
/// </summary>
public interface ISelection
{
/// <summary>
/// Selects the number of chromosomes from the generation specified.
/// </summary>
/// <returns>The selected chromosomes.</returns>
/// <param name="number">The number of chromosomes to select.</param>
/// <param name="generation">The generation where the selection will be made.</param>
IList<IChromosome> SelectChromosomes(int number, Generation generation);
}
}