evaluate: Calculate the fitness values of population

View source: R/evaluate.R

evaluateR 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)

adana documentation built on March 18, 2022, 6:03 p.m.

Related to evaluate in adana...