  | TrustRegionMinimizerMinimize(FuncDouble, Double, DoubleVector, Int32, DoubleVector, DoubleVector) Method | 
            Minimizes the given function near the given starting point, within the specified contraints.
            
Namespace: CenterSpace.NMath.CoreAssembly: NMath (in NMath.dll) Version: 7.4
Syntaxpublic DoubleVector Minimize(
	Func<double[], double[]> f,
	DoubleVector x,
	int ydim,
	DoubleVector lowerBounds,
	DoubleVector upperBounds
)
Public Function Minimize ( 
	f As Func(Of Double(), Double()),
	x As DoubleVector,
	ydim As Integer,
	lowerBounds As DoubleVector,
	upperBounds As DoubleVector
) As DoubleVector
public:
DoubleVector^ Minimize(
	Func<array<double>^, array<double>^>^ f, 
	DoubleVector^ x, 
	int ydim, 
	DoubleVector^ lowerBounds, 
	DoubleVector^ upperBounds
)
member Minimize : 
        f : Func<float[], float[]> * 
        x : DoubleVector * 
        ydim : int * 
        lowerBounds : DoubleVector * 
        upperBounds : DoubleVector -> DoubleVector Parameters
- f  FuncDouble, Double
 - The function to minimize.
 - x  DoubleVector
 - A starting point.
 - ydim  Int32
 - The size of the range.
 - 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 bounds vectors
            are not the same length as x. 
             | 
Remarks
            A numerical approximation of the partial derivatives is computed.
            
See Also