evaluateFitness {ecr}R 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].


[Package ecr version 2.1.0 Index]