evaluate | 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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.