IChromosome.ReplaceGenes Method

GeneticSharp

IChromosome ReplaceGenes Method GeneticSharp
Replaces the genes starting in the specified index.

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

Syntax

void ReplaceGenes(
	int startIndex,
	Gene[] genes
)
void ReplaceGenes(
	int startIndex,
	Gene[] genes
)

Parameters

startIndex
Type: OnlineSystem Int32
Start index.
genes
Type:  GeneticSharp.Domain.Chromosomes Gene 
Genes.
Remarks

The genes to be replaced can't be greater than the available space between the start index and the end of the chromosome.
See Also