Class CMAESOptimizer.PopulationSize
- java.lang.Object
-
- org.apache.commons.math3.optim.nonlinear.scalar.noderiv.CMAESOptimizer.PopulationSize
-
- All Implemented Interfaces:
OptimizationData
- Enclosing class:
- CMAESOptimizer
public static class CMAESOptimizer.PopulationSize extends java.lang.Object implements OptimizationData
Population size. The number of offspring is the primary strategy parameter. In the absence of better clues, a good default could be an integer close to4 + 3 ln(n), wherenis the number of optimized parameters. Increasing the population size improves global search properties at the expense of speed (which in general decreases at most linearly with increasing population size).
-
-
Field Summary
Fields Modifier and Type Field Description private intlambdaPopulation size.
-
Constructor Summary
Constructors Constructor Description PopulationSize(int size)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetPopulationSize()
-
-
-
Constructor Detail
-
PopulationSize
public PopulationSize(int size) throws NotStrictlyPositiveException- Parameters:
size- Population size.- Throws:
NotStrictlyPositiveException- ifsize <= 0.
-
-