Learn R Programming

xegaGaGene (version 1.0.0.4)

xegaGaInitGene: Generate a random binary gene.

Description

xegaGaInitGene() generates a random binary gene with a given length.

Usage

xegaGaInitGene(lF)

Value

A binary gene (a named list):

  • $evaluated: FALSE. See package xegaSelectGene.

  • $evalFail: FALSE. Set by the error handler(s) of the evaluation functions in package xegaSelectGene in the case of failure.

  • $fit: Fitness.

  • $gene1: Binary gene.

Arguments

lF

The local configuration of the genetic algorithm.

Examples

Run this code
xegaGaInitGene(lFxegaGaGene)

Run the code above in your browser using DataLab