selection: Selection Of Models for Recombination

Description Usage Arguments

Description

Standard selection is used to determine parent chromosomes fitness for recombination in the genetic algorithm for model optimization. Fitness is assessed based on AIC or an inputted fitness function (must be function to minimize). AIC is used in two ways: one through rank \frac{2\ r_{i}}{P(P+1)} and another through AIC weights. Weight takes the absolute fitness to determine probability of recombination while rank uses relative ranking of fitness of models.

Usage

1
selection(pop_fitness, fitness, P, P_ix)

Arguments

pop_fitness

a vector indicating fitness of each chrosomosome in the current generation based on the evaluated fitness function.

fitness

a character indicating whether to use rank or weight when comparing model fitness.

P

Population size, corresponding to the number of genes or covariates on each chromosome or model considered for recombination.

P_ix

a sequence of integers, ending value P.

References: Khalid Jebari, Mohammed Madiafi (2013) Selection Methods for Genetic Algorithms. https://www.researchgate.net/publication/259461147_Selection_Methods_for_Genetic_Algorithms.


slwu89/GA documentation built on May 14, 2019, 5:20 p.m.