generation_gap: Replace a proportion G of the old generation with their...

Description Usage Arguments Value

Description

Replace a proportion G of the old generation with their offspring.

Usage

1
generation_gap(old_gen, children, G = 1)

Arguments

old_gen

Output of ranked_models() of the previous generation. A data frame.

children

Output of ranked_models() of the children of the previous generation. A data frame.

G

Proportion of old_gen to replace with children.

Value

The next generation, in descending order of fitness (most fit first). A data frame.


kunaljaydesai/GA2 documentation built on May 30, 2019, 2:15 p.m.