Minimizes the function within the interval contained in the given Bracket.

Namespace:  CenterSpace.NMath.Analysis
Assembly:  NMath (in NMath.dll) Version: 5.1.0.0

Syntax

C#
public double Minimize(
	Bracket bracket,
	OneVariableFunction df
)
Visual Basic (Declaration)
Public Function Minimize ( _
	bracket As Bracket, _
	df As OneVariableFunction _
) As Double
Visual C++
public:
virtual double Minimize(
	Bracket^ bracket, 
	OneVariableFunction^ df
) sealed

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.

Implements

IOneVariableDMinimizer..::.Minimize(Bracket, OneVariableFunction)

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.

See Also