Learn R Programming

ecr (version 1.0.1)

evaluateFitness: Computes the fitness values for each member of a given population.

Description

This function expects a population, computes the fitness and returns the matrix of fitness values. This function makes use of parallelMap to allow parallelization of fitness evaluation. Keep in mind, that the return value is a 1xn matrix in case of single-objective optimization.

Usage

evaluateFitness(population, fitness.fun, task, control)

Arguments

population
[list] Population.
fitness.fun
[function] Fitness function.
task
[ecr_optimization_task] Optimization task.
control
[ecr_control] Control object containing all operators and further parameters. See setupECRControl and setupEvolutionaryOperators.

Value

[matrix].