| TrustRegionMinimizerMinimize(FuncDouble, Double, DoubleVector, Int32, FuncDouble, Double) Method |
Minimizes the given function near the given starting point, using the given array of partial derivatives.
Namespace: CenterSpace.NMath.CoreAssembly: NMath (in NMath.dll) Version: 7.4
Syntax public DoubleVector Minimize(
Func<double[], double[]> f,
DoubleVector x,
int ydim,
Func<double[], double[]>[] df
)
Public Function Minimize (
f As Func(Of Double(), Double()),
x As DoubleVector,
ydim As Integer,
df As Func(Of Double(), Double())()
) As DoubleVector
public:
DoubleVector^ Minimize(
Func<array<double>^, array<double>^>^ f,
DoubleVector^ x,
int ydim,
array<Func<array<double>^, array<double>^>^>^ df
)
member Minimize :
f : Func<float[], float[]> *
x : DoubleVector *
ydim : int *
df : Func<float[], float[]>[] -> DoubleVector
Parameters
- f FuncDouble, Double
- The function to minimize.
- x DoubleVector
- A starting point.
- ydim Int32
- The size of the range.
- df FuncDouble, Double
- The partial derivatives of f.
Return Value
DoubleVector
The local minimum of
function near the point,
x.
Exceptions Exception | Condition |
---|
InvalidArgumentException |
Thrown if the problem is underconstrained (ydim < x.Length), or if the given array of partial derivatives
is not the same length as x.
|
Remarks
The solution is unbounded.
See Also