get_k_fittest_ind: get_k_fittest_ind

Description Usage Arguments Value

View source: R/get_fittest_individuals.R

Description

Used to get the k elements from a list of (variables, indices, linear_model) with the higgest objectives values

Usage

1
get_k_fittest_ind(individuals, objective = "AIC", k)

Arguments

individuals

list with fields variables, indices, linear_model

objective

name of the objective function to be maximized (as a string, inside quotes)

k

number of variables we want to choose.

fitness

only works with AIC, using a fitness function derived from the AIC

Value

returns the k elements of individuals with that have the highest objectives


Skjemaa/GA documentation built on May 3, 2019, 6:42 p.m.