xegaGeInitGene {xegaGeGene} | R Documentation |
Initialize a binary gene
Description
xegaGeInitGene()
generates a random binary gene
with a given length.
Usage
xegaGeInitGene(lF)
Arguments
lF |
the local configuration of the genetic algorithm |
Details
In the binary representation of
package xega
, gene is a list with
-
$evaluated
Boolean: TRUE if the fitness is known. -
$fit
The fitness of the genotype of$gene1
-
$gene1
a bit string (the genetopye).
This representation makes several code optimizations and generalizations easier.
Value
a binary gene (a named list):
-
$evaluated
: FALSE. See packagexegaEvalGene
-
$evalFail
: FALSE. Set by the error handler(s) in packagexegaEvalGene
in the case of failure. -
$fit
: Fitness vector. -
$gene1
: Binary gene.
Examples
xegaGeInitGene(lFxegaGeGene)
[Package xegaGeGene version 1.0.0.0 Index]