ChromosomeExtensions.AnyHasRepeatedGene Method

GeneticSharp

ChromosomeExtensions AnyHasRepeatedGene Method GeneticSharp
Checks if any of the chromosomes has repeated gene.

Namespace: GeneticSharp.Domain.Chromosomes
Assembly: GeneticSharp.Domain (in GeneticSharp.Domain.dll) Version: 1.0.5010.36434

Syntax

public static bool AnyHasRepeatedGene(
	this IList<IChromosome> chromosomes
)
public static bool AnyHasRepeatedGene(
	this IList<IChromosome> chromosomes
)

Parameters

chromosomes
Type: OnlineSystem.Collections.Generic IList IChromosome 
Chromosomes.

Return Value

Type: OnlineBoolean
true, if chromosome has repeated gene, false otherwise.

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type OnlineIList IChromosome . When you use instance method syntax to call this method, omit the first parameter. For more information, see OnlineExtension Methods (Visual Basic) or OnlineExtension Methods (C# Programming Guide).
Remarks

This can happen when used with a IMutation's implementation that not keep the chromosome ordered, like OnePointCrossover, TwoPointCrossover and UniformCrossover is combined with a ICrossover's implementation that need ordered chromosomes, like OX1 and PMX.
See Also