| DownhillSimplexMinimizerMinimize(DoubleFunctional, DoubleVector) Method |
Minimizes the given function near the given starting point.
Namespace: CenterSpace.NMath.CoreAssembly: NMath (in NMath.dll) Version: 7.4
Syntax public DoubleVector Minimize(
DoubleFunctional f,
DoubleVector x
)
Public Function Minimize (
f As DoubleFunctional,
x As DoubleVector
) As DoubleVector
public:
virtual DoubleVector^ Minimize(
DoubleFunctional^ f,
DoubleVector^ x
) sealed
abstract Minimize :
f : DoubleFunctional *
x : DoubleVector -> DoubleVector
override Minimize :
f : DoubleFunctional *
x : DoubleVector -> DoubleVector
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:
( 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