Learn R Programming

ecr (version 2.1.0)

makeRecombinator: Construct a recombination operator.

Description

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

Usage

makeRecombinator(recombinator, supported = getAvailableRepresentations(),
  n.parents = 2L, n.children = NULL)

Value

[ecr_recombinator] Recombinator object.

Arguments

recombinator

[function]
Actual mutation operator.

supported

[character]
Vector of strings/names of supported parameter representations. Possible choices: “permutation”, “float”, “binary” or “custom”.

n.parents

[integer(1)]
Number of parents supported.

n.children

[integer(1)]
How many children does the recombinator produce? Default is 1.