Click or drag to resize

BrentMinimizerMinimize(OneVariableFunction, Double, Double, Double) Method

Minimizes the given function within the given interval.

Namespace: CenterSpace.NMath.Core
Assembly: NMath (in NMath.dll) Version: 7.4
Syntax
public double Minimize(
	OneVariableFunction f,
	double a,
	double b,
	double c
)

Parameters

f  OneVariableFunction
The function to minimize.
a  Double
The lower limit.
b  Double
A point between a and c such that fb < fa and fb < fc. .
c  Double
The upper limit.

Return Value

Double
The minimum of function over the interval from a to c.

Implements

IOneVariableMinimizerMinimize(OneVariableFunction, Double, Double, Double)
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