InitializePopulationLHS: Initialize population with Latin Hypercube Sampling

View source: R/functions.R

InitializePopulationLHSR Documentation

Initialize population with Latin Hypercube Sampling

Description

Create initial sample using Latin Hypercube Sampling (LHS) method. The variables will be ranged between 0-1

Usage

InitializePopulationLHS(
  numberOfIndividuals,
  chromosomeLength,
  minVal = 0,
  maxVal = 1,
  samplingMethod = 0
)

Arguments

numberOfIndividuals

The number of individual in the population (ncol). Integer > 0.

chromosomeLength

The number of variables per individual (nrow)

minVal

Minimum value of the resulting sample

maxVal

Maximum value of the resulting sample

samplingMethod

Not used

Value

A matrix of size chromosomeLength x nIndividual.

Examples

nVar <- 14
nIndividual <- 100
InitializePopulationLHS(nIndividual,nVar,FALSE)

dots26/MaOEA documentation built on Jan. 26, 2023, 4:34 a.m.