transformFitness: Fitness transformation / scaling.

View source: R/transformFitness.R

transformFitnessR Documentation

Fitness transformation / scaling.

Description

Some selectors support maximization only, e.g., roulette wheel selector, or minimization (most others). This function computes a factor from -1, 1 for each objective to match supported selector optimization directions and the actual objectives of the task.

Usage

transformFitness(fitness, task, selector)

Arguments

fitness

[matrix] Matrix of fitness values with the fitness vector of individual i in the i-th column.

task

[ecr_optimization_task] Optimization task.

selector

[ecr_selector] Selector object.

Value

[matrix] Transformed / scaled fitness matrix.


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