Learn R Programming

xegaPermGene (version 1.0.0.1)

xegaPermInitGene: Initialize a gene with a permutation of integers

Description

xegaPermInitGene generates a random permutation with a given length n.

Usage

xegaPermInitGene(lF)

Value

A permutation gene.

Arguments

lF

Local configuration of the genetic algorithm.

Details

In the permutation representation of package xegaPerm, a gene is a list with

  1. $evaluated: Boolean: TRUE if the fitness is known.

  2. $fit: The fitness of the genotype of $gene1.

  3. $gene1: The permutation (the genotype).

Examples

Run this code
xegaPermInitGene(lFxegaPermGene)

Run the code above in your browser using DataLab