LineSearchT Class |
argmin_{a > 0} { f(x+a*dx) }It tries to find an alpha such that
x1 = x0 + alpha*dx
x2 = x0 + 2*alpha*dxA second order polynomial through (0,f(x0)), (1,f(x1)) and (2,f(x2)) is created, and the alpha value corresponding to the minimum function value is returned.
Namespace: DHIMath.Numerics
The LineSearchT type exposes the following members.
| Name | Description | |
|---|---|---|
| LineSearchT |
Constructor with function argument.
|
| Name | Description | |
|---|---|---|
| Minimum |
Hold the minimum function value for the last search.
| |
| NumFunctionEval |
Hold the number of function evaluations for the last search.
|
| Name | Description | |
|---|---|---|
| Equals | Determines whether the specified object is equal to the current object. (Inherited from Object.) | |
| Finalize | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.) | |
| GetHashCode | Serves as a hash function for a particular type. (Inherited from Object.) | |
| GetType | Gets the Type of the current instance. (Inherited from Object.) | |
| MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) | |
| Reset |
Reset line search procedure
| |
| Search(Double, Double, Double) |
Search in direction dx, from starting point x0.
| |
| Search(Double, Double, Double, Double, T, T) |
Search in direction dx, from starting point x0 towards point x1.
This method can utilize if some function values have already been computed. | |
| ToString | Returns a string that represents the current object. (Inherited from Object.) |
| Name | Description | |
|---|---|---|
| MaxLineSearchIter |
Maximum number of line search iterations. Default 10.
| |
| StepLimited |
Limits the dx search step. Set to false to also allow -dx and
a very large multipla of dx.
When true, the largest search step length accepted is 2 * 2^MaxLineSearchIter * initial search step length |