makeRecombinator: Construct a recombination operator.

Description Usage Arguments Value Note

Description

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

Usage

1
2
3
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.

Note

If a recombinator returns more than one child, the multiple.children parameter needs to be TRUE, which is the default. In case of multiple children produced these have to be placed within a list.


jakobbossek/ecr documentation built on May 18, 2019, 9:09 a.m.