Learn R Programming

ecr (version 1.0)

makeSelector: Construct a selection operator.

Description

Helper function which defines a selector method, i. e., an operator which takes the population and returns a part of it for mating or survival.

Usage

makeSelector(selector, name, description, supported = getAvailableRepresentations(), supported.objectives, supported.opt.direction = "minimize")

Arguments

selector
[function] Actual selection operator.
name
[character(1)] Name of the selector.
description
[character(1)] Short description of how the selector works.
supported
[character] Vector of strings/names of supported parameter representations. For example 'permutation', 'float', 'binary'.
supported.objectives
[character] At least one of “single-objective” or “multi-objective”.
supported.opt.direction
[character(1-2)] Does the selector work for maximization tasks xor minimization tasks or both? Default is “minimize”, which means that the selector selects in favour of low fitness values.

Value

[ecr_selector] Selector object.