Class MaxEval

    • Constructor Detail

      • MaxEval

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

      • getMaxEval

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

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