EvalGene {xegaSelectGene} | R Documentation |
Evaluate a gene
Description
EvalGene
is the abstract function which evaluates
a gene.
Usage
EvalGene(gene, lF)
Arguments
gene |
A gene (representation independent). |
lF |
The local configuration (a function factory provided by
the |
Details
For minimization problems, the fitness value
must be multiplied by -1. The constant function
lF$Max()
returns 1 for a maximization and
-1 for a minimization problem.
Value
A gene.
See Also
Other Evaluation Functions:
EvalGeneDet()
,
EvalGeneR()
,
EvalGeneStoch()
,
EvalGeneU()
Examples
DeJongF4<-DeJongF4Factory()
lF<-NewlFevalGenes(DeJongF4)
EvalGene<-EvalGeneFactory()
g1<-list(evaluated=FALSE, fit=0, gene1=c(1.0, -1.5))
g1
g2<-EvalGene(g1, lF)
g2
[Package xegaSelectGene version 1.0.0.0 Index]