| TrustRegionMinimizerMinimize(FuncDoubleVector, DoubleVector, DoubleVector, Int32, FuncDoubleVector, DoubleVector, DoubleVector, DoubleVector) Method |
Minimizes the given function near the given starting point, within the specified contraints,
and using the given array of partial derivatives.
Namespace: CenterSpace.NMath.CoreAssembly: NMath (in NMath.dll) Version: 7.4
Syntax public DoubleVector Minimize(
Func<DoubleVector, DoubleVector> f,
DoubleVector x,
int ydim,
Func<DoubleVector, DoubleVector>[] df,
DoubleVector lowerBounds,
DoubleVector upperBounds
)
Public Function Minimize (
f As Func(Of DoubleVector, DoubleVector),
x As DoubleVector,
ydim As Integer,
df As Func(Of DoubleVector, DoubleVector)(),
lowerBounds As DoubleVector,
upperBounds As DoubleVector
) As DoubleVector
public:
DoubleVector^ Minimize(
Func<DoubleVector^, DoubleVector^>^ f,
DoubleVector^ x,
int ydim,
array<Func<DoubleVector^, DoubleVector^>^>^ df,
DoubleVector^ lowerBounds,
DoubleVector^ upperBounds
)
member Minimize :
f : Func<DoubleVector, DoubleVector> *
x : DoubleVector *
ydim : int *
df : Func<DoubleVector, DoubleVector>[] *
lowerBounds : DoubleVector *
upperBounds : DoubleVector -> DoubleVector
Parameters
- f FuncDoubleVector, DoubleVector
- The function to minimize.
- x DoubleVector
- A starting point.
- ydim Int32
- The size of the range.
- df FuncDoubleVector, DoubleVector
- The partial derivatives of f.
- lowerBounds DoubleVector
- Lower bounds for x, such that lower[i] <= x[i].
- upperBounds DoubleVector
- Upper bounds for x, such that upper[i] >= x[i].
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 and
the bounds vectors are not the same length as x.
|
See Also