Minimizes the given function near the given starting point, within the specified contraints,
and using the given array of partial derivatives.
Namespace:
CenterSpace.NMath.AnalysisAssembly: NMath (in NMath.dll) Version: 5.1.0.0
Syntax
| C# |
|---|
public DoubleVector Minimize( NMathFunctions..::.DoubleVectorDoubleVectorFunction f, DoubleVector x, int ydim, NMathFunctions..::.DoubleVectorDoubleVectorFunction[] df, DoubleVector lowerBounds, DoubleVector upperBounds ) |
| Visual Basic (Declaration) |
|---|
Public Function Minimize ( _ f As NMathFunctions..::.DoubleVectorDoubleVectorFunction, _ x As DoubleVector, _ ydim As Integer, _ df As NMathFunctions..::.DoubleVectorDoubleVectorFunction(), _ lowerBounds As DoubleVector, _ upperBounds As DoubleVector _ ) As DoubleVector |
| Visual C++ |
|---|
public: DoubleVector^ Minimize( NMathFunctions..::.DoubleVectorDoubleVectorFunction^ f, DoubleVector^ x, int ydim, array<NMathFunctions..::.DoubleVectorDoubleVectorFunction^>^ df, DoubleVector^ lowerBounds, DoubleVector^ upperBounds ) |
Parameters
- f
- Type: CenterSpace.NMath.Core..::.NMathFunctions..::.DoubleVectorDoubleVectorFunction
The function to minimize.
- x
- Type: CenterSpace.NMath.Core..::.DoubleVector
A starting point.
- ydim
- Type: System..::.Int32
The size of the range.
- df
- Type: array<
CenterSpace.NMath.Core..::.NMathFunctions..::.DoubleVectorDoubleVectorFunction
>[]()[]
The partial derivatives of f.
- lowerBounds
- Type: CenterSpace.NMath.Core..::.DoubleVector
Lower bounds for x, such that lower[i] <= x[i].
- upperBounds
- Type: CenterSpace.NMath.Core..::.DoubleVector
Upper bounds for x, such that upper[i] >= x[i].
Return Value
The local minimum of function near the point, x.
Exceptions
| Exception | Condition |
|---|---|
| CenterSpace.NMath.Core..::.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. |