cmaNew function

Create a new CMA-ES Java object.

Create a new CMA-ES Java object.

cmaNew(propFile = NULL)

Arguments

  • propFile: [NULL] filename of a file with property settings. If NULL, read file

    CMAEvolutionStrategy.properties from the package directory (find.package("rCMA"))

Returns

the new CMA-ES Java object of class CMAEvolutionStrategy, which has as additional attribute props, the Java Properties object as read from propFile.

Note

The default properties file can be found in CMAEvolutionStrategy.properties. A read-only copy can be inspected by browsing to "Index" (of package rCMA), then "Overview of user guides ...".

It allows to set more parameter, especially more stop conditions .

Examples

## show how element initialX can be inferred from attribute props: ## (see cmaEvalMeanX-documentation for further details on .jcall and its argument "S") cma <- cmaNew(); props <- attr(cma,"props"); initialX = rJava::.jcall(props,"S","getProperty","initialX"); print(initialX);

Author(s)

Wolfgang Konen, FHK, 2013

See Also

cmaInit

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

Useful links