Click or drag to resize

DBrentMinimizerMinimize(Bracket, OneVariableFunction) Method

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

Namespace: CenterSpace.NMath.Core
Assembly: NMath (in NMath.dll) Version: 7.4
Syntax
public double Minimize(
	Bracket bracket,
	OneVariableFunction df
)

Parameters

bracket  Bracket
A bracket containing a minimum.
df  OneVariableFunction
The first derivative of Bracket.Function.

Return Value

Double
The minimum of bracket.Function over the interval from bracket.Min to bracket.Max.

Implements

IOneVariableDMinimizerMinimize(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