init: utils.R

Description Usage Arguments Value

View source: R/utils.R

Description

This is the R file containing all functions used for the genetic algorithm (GA) package. An OOP approach was taken to complete this algorithm.

function outputs P random binary vectors of length c

Usage

1
init(df, P, c)

Arguments

df

(data.frame): the datasets with X and Y.

P

(int): number of candidates per generations

c

(int): number of genes per chromosome candidate

Value

generation(binary matrix P x c): P candidates


jtkwar/GA documentation built on May 28, 2019, 7:36 a.m.