IRowVariableModel.SetBounds Method
Solver Foundation 3.0
[This documentation is for preview only, and is subject to change in later releases. Blank topics are included as placeholders.]
Sets the bounds for a variable.
Namespace: Microsoft.SolverFoundation.Services
Assembly: Microsoft.Solver.Foundation (in Microsoft.Solver.Foundation.dll)
Parameters
- vid
- Type: System.Int32
The variable index.
- lower
- Type: Microsoft.SolverFoundation.Common.Rational
The lower bound of the row.
- upper
- Type: Microsoft.SolverFoundation.Common.Rational
The upper bound of the row.
| Exception | Condition |
|---|---|
| ArgumentException | The variable index has a lower bound that is greater than its upper bound. |
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.