spotGlgInitN: Initialize Gaussian Landscape (multiple)

Description Usage Arguments Value References See Also


This function is based on the Gaussian Landscape Generator by Bo Yuan and Marcus Gallagher. It randomly initializes multiple Gaussian Landscapes with the specified parameters. Does not have to be called by user, if spotGlgCreateN is used.


spotGlgInitN(oDimension = 2, iDimension = 2, nGaussian = rep(10,
  oDimension), lower = rep(0, iDimension), upper = rep(1, iDimension),
  globalvalue = rep(1, oDimension), ratio = rep(0.8, oDimension),
  seed = 1)



dimensionality of output, i.e. number of landscapes. Default is 2.


dimensionality of the landscapes input space. Default is 2.


number of Gaussian components in the landscape. Default is 10.


lower boundary of the landscape, defaults to rep(0,dimension).


upper boundary of the landscape, defaults to rep(1,dimension).


the global maximum value, i.e. the maximum of the Gaussian component with the largest value. Default is 1.


maximum ratio of the local maxima, local optima are randomly generated within [0,globalvalue*ratio]. Has to be larger than 0 and smaller than 1. Defaults to 0.8.


seed for the random number generator used before creation of the landscape. Generator status will be saved and reset afterwards.


returns a list containing again lists for each landscape, containing with the following items:
mean Matrix containing the mean vectors of the Gaussian components in the landscape, i.e. the locations of the local maxima of the functions. First vector (i.e. first row) will be the global maximum. covinv Inverse of covariance matrix of each Gaussian component, stored as 3-dimensional array. opt optimal values, i.e. maxima of the Gaussian components ngauss number of Gaussian components d is the dimension


B. Yuan and M. Gallagher (2003) "On Building a Principled Framework for Evaluating and Testing Evolutionary Algorithms: A Continuous Landscape Generator". In Proceedings of the 2003 Congress on Evolutionary Computation, IEEE, pp. 451-458, Canberra, Australia.

See Also

spotGlgCreateN, spotGlgEvalN, spotGlgInit

Search within the SPOT package
Search all R packages, documentation and source code

Questions? Problems? Suggestions? or email at

Please suggest features or report bugs with the GitHub issue tracker.

All documentation is copyright its authors; we didn't write any of that.