xegaGaGeneMapIdentity: Map the bit strings of a binary gene to an identical bit...

View source: R/xegaGaDecode.R

xegaGaGeneMapIdentityR Documentation

Map the bit strings of a binary gene to an identical bit vector.

Description

xegaGaGeneMapIdentity() maps the bit strings of a binary vector to an identical binary vector. Faster for all problems with single-bit coding. Examples: Knapsack, Number Partitioning into 2 partitions.

Usage

xegaGaGeneMapIdentity(gene, penv)

Arguments

gene

A binary gene (the genotype).

penv

A problem environment.

Value

A binary gene (the phenotype).

See Also

Other Decoder: xegaGaDecodeGene(), xegaGaGeneMap(), xegaGaGeneMapGray(), xegaGaGeneMapPerm()

Examples

gene<-xegaGaInitGene(lFxegaGaGene)
xegaGaGeneMapIdentity(gene$gene1, lFxegaGaGene$penv)


xegaGaGene documentation built on April 16, 2025, 5:11 p.m.