ILinearModel.SetBounds Method
[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)
Syntax
'Declaration
Sub SetBounds ( _
vid As Integer, _
numLo As Rational, _
numHi As Rational _
)
void SetBounds(
int vid,
Rational numLo,
Rational numHi
)
void SetBounds(
int vid,
Rational numLo,
Rational numHi
)
abstract SetBounds :
vid:int *
numLo:Rational *
numHi:Rational -> unit
function SetBounds(
vid : int,
numLo : Rational,
numHi : Rational
)
Parameters
- vid
Type: System.Int32
The index of the variable.
- numLo
Type: Microsoft.SolverFoundation.Common.Rational
The lower bound.
- numHi
Type: Microsoft.SolverFoundation.Common.Rational
The upper bound.
Exceptions
Exception | Condition |
---|---|
ArgumentException | The lower bound is greater than the upper bound. |
.NET Framework Security
- 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.