xegaGaInitGene: Generate a random binary gene.

View source: R/xegaGaInitGene.R

xegaGaInitGeneR Documentation

Generate a random binary gene.

Description

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

Usage

xegaGaInitGene(lF)

Arguments

lF

The local configuration of the genetic algorithm.

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.

Examples

xegaGaInitGene(lFxegaGaGene)


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