Package org.moeaframework.algorithm
Class DefaultAlgorithms
java.lang.Object
org.moeaframework.core.spi.AlgorithmProvider
org.moeaframework.core.spi.RegisteredAlgorithmProvider
org.moeaframework.algorithm.DefaultAlgorithms
A provider of default algorithms. Refer to
docs/algorithms.md
or the Javadoc for the specifics of
parameterizing the algorithms.-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic int
getMaxIterations
(TypedProperties properties) Reads or derives the max iterations property.Methods inherited from class org.moeaframework.core.spi.RegisteredAlgorithmProvider
getAlgorithm, getDiagnosticToolAlgorithms, register, registerDiagnosticToolAlgorithm, registerDiagnosticToolAlgorithms
-
Constructor Details
-
DefaultAlgorithms
public DefaultAlgorithms()Constructs the default algorithm provider.
-
-
Method Details
-
getMaxIterations
Reads or derives the max iterations property. The search order is:- The property
maxIterations
- Derived from
maxEvaluations / populationSize
- Derived from
maxEvaluations / swarmSize
(for PSO algorithms) - Default to 250
- Parameters:
properties
- the user-defined properties- Returns:
- the max iterations
- The property
-