org.apache.commons.math3.optimization.direct
Class PowellOptimizer
- java.lang.Object
-
- org.apache.commons.math3.optimization.direct.BaseAbstractMultivariateOptimizer<MultivariateFunction>
-
- org.apache.commons.math3.optimization.direct.PowellOptimizer
-
- All Implemented Interfaces:
- BaseMultivariateOptimizer<MultivariateFunction>, BaseOptimizer<PointValuePair>, MultivariateOptimizer
Deprecated.As of 3.1 (to be removed in 4.0).
@Deprecated public class PowellOptimizer extends BaseAbstractMultivariateOptimizer<MultivariateFunction> implements MultivariateOptimizer
Powell algorithm. This code is translated and adapted from the Python version of this algorithm (as implemented in moduleoptimize.pyv0.5 of SciPy).
The default stopping criterion is based on the differences of the function value between two successive iterations. It is however possible to define a custom convergence checker that might terminate the algorithm earlier.
The internal line search optimizer is aBrentOptimizerwith a convergence checker set toSimpleUnivariateValueChecker.- Since:
- 2.2
-
-
Constructor Summary
Constructors Constructor and Description PowellOptimizer(double rel, double abs)Deprecated.The parameters control the default convergence checking procedure.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.PowellOptimizer(double rel, double abs, double lineRel, double lineAbs)Deprecated.Builds an instance with the default convergence checking procedure.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.
-
Method Summary
-
Methods inherited from class org.apache.commons.math3.optimization.direct.BaseAbstractMultivariateOptimizer
getConvergenceChecker, getEvaluations, getGoalType, getLowerBound, getMaxEvaluations, getStartPoint, getUpperBound, optimize, optimize
-
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.apache.commons.math3.optimization.BaseMultivariateOptimizer
optimize
-
Methods inherited from interface org.apache.commons.math3.optimization.BaseOptimizer
getConvergenceChecker, getEvaluations, getMaxEvaluations
-
-
-
-
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- ifabs <= 0.NumberIsTooSmallException- ifrel < 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- ifabs <= 0.NumberIsTooSmallException- ifrel < 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- ifabs <= 0.NumberIsTooSmallException- ifrel < 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- ifabs <= 0.NumberIsTooSmallException- ifrel < 2 * Math.ulp(1d).- Since:
- 3.1
-
-
DMelt 3.0 © DataMelt by jWork.ORG