Class PowellOptimizer

    • Field Detail

      • MIN_RELATIVE_TOLERANCE

        private static final double MIN_RELATIVE_TOLERANCE
        Deprecated.
        Minimum relative tolerance.
      • relativeThreshold

        private final double relativeThreshold
        Deprecated.
        Relative threshold.
      • absoluteThreshold

        private final double absoluteThreshold
        Deprecated.
        Absolute threshold.
    • Constructor Detail

      • PowellOptimizer

        public PowellOptimizer​(double rel,
                               double abs,
                               ConvergenceChecker<PointValuePair> checker)
        Deprecated.
        This constructor allows to specify a user-defined convergence checker, in addition to the parameters that control the default convergence checking procedure.
        The internal line search tolerances are set to the square-root of their corresponding value in the multivariate optimizer.
        Parameters:
        rel - Relative threshold.
        abs - Absolute threshold.
        checker - Convergence checker.
        Throws:
        NotStrictlyPositiveException - if abs <= 0.
        NumberIsTooSmallException - if rel < 2 * Math.ulp(1d).
      • PowellOptimizer

        public PowellOptimizer​(double rel,
                               double abs,
                               double lineRel,
                               double lineAbs,
                               ConvergenceChecker<PointValuePair> checker)
        Deprecated.
        This constructor allows to specify a user-defined convergence checker, in addition to the parameters that control the default convergence checking procedure and the line search tolerances.
        Parameters:
        rel - Relative threshold for this optimizer.
        abs - Absolute threshold for this optimizer.
        lineRel - Relative threshold for the internal line search optimizer.
        lineAbs - Absolute threshold for the internal line search optimizer.
        checker - Convergence checker.
        Throws:
        NotStrictlyPositiveException - if abs <= 0.
        NumberIsTooSmallException - if rel < 2 * Math.ulp(1d).
      • PowellOptimizer

        public PowellOptimizer​(double rel,
                               double abs)
        Deprecated.
        The parameters control the default convergence checking procedure.
        The internal line search tolerances are set to the square-root of their corresponding value in the multivariate optimizer.
        Parameters:
        rel - Relative threshold.
        abs - Absolute threshold.
        Throws:
        NotStrictlyPositiveException - if abs <= 0.
        NumberIsTooSmallException - if rel < 2 * Math.ulp(1d).
      • PowellOptimizer

        public PowellOptimizer​(double rel,
                               double abs,
                               double lineRel,
                               double lineAbs)
        Deprecated.
        Builds an instance with the default convergence checking procedure.
        Parameters:
        rel - Relative threshold.
        abs - Absolute threshold.
        lineRel - Relative threshold for the internal line search optimizer.
        lineAbs - Absolute threshold for the internal line search optimizer.
        Throws:
        NotStrictlyPositiveException - if abs <= 0.
        NumberIsTooSmallException - if rel < 2 * Math.ulp(1d).
        Since:
        3.1
    • Method Detail

      • newPointAndDirection

        private double[][] newPointAndDirection​(double[] p,
                                                double[] d,
                                                double optimum)
        Deprecated.
        Compute a new point (in the original space) and a new direction vector, resulting from the line search.
        Parameters:
        p - Point used in the line search.
        d - Direction used in the line search.
        optimum - Optimum found by the line search.
        Returns:
        a 2-element array containing the new point (at index 0) and the new direction (at index 1).