Learn R Programming

ecr (version 1.0)

makeRecombinator: Construct a recombination operator.

Description

Helper function which constructs a recombinator, i. e., a recombination operator.

Usage

makeRecombinator(recombinator, name, description, supported = getAvailableRepresentations(), params = list(), n.parents = 2L, n.children = NULL)

Arguments

recombinator
[function] Actual mutation operator.
name
[character(1)] Name of the recombinator.
description
[character(1)] Short description of how the recombinator works.
supported
[character] Vector of strings/names of supported parameter representations. For example 'permutation', 'float', 'binary'.
params
[list] Named list of the parameters the operator has been initialized with. Default is the empty list.
n.parents
[integer(1)] Number of parents supported.
n.children
[integer(1)] How many children does the recombinator produce? Default is 1.

Value

[ecr_recombinator] Recombinator object.