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

Implements

ILinearModel.SetBounds(Int32, Rational, Rational)

Exceptions

Exception Condition
ArgumentException

The lower bound is greater than the upper bound.

.NET Framework Security

See Also

Reference

LinearModel Class

LinearModel Members

Microsoft.SolverFoundation.Services Namespace