Initialize population with Latin Hypercube Sampling
Create initial sample using Latin Hypercube Sampling (LHS) method. The variables will be ranged between 0-1
InitializePopulationLHS( numberOfIndividuals, chromosomeLength, minVal = 0, maxVal = 1, samplingMethod = 0 )
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 samplemaxVal
: Maximum value of the resulting samplesamplingMethod
: Not usedA matrix of size chromosomeLength x nIndividual.
nVar <- 14 nIndividual <- 100 InitializePopulationLHS(nIndividual,nVar,FALSE)