EvalGene | R Documentation |
EvalGene()
is the abstract function which evaluates
a gene.
EvalGene(gene, lF)
gene |
A gene (representation independent). |
lF |
The local configuration (a function factory provided by
the |
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.
A gene.
Other Evaluation Functions:
EvalGeneDet()
,
EvalGeneR()
,
EvalGeneStoch()
,
EvalGeneU()
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
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.