joinElites: Join elite lists

Description Usage Arguments Value

View source: R/evolution.r

Description

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

Usage

1
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.


rgp documentation built on May 30, 2017, 12:45 a.m.