Minimizes the function within the interval contained in the given Bracket.
Namespace:
CenterSpace.NMath.AnalysisAssembly: NMath (in NMath.dll) Version: 5.1.0.0
Syntax
| C# |
|---|
double Minimize( Bracket bracket, OneVariableFunction df ) |
| Visual Basic (Declaration) |
|---|
Function Minimize ( _ bracket As Bracket, _ df As OneVariableFunction _ ) As Double |
| Visual C++ |
|---|
double Minimize( Bracket^ bracket, OneVariableFunction^ df ) |
Parameters
- bracket
- Type: CenterSpace.NMath.Analysis..::.Bracket
A bracket containing a minimum.
- df
- Type: CenterSpace.NMath.Core..::.OneVariableFunction
The first derivative of Bracket.Function.
Return Value
The minimum of bracket.Function over the interval from bracket.Min to bracket.Max.
Remarks
Iteration stops when either the estimated error is less
than the tolerance, or the maximum number of iterations is reached.
Setting the error tolerance to less than zero ensures that the maximum number
of iterations is always reached.