Class PopulationSize
- java.lang.Object
-
- org.apache.commons.math4.legacy.optim.nonlinear.scalar.PopulationSize
-
- All Implemented Interfaces:
OptimizationData
public class PopulationSize extends Object implements OptimizationData
Population size. Input data for optimization algorithms whose global search strategy relies on multiple simultaneous candidate solutions.
-
-
Constructor Summary
Constructors Constructor Description PopulationSize(int size)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
getPopulationSize()
-
-
-
Constructor Detail
-
PopulationSize
public PopulationSize(int size) throws NotStrictlyPositiveException
- Parameters:
size
- Population size.- Throws:
NotStrictlyPositiveException
- ifsize <= 0
.
-
-
Method Detail
-
getPopulationSize
public int getPopulationSize()
- Returns:
- the population size.
-
-