 | TrustRegionMinimizerMinimize Method (FuncDouble, Double, DoubleVector, Int32, FuncDouble, Double, DoubleVector, DoubleVector) |
Minimizes the given function near the given starting point, within the specified contraints,
and using the given array of partial derivatives.
Namespace:
CenterSpace.NMath.Core
Assembly:
NMath (in NMath.dll) Version: 7.3
Syntaxpublic DoubleVector Minimize(
Func<double[], double[]> f,
DoubleVector x,
int ydim,
Func<double[], double[]>[] df,
DoubleVector lowerBounds,
DoubleVector upperBounds
)
Public Function Minimize (
f As Func(Of Double(), Double()),
x As DoubleVector,
ydim As Integer,
df As Func(Of Double(), Double())(),
lowerBounds As DoubleVector,
upperBounds As DoubleVector
) As DoubleVector
public:
DoubleVector^ Minimize(
Func<array<double>^, array<double>^>^ f,
DoubleVector^ x,
int ydim,
array<Func<array<double>^, array<double>^>^>^ df,
DoubleVector^ lowerBounds,
DoubleVector^ upperBounds
)
member Minimize :
f : Func<float[], float[]> *
x : DoubleVector *
ydim : int *
df : Func<float[], float[]>[] *
lowerBounds : DoubleVector *
upperBounds : DoubleVector -> DoubleVector
Parameters
- f
- Type: SystemFuncDouble, Double
The function to minimize. - x
- Type: CenterSpace.NMath.CoreDoubleVector
A starting point. - ydim
- Type: SystemInt32
The size of the range. - df
- Type: SystemFuncDouble, Double
The partial derivatives of f. - lowerBounds
- Type: CenterSpace.NMath.CoreDoubleVector
Lower bounds for x, such that lower[i] <= x[i]. - upperBounds
- Type: CenterSpace.NMath.CoreDoubleVector
Upper bounds for x, such that upper[i] >= x[i].
Return Value
Type:
DoubleVector
The local minimum of
function near the point,
x.
ExceptionsException | Condition |
---|
InvalidArgumentException |
Thrown if the problem is underconstrained (ydim < x.Length), or if the given array of partial derivatives and
the bounds vectors are not the same length as x.
|
See Also