Constructor for BoundedLeastSquares.

Namespace: Imsl.Math
Assembly: ImslCS (in ImslCS.dll) Version: 6.5.0.0

Syntax

C#
public BoundedLeastSquares(
	BoundedLeastSquares..::.IFunction f,
	int mFunctions,
	int nVariables,
	int boundType,
	double[] lowerBound,
	double[] upperBound
)
Visual Basic (Declaration)
Public Sub New ( _
	f As BoundedLeastSquares..::.IFunction, _
	mFunctions As Integer, _
	nVariables As Integer, _
	boundType As Integer, _
	lowerBound As Double(), _
	upperBound As Double() _
)
Visual C++
public:
BoundedLeastSquares(
	BoundedLeastSquares..::.IFunction^ f, 
	int mFunctions, 
	int nVariables, 
	int boundType, 
	array<double>^ lowerBound, 
	array<double>^ upperBound
)

Parameters

f
Type: Imsl.Math..::.BoundedLeastSquares..::.IFunction
The user-supplied BoundedLeastSquares.IFunction to be minimized.
mFunctions
Type: System..::.Int32
A int scalar containing the number of functions.
nVariables
Type: System..::.Int32
A int scalar containing the number of variables.
boundType
Type: System..::.Int32
A int scalar containing the types of bounds on the variable.

boundTypeAction
0User will supply all the bounds.
1All variables are nonnegative.
2All variables are nonpositive.
3User supplies only the bounds on first variable, all other variables will have the same bounds.

lowerBound
Type: array< System..::.Double >[]()[]
A double array containing the lower bounds on the variables.
upperBound
Type: array< System..::.Double >[]()[]
A double array containing the upper bounds on the variables.

Exceptions

ExceptionCondition
System..::.ArgumentException is thrown if the dimensions of mFunctions, nVariables, boundType, lowerBound.length and upperBound.length are not consistent

See Also