Class MaxIter

    • Constructor Detail

      • MaxIter

        public MaxIter​(int max)
        Simple constructor.
        Parameters:
        max - Allowed number of iterations.
        Throws:
        MathIllegalArgumentException - if max <= 0.
    • Method Detail

      • getMaxIter

        public int getMaxIter()
        Gets the maximum number of evaluations.
        Returns:
        the allowed number of evaluations.
      • unlimited

        public static MaxIter unlimited()
        Factory method that creates instance of this class that represents a virtually unlimited number of iterations.
        Returns:
        a new instance suitable for allowing Integer.MAX_VALUE evaluations.