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