cmaInit: Initialize a CMA-ES Java object.

View source: R/rCMA.R

cmaInitR Documentation

Initialize a CMA-ES Java object.

Description

Initialize a CMA-ES Java object.

Usage

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.

Value

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 + 3 floor(ln(n))

where n=dimension.

Author(s)

Wolfgang Konen, FHK, 2013

See Also

cmaNew, cmaOptimDP

Examples

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

rCMA documentation built on June 24, 2022, 5:06 p.m.