| Modifier and Type | Field and Description |
|---|---|
| private static final double | ABS_TOL_UNUSED
Value that will pass the precondition check for |
| private final BracketFinder | bracket
Automatic bracketing. |
| private final double | initialBracketingRange
Extent of the initial interval used to find an interval that brackets the optimum. |
| private final UnivariateOptimizer | lineOptimizer
Optimizer used for line search. |
| private final MultivariateOptimizer | mainOptimizer
Optimizer on behalf of which the line search must be performed. |
| private static final double | REL_TOL_UNUSED
Value that will pass the precondition check for |
| Access | Constructor and Description |
|---|---|
| public | LineSearch(MultivariateOptimizer
Optimizer on behalf of which the line search
be performed.
Its optimizer, double computeObjectiveValue method will be called by the
search method.Search will stop when the function relative
difference between successive iterations is below this value. relativeTolerance, double Search will stop when the function absolute
difference between successive iterations is below this value. absoluteTolerance, double Extent of the initial interval used to
find an interval that brackets the optimum.
If the optimized function varies a lot in the vicinity of the optimum,
it may be necessary to provide a value lower than the distance between
successive local minima. initialBracketingRange)The |
| Modifier and Type | Method and Description |
|---|---|
| public UnivariatePointValuePair | Returns: the optimum.Starting point. startPoint, final double[] Search direction. direction)Finds the number |
| ABS_TOL_UNUSED | back to summary |
|---|---|
| private static final double ABS_TOL_UNUSED Value that will pass the precondition check for | |
| bracket | back to summary |
|---|---|
| private final BracketFinder bracket Automatic bracketing. | |
| initialBracketingRange | back to summary |
|---|---|
| private final double initialBracketingRange Extent of the initial interval used to find an interval that brackets the optimum. | |
| lineOptimizer | back to summary |
|---|---|
| private final UnivariateOptimizer lineOptimizer Optimizer used for line search. | |
| mainOptimizer | back to summary |
|---|---|
| private final MultivariateOptimizer mainOptimizer Optimizer on behalf of which the line search must be performed. | |
| REL_TOL_UNUSED | back to summary |
|---|---|
| private static final double REL_TOL_UNUSED Value that will pass the precondition check for | |
| LineSearch | back to summary |
|---|---|
| public LineSearch(MultivariateOptimizer optimizer, double relativeTolerance, double absoluteTolerance, double initialBracketingRange) The
| |
| search | back to summary |
|---|---|
| public UnivariatePointValuePair search(final double[] startPoint, final double[] direction) Finds the number
| |