Click or drag to resize

DownhillSimplexMinimizerMinimize(DoubleFunctional, DoubleVector) Method

Minimizes the given function near the given starting point.

Namespace: CenterSpace.NMath.Core
Assembly: NMath (in NMath.dll) Version: 7.4
Syntax
public DoubleVector Minimize(
	DoubleFunctional f,
	DoubleVector x
)

Parameters

f  DoubleFunctional
The function to minimize.
x  DoubleVector
The starting point.

Return Value

DoubleVector
The local minimum of function near x.

Implements

IMultiVariableMinimizerMinimize(DoubleFunctional, DoubleVector)
Remarks
A starting simplex is constructed from the given point by adding 1.0 in each dimension. For example, in two dimensions the simplex is a triangle:
C#
( x0, x1 )
( x0 + 1, x1 )
( x0, x1 + 1 )
Iteration stops when either the decrease in function value 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