Learn R Programming

nlmixr2auto (version 1.0.0)

gaControl: Control parameters for genetic algorithm

Description

Creates a list of control settings for the ga.operator() function.

Usage

gaControl(
  npop = 20,
  niter = 20,
  pcross = 0.7,
  pmut = 0.1,
  diff_tol = 1,
  nls = 3
)

Value

A named list containing all GA control parameters.

Arguments

npop

Integer. The number of individuals (chromosomes) in the population for each generation.

niter

Integer. The maximum number of generations to run the GA.

pcross

Numeric in \([0, 1]\). Probability of performing crossover between two selected parents.

pmut

Numeric in \([0, 1]\). Probability of mutating each bit in a chromosome.

diff_tol

A numeric value specifying the significance difference threshold. Values within this threshold are considered equal and receive the same rank. Default is 1.

nls

Integer. Frequency (in generations) of running local exhaustive search around the best current model.

Author

Zhonghui Huang

See Also

ga.operator, rank_new, runlocal

Examples

Run this code
# Default settings
gaControl()

Run the code above in your browser using DataLab