LineSearchTSearch Method (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.
Namespace:
DHIMath.Numerics
Assembly:
DHI.Mike1D.Generic (in DHI.Mike1D.Generic.dll) Version: 16.0.0.0 (11.1.1.1111)
Syntax public double Search(
double[] x0,
double[] dx,
double alpha,
double[] x1,
T fx0,
T fx1
)
Parameters
- x0
- Type: SystemDouble
Staring point of search - dx
- Type: SystemDouble
Direction to search in - alpha
- Type: SystemDouble
Factor of dx for first search - x1
- Type: SystemDouble
Precalculated x1 = x0 + alpha*dx - fx0
- Type: T
Precalculated f(x0) - fx1
- Type: T
Precalculated f(x1)
Return Value
Type:
DoubleAlpha value of mimimum, 0 if not found
See Also