evaluate {adana} | R Documentation |
Calculate the fitness values of population
Description
Calculates the fitness value of a population using the fitness function given with the fitfunc argument.
Usage
evaluate(fitfunc, population, objective, ...)
Arguments
fitfunc |
Fitness function |
population |
Population matrix |
objective |
“max” or “min” |
... |
Further arguments passed to or from other methods. |
Value
A vector of fitness values for each induvidual in population.
Author(s)
Zeynel Cebeci & Erkut Tekeli
Examples
population = initbin()
head(population, 5)
m = ncol(population)-2
fitvals = evaluate(maxone, population[,1:m], objective="max")
head(fitvals, 5)
[Package adana version 1.1.0 Index]