Class DefaultAlgorithms


public class DefaultAlgorithms extends RegisteredAlgorithmProvider
A provider of default algorithms. Refer to docs/algorithms.md or the Javadoc for the specifics of parameterizing the algorithms.
  • Constructor Details

    • DefaultAlgorithms

      public DefaultAlgorithms()
      Constructs the default algorithm provider.
  • Method Details

    • getMaxIterations

      public static int getMaxIterations(TypedProperties properties)
      Reads or derives the max iterations property. The search order is:
      1. The property maxIterations
      2. Derived from maxEvaluations / populationSize
      3. Derived from maxEvaluations / swarmSize (for PSO algorithms)
      4. Default to 250
      Parameters:
      properties - the user-defined properties
      Returns:
      the max iterations