Class UnivariateOptimizer

    • Method Detail

      • getGoalType

        public GoalType getGoalType()
        Returns:
        the optimization type.
      • getStartValue

        public double getStartValue()
        Returns:
        the initial guess.
      • getMin

        public double getMin()
        Returns:
        the lower bounds.
      • getMax

        public double getMax()
        Returns:
        the upper bounds.
      • computeObjectiveValue

        protected double computeObjectiveValue​(double x)
        Computes the objective function value. This method must be called by subclasses to enforce the evaluation counter limit.
        Parameters:
        x - Point at which the objective function must be evaluated.
        Returns:
        the objective function value at the specified point.
        Throws:
        MathIllegalStateException - if the maximal number of evaluations is exceeded.