powered by
Calculates the fitness value of a population using the fitness function given with the fitfunc argument.
evaluate(fitfunc, population, objective, ...)
Fitness function
Population matrix
“max” or “min”
Further arguments passed to or from other methods.
A vector of fitness values for each induvidual in population.
# NOT RUN { population = initbin() head(population, 5) m = ncol(population)-2 fitvals = evaluate(maxone, population[,1:m], objective="max") head(fitvals, 5) # }
Run the code above in your browser using DataLab