cmaInit function

Initialize a CMA-ES Java object.

Initialize a CMA-ES Java object.

cmaInit(cma, seed = NULL, dimension = NULL, initialX = NULL, initialStandardDeviations = NULL)

Arguments

  • cma: CMA-ES Java object, as created by cmaNew
  • seed: [NULL] if not NULL, set the seed to the given value
  • dimension: [NULL] if not NULL, overwrite the dimension setting from propFile (cmaNew)
  • initialX: [NULL] if not NULL, overwrite the initialX setting from propFile (cmaNew). initialX can be a double or a double vector of length dimension.
  • initialStandardDeviations: [NULL] if not NULL, overwrite the initialStandardDeviations setting from propFile cmaNew. initialStandardDeviations can be a double or a double vector of length dimension.

Returns

fitness, a vector of 0's with the length of the intended population.

Note

As a side effect, the CMA-ES Java object cma of class CMAEvolutionStrategy

is transferred into an augmented state. As a second side effect, the population size is set to

λ=4+3floor(ln(n)) \lambda = 4 + 3 floor(ln(n))

where n=n=dimension.

Examples

cma <- cmaNew(); cmaInit(cma,seed=42,dimension=2,initialX=1.5);

Author(s)

Wolfgang Konen, FHK, 2013

See Also

cmaNew, cmaOptimDP

  • Maintainer: Wolfgang Konen
  • License: GPL (>= 3)
  • Last published: 2022-06-24

Useful links