Class GoldenSectionMinimizer1D

    • Constructor Detail

      • GoldenSectionMinimizer1D

        public GoldenSectionMinimizer1D()
    • Method Detail

      • minimize

        public double minimize​(Function<Double,​Double> f,
                               double startPosition,
                               double lower,
                               double upper)
        Specified by:
        minimize in interface ScalarMinimizer
        Parameters:
        f - The function to minimize, not null
        startPosition - The start position
        lower - The lower bound
        upper - The upper bound, must be greater than the upper bound
        Returns:
        The minimum
      • minimize

        public double minimize​(Function<Double,​Double> f,
                               double lower,
                               double upper)
        Minimize.
        Parameters:
        f - the function
        lower - the lower bound
        upper - the upper bound
        Returns:
        the result