Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

ga_Population

Population initialization in genetic algorithms


Description

Functions for creating a random initial population to be used in genetic algorithms.

Usage

gabin_Population(object, ...)

gareal_Population(object, ...)

gaperm_Population(object, ...)

Arguments

object

An object of class "ga", usually resulting from a call to function ga.

...

Further arguments passed to or from other methods.

Details

gabin_Population generates a random population of object@nBits binary values;

gareal_Population generates a random (uniform) population of real values in the range [object@min, object@max];

gaperm_Population generates a random (uniform) population of integer values in the range [object@min, object@max].

Value

Return a matrix of dimension object@popSize times the number of decision variables.

Author(s)

Luca Scrucca

See Also


GA

Genetic Algorithms

v3.2.1
GPL (>= 2)
Authors
Luca Scrucca [aut, cre] (<https://orcid.org/0000-0003-3826-0484>)
Initial release
2021-04-20

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.