xegaPermInitGene: Initialize a gene with a permutation of integers

View source: R/xegaPermInitGene.R

xegaPermInitGeneR Documentation

Initialize a gene with a permutation of integers

Description

xegaPermInitGene generates a random permutation with a given length n.

Usage

xegaPermInitGene(lF)

Arguments

lF

Local configuration of the genetic algorithm.

Details

In the permutation representation of package xegaPerm, 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 genetopye).

This representation makes several code optimizations and generalizations easier.

Value

A permutation gene.

Examples

xegaPermInitGene(lFxegaPermGene)


xegaPermGene documentation built on May 29, 2024, 3:13 a.m.