Class MaxGenerationNumberConfig

  • All Implemented Interfaces:
    IConfiguration

    public class MaxGenerationNumberConfig
    extends AbstractConfiguration
    Configuration class for MaxGenerationNumber termination criterion.
    • Constructor Detail

      • MaxGenerationNumberConfig

        public MaxGenerationNumberConfig()
    • Method Detail

      • validateConfiguration

        public boolean validateConfiguration()
        Checks the configuration object for correctness. Should be called before accessing any of the data of the configuration object
        Returns:
        true - The configuration is correct false - The configuration is incomplete or wrong
      • setMaximumNumberOfIterations

        public void setMaximumNumberOfIterations​(int maximumNumberOfIterations)
                                          throws InvalidConfigException
        Set the maximum number of iterations that the optimization algorithm will perform before terminating.
        Parameters:
        maximumNumberOfIterations - if parameter is less then 1, an Exception is thrown.
        Throws:
        InvalidConfigException - if the supplied parameter do not conform to the required conditions.
      • getMaximumNumberOfIterations

        public int getMaximumNumberOfIterations()
        Returns the number of iterations that the optimization framework should execute.
        Returns:
        the number of iterations that the optimization framework should execute.