Interface UnivariateRealOptimizer

    • Method Detail

      • setMaxEvaluations

        void setMaxEvaluations​(int maxEvaluations)
        Set the maximal number of functions evaluations.
        Parameters:
        maxEvaluations - maximal number of function evaluations
      • getMaxEvaluations

        int getMaxEvaluations()
        Get the maximal number of functions evaluations.
        Returns:
        the maximal number of functions evaluations.
      • getEvaluations

        int getEvaluations()
        Get the number of evaluations of the objective function.

        The number of evaluations corresponds to the last call to the optimize method. It is 0 if the method has not been called yet.

        Returns:
        the number of evaluations of the objective function.
      • getResult

        double getResult()
        Get the result of the last run of the optimizer.
        Returns:
        the optimum.
        Throws:
        IllegalStateException - if there is no result available, either because no result was yet computed or the last attempt failed.
      • getFunctionValue

        double getFunctionValue()
                         throws FunctionEvaluationException
        Get the result of the last run of the optimizer.
        Returns:
        the value of the function at the optimum.
        Throws:
        FunctionEvaluationException - if an error occurs evaluating the function.
        IllegalStateException - if there is no result available, either because no result was yet computed or the last attempt failed.