xegaGaGeneMapPerm {xegaGaGene}R 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(), xegaGaGeneMapGray(), xegaGaGeneMapIdentity(), xegaGaGeneMap()

Examples

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


[Package xegaGaGene version 1.0.0.1 Index]