LinearModel.SetBounds Method
Sets the bounds for the variable.
Namespace: Microsoft.SolverFoundation.Services
Assembly: Microsoft.Solver.Foundation (in Microsoft.Solver.Foundation.dll)
Syntax
'Declaration
Public Overridable Sub SetBounds ( _
vid As Integer, _
numLo As Rational, _
numHi As Rational _
)
public virtual void SetBounds(
int vid,
Rational numLo,
Rational numHi
)
public:
virtual void SetBounds(
int vid,
Rational numLo,
Rational numHi
)
abstract SetBounds :
vid:int *
numLo:Rational *
numHi:Rational -> unit
override SetBounds :
vid:int *
numLo:Rational *
numHi:Rational -> unit
public function SetBounds(
vid : int,
numLo : Rational,
numHi : Rational
)
Parameters
- vid
Type: System.Int32
A variable index.
- numLo
Type: Microsoft.SolverFoundation.Common.Rational
The lower bound.
- numHi
Type: Microsoft.SolverFoundation.Common.Rational
The upper bound.
Implements
ILinearModel.SetBounds(Int32, Rational, Rational)
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.
See Also
Reference
LinearModel Members