Computes the fitness value(s) for each individual of a given set.
Computes the fitness value(s) for each individual of a given set.
This function expects a list of individuals, computes the fitness and always returns a matrix of fitness values; even in single-objective optimization a (1 x n) matrix is returned for consistency, where n is the number of individuals. This function makes use of parallelMap to parallelize the fitness evaluation.
evaluateFitness(control, inds,...)
Arguments
control: [ecr_control]
Control object.
inds: [list]
List of individuals.
...: [any]
Optional parameters passed down to fitness function.