selGreedy function

Simple selector.

Simple selector.

Sorts the individuals according to their fitness value in increasing order and selects the best ones.

selGreedy(fitness, n.select)

Arguments

  • fitness: [matrix]

    Matrix of fitness values (each column contains the fitness value(s) of one individual).

  • n.select: [integer(1)]

    Number of elements to select.

Returns

[integer] Vector of survivor indizes.

See Also

Other selectors: selDomHV(), selNondom(), selRanking(), selRoulette(), selSimple(), selTournament()

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