optimize.py v0.5 of
SciPy).
LineSearch class.
optimize will throw
MathUnsupportedOperationException if bounds are passed to it.
In order to impose simple constraints, the objective function must be
wrapped in an adapter like
MultivariateFunctionMappingAdapter or
MultivariateFunctionPenaltyAdapter.
| Modifier and Type | Field and Description |
|---|---|
| private final double | absoluteThreshold
Absolute threshold. |
| private final LineSearch | line
Line search. |
| private static final double | MIN_RELATIVE_TOLERANCE
Minimum relative tolerance. |
| private final double | relativeThreshold
Relative threshold. |
| Access | Constructor and Description |
|---|---|
| public | PowellOptimizer(double
Relative threshold. rel, double Absolute threshold. abs, ConvergenceChecker<PointValuePair> Convergence checker. checker)This constructor allows to specify a user-defined convergence checker, in addition to the parameters that control the default convergence checking procedure. |
| public | PowellOptimizer(double
Relative threshold for this optimizer. rel, double Absolute threshold for this optimizer. abs, double Relative threshold for the internal line search optimizer. lineRel, double Absolute threshold for the internal line search optimizer. lineAbs, ConvergenceChecker<PointValuePair> Convergence checker. checker)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. |
| public | PowellOptimizer(double
Relative threshold. rel, double Absolute threshold. abs)The parameters control the default convergence checking procedure. |
| public | PowellOptimizer(double
Relative threshold. rel, double Absolute threshold. abs, double Relative threshold for the internal line search optimizer. lineRel, double Absolute threshold for the internal line search optimizer. lineAbs)Builds an instance with the default convergence checking procedure. |
| Modifier and Type | Method and Description |
|---|---|
| private void | checkParameters()
Hides org. Check parameters consistency. |
| protected PointValuePair | doOptimize()
Implements abstract org. Performs the bulk of the optimization algorithm. |
| private double[][] | Returns: a 2-element array containing the new point (at index 0) and the new direction (at index 1).Point used in the line search. p, double[] Direction used in the line search. d, double Optimum found by the line search. optimum)Compute a new point (in the original space) and a new direction vector, resulting from the line search. |
| absoluteThreshold | back to summary |
|---|---|
| private final double absoluteThreshold Absolute threshold. | |
| line | back to summary |
|---|---|
| private final LineSearch line Line search. | |
| MIN_RELATIVE_TOLERANCE | back to summary |
|---|---|
| private static final double MIN_RELATIVE_TOLERANCE Minimum relative tolerance. | |
| relativeThreshold | back to summary |
|---|---|
| private final double relativeThreshold Relative threshold. | |
| PowellOptimizer | back to summary |
|---|---|
| public PowellOptimizer(double rel, double abs, ConvergenceChecker<PointValuePair> checker) This constructor allows to specify a user-defined convergence checker,
in addition to the parameters that control the default convergence
checking procedure.
| |
| PowellOptimizer | back to summary |
|---|---|
| public PowellOptimizer(double rel, double abs, double lineRel, double lineAbs, ConvergenceChecker<PointValuePair> checker) 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.
| |
| PowellOptimizer | back to summary |
|---|---|
| public PowellOptimizer(double rel, double abs) The parameters control the default convergence checking procedure.
| |
| PowellOptimizer | back to summary |
|---|---|
| public PowellOptimizer(double rel, double abs, double lineRel, double lineAbs) Builds an instance with the default convergence checking procedure.
| |
| checkParameters | back to summary |
|---|---|
| private void checkParameters() Hides org. Doc from org. Check parameters consistency.
| |
| doOptimize | back to summary |
|---|---|
| protected PointValuePair doOptimize() Implements abstract org. Doc from org. Performs the bulk of the optimization algorithm.
| |
| newPointAndDirection | back to summary |
|---|---|
| private double[][] newPointAndDirection(double[] p, double[] d, double optimum) Compute a new point (in the original space) and a new direction vector, resulting from the line search.
| |