Click or drag to resize

DownhillSimplexMinimizerMinimize(MultiVariableFunction, DoubleVector, DoubleVector) Method

Note: This API is now obsolete.

Minimizes the given function near the given starting point.

Namespace: CenterSpace.NMath.Core
Assembly: NMath (in NMath.dll) Version: 7.4
Syntax
[ObsoleteAttribute("This method is obsolete. Call method Minimize( DoubleFunctional f, DoubleVector x, DoubleVector lambda )")]
public DoubleVector Minimize(
	MultiVariableFunction f,
	DoubleVector x,
	DoubleVector lambda
)

Parameters

f  MultiVariableFunction
The function to minimize.
x  DoubleVector
The starting point.
lambda  DoubleVector
Amounts to add to x in each dimension when constructing a starting simplex.

Return Value

DoubleVector
The local minimum of function near x.
Exceptions
ExceptionCondition
MismatchedSizeExceptionThrown if the given vector of lambdas is not the same length as x.
Remarks
A starting simplex is constructed from the given point by adding lambda[i] in each dimension. For example, in two dimensions the simplex is a triangle:
C#
( x0, x1 )
( x0 + lambda[0], x1 )
( x0, x1 + lambda[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