evaluateFitness: Computes the fitness value(s) for each individual of a given...

View source: R/evaluateFitness.R

evaluateFitnessR Documentation

Computes the fitness value(s) for each individual of a given set.

Description

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.

Usage

evaluateFitness(control, inds, ...)

Arguments

control

[ecr_control]
Control object.

inds

[list]
List of individuals.

...

[any]
Optional parameters passed down to fitness function.

Value

[matrix].


ecr documentation built on March 31, 2023, 10:07 p.m.