HybridLocalSearchModel.AddVariable Method (Int32%, Rational, Rational, Boolean)

[This documentation is for preview only, and is subject to change in later releases. Blank topics are included as placeholders.]

Adds a variable to the model, with bounds and integrality given at creation time.

Namespace:  Microsoft.SolverFoundation.Solvers
Assembly:  Microsoft.Solver.Foundation (in Microsoft.Solver.Foundation.dll)

Syntax

'Declaration
Public Function AddVariable ( _
    <OutAttribute> ByRef vid As Integer, _
    lower As Rational, _
    upper As Rational, _
    isInteger As Boolean _
) As Boolean
public bool AddVariable(
    out int vid,
    Rational lower,
    Rational upper,
    bool isInteger
)
public:
bool AddVariable(
    [OutAttribute] int% vid, 
    Rational lower, 
    Rational upper, 
    bool isInteger
)
member AddVariable : 
        vid:int byref * 
        lower:Rational * 
        upper:Rational * 
        isInteger:bool -> bool 
public function AddVariable(
    vid : int, 
    lower : Rational, 
    upper : Rational, 
    isInteger : boolean
) : boolean

Parameters

Return Value

Type: System.Boolean

.NET Framework Security

See Also

Reference

HybridLocalSearchModel Class

AddVariable Overload

Microsoft.SolverFoundation.Solvers Namespace