rankSelect: Selecting Parents by Rank

Description Usage Arguments

View source: R/rank_select.R

Description

rankSelect selects parents based on their fitness scores, which in turn depend on their rank in objective function values. In this operation, users have two choices in selecting parents as specified by the parameter "OneParenRandom". The default approach is to select each parent with probability equal to fitness, this approach is valid since the fitness score of all chromosome sums to one, indicating a selection probability. Another approach is to select a parent with probability proportional to fitness and to select the other parent completely at random.

Usage

1
rankSelect(pool, fitness, oneParentRandom, numCrossoverSplit)

Arguments

pool

a matrix of booleans representing the chromosome pools

fitness

a vector indicating the fitness score of each chromosome in the pool

oneParentRandom

a logical applying to rank-based selection. If TRUE, then we select one parent with the probability being its fitness score and the other randomly, otherwise, select both parents according to their fitness score.

numCrossoverSplit

number of crossover points.


garylin2099/GA documentation built on Feb. 8, 2020, 1:13 a.m.