Minimizes the given function within the given interval.

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

Syntax

C#
public double Minimize(
	OneVariableFunction f,
	OneVariableFunction df,
	double a,
	double b,
	double c
)
Visual Basic (Declaration)
Public Function Minimize ( _
	f As OneVariableFunction, _
	df As OneVariableFunction, _
	a As Double, _
	b As Double, _
	c As Double _
) As Double
Visual C++
public:
virtual double Minimize(
	OneVariableFunction^ f, 
	OneVariableFunction^ df, 
	double a, 
	double b, 
	double c
) sealed

Parameters

f
Type: CenterSpace.NMath.Core..::.OneVariableFunction
The function to minimize.
df
Type: CenterSpace.NMath.Core..::.OneVariableFunction
The first derivative of f.
a
Type: System..::.Double
The lower limit.
b
Type: System..::.Double
A point between a and c such that fb < fa and fb < fc. .
c
Type: System..::.Double
The upper limit.

Return Value

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

Implements

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

Remarks

Iteration stops when the estimated error is less than the tolerance, the maximum number of iterations is reached or the algorithm is not making any progress.

See Also