initialize_population: Initialize population

View source: R/initialize_population.R

initialize_populationR Documentation

Initialize population

Description

The function described below creates a population of individuals(values).

Usage

initialize_population(population_size, min = -100, max = 100)

Arguments

population_size

The number of individuals of the population.

min

The minimum number an individual could have.

max

The maximum number an individual could have.

Details

(Note: the values are random and the population should be highly diversified)
The space of x value is kept integer type and on range from 0 to 3, for simplification.

Value

The output expected should be a list of individuals of the population with the size indicated in the input.

Author(s)

Dany Mukesha

Examples

# example of usage
genetic.algo.optimizeR::initialize_population(population_size = 3, min = 0, max = 3)


genetic.algo.optimizeR documentation built on Oct. 10, 2024, 5:07 p.m.