cmaSamplePopulation {rCMA} | R Documentation |
Sample a population from the current CMA-ES distribution.
Description
The population size is given by cmaGetPopulationSize(cma)
. It can be
either set manually with cmaSetPopulationSize(cma,p)
, prior to
cmaInit(cma)
, or CMA-ES will use the default population size
popSize = 4 + 3*log(dimension)
.
Usage
cmaSamplePopulation(cma)
Arguments
cma |
CMA-ES Java object, already initialized with |
Value
popR
, a (dimension x popSize
) matrix with popR[,1]
being the first individuum in the population.
dimension = cmaGetDimension(cma)
popSize = cmaGetPopulationSize(cma)
Author(s)
Wolfgang Konen, FHK, 2013
See Also
Examples
cma <- cmaNew();
cmaInit(cma,dimension=2,initialX=1.5);
popR <- cmaSamplePopulation(cma);
[Package rCMA version 1.1.1 Index]