Learn R Programming

rgp (version 0.4-1)

joinElites: Join elite lists

Description

Inserts a list of new individuals into an elite list, replacing the worst individuals in this list to make place, if needed.

Usage

joinElites(individuals, elite, eliteSize, fitnessFunction)

Arguments

individuals
The list of individuals to insert.
elite
The list of elite individuals to insert individuals into. This list must be sorted by fitness in ascending order, i.e. lower fitnesses first.
eliteSize
The maximum size of the elite.
fitnessFunction
The fitness function.

Value

The elite with individuals inserted, sorted by fitness in ascending order, i.e. lower fitnesses first.