Adds upper and lower bound constraints to a variable.
Namespace:
CenterSpace.NMath.Analysis
Assembly:
NMath (in NMath.dll) Version: 5.1.0.0
Syntax
| C# |
|---|
public void AddBounds(
int variableIndex,
double lowerBound,
double upperBound
) |
| Visual Basic (Declaration) |
|---|
Public Sub AddBounds ( _
variableIndex As Integer, _
lowerBound As Double, _
upperBound As Double _
) |
| Visual C++ |
|---|
public:
void AddBounds(
int variableIndex,
double lowerBound,
double upperBound
) |
Parameters
- variableIndex
- Type: System..::.Int32
>The zero-based index of the variable to which the
constraint is applied.
- lowerBound
- Type: System..::.Double
The value of the lower bound for the variable.
- upperBound
- Type: System..::.Double
The value of the upper bound for the variable.
See Also