BoundedLeastSquares Constructor |
Constructor for BoundedLeastSquares.
Namespace: Imsl.MathAssembly: ImslCS (in ImslCS.dll) Version: 6.5.2.0
Syntax public BoundedLeastSquares(
BoundedLeastSquaresIFunction f,
int mFunctions,
int nVariables,
int boundType,
double[] lowerBound,
double[] upperBound
)
Public Sub New (
f As BoundedLeastSquaresIFunction,
mFunctions As Integer,
nVariables As Integer,
boundType As Integer,
lowerBound As Double(),
upperBound As Double()
)
public:
BoundedLeastSquares(
BoundedLeastSquaresIFunction^ f,
int mFunctions,
int nVariables,
int boundType,
array<double>^ lowerBound,
array<double>^ upperBound
)
new :
f : BoundedLeastSquaresIFunction *
mFunctions : int *
nVariables : int *
boundType : int *
lowerBound : float[] *
upperBound : float[] -> BoundedLeastSquares
Parameters
- f
- Type: Imsl.MathBoundedLeastSquaresIFunction
The user-supplied BoundedLeastSquares.IFunction to be
minimized.
- mFunctions
- Type: SystemInt32
A int scalar containing the number of functions.
- nVariables
- Type: SystemInt32
A int scalar containing the number of variables.
- boundType
- Type: SystemInt32
A int scalar containing the types of bounds on the variable.
boundType | Action |
---|
0 | User will supply all the bounds. |
1 | All variables are nonnegative. |
2 | All variables are nonpositive. |
3 | User supplies only the bounds on first variable, all other
variables will have the same bounds. |
- lowerBound
- Type: SystemDouble
A double array containing the lower bounds on the variables.
- upperBound
- Type: SystemDouble
A double array containing the upper bounds on the variables.
Exceptions Exception | Condition |
---|
ArgumentException |
is thrown if the dimensions of mFunctions, nVariables,
boundType, lowerBound.length and
upperBound.length are not consistent
|
See Also