makeRecombinator function

Construct a recombination operator.

Construct a recombination operator.

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

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

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.

Returns

[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.

  • Maintainer: Jakob Bossek
  • License: GPL-3
  • Last published: 2023-03-08