Tournament {xegaSelectGene}R Documentation

Deterministic tournament of size k.

Description

Tournament is implemented in two steps:

  1. A subset of size k of the population is selected with uniform probability.

  2. A gene is selected with probability proportional to fitness.

Usage

Tournament(fit, lF)

Arguments

fit

Fitness vector.

lF

Local configuration.

Details

In each generation, the worst gene in a population dies.

Value

Index of the best candidate.

Examples

fit<-sample(10, 15, replace=TRUE)
Tournament(fit, NewlFselectGenes()) 

[Package xegaSelectGene version 1.0.0.0 Index]