tournamentSelection: tournamentSelection

Description Usage Arguments Value

View source: R/selection.R

Description

Performs Tournament Selection on the population by taking a sample of the population (can be duplicates) and returning the individual with the best fitness.

Usage

1
tournamentSelection(population, tournamentSize)

Arguments

population

the population to sample

tournamentSize

the number of samples to take

Value

the individual with the best fitness


porteous54/caRtesian documentation built on May 30, 2019, 11:43 a.m.