xegaGaGeneMapPerm: Map the bit strings of a binary gene to a permutation.

View source: R/xegaGaDecode.R

xegaGaGeneMapPermR Documentation

Map the bit strings of a binary gene to a permutation.

Description

xegaGaGeneMapPerm() maps the bit strings of a binary string to a permutation of integers. Example: Traveling Salesman Problem (TSP).

Usage

xegaGaGeneMapPerm(gene, penv)

Arguments

gene

A binary gene (the genotype).

penv

A problem environment.

Value

A permutation (the decoded gene (the phenotype))

See Also

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

Examples

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


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