Share via


HybridLocalSearchModel.AddVariable Method (Object, Int32%, IEnumerable<Rational>)

[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 a fixed set of possible values.

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

Syntax

'Declaration
Public Function AddVariable ( _
    key As Object, _
    <OutAttribute> ByRef vid As Integer, _
    allowedValues As IEnumerable(Of Rational) _
) As Boolean
public bool AddVariable(
    Object key,
    out int vid,
    IEnumerable<Rational> allowedValues
)
public:
virtual bool AddVariable(
    Object^ key, 
    [OutAttribute] int% vid, 
    IEnumerable<Rational>^ allowedValues
) sealed
abstract AddVariable : 
        key:Object * 
        vid:int byref * 
        allowedValues:IEnumerable<Rational> -> bool 
override AddVariable : 
        key:Object * 
        vid:int byref * 
        allowedValues:IEnumerable<Rational> -> bool 
public final function AddVariable(
    key : Object, 
    vid : int, 
    allowedValues : IEnumerable<Rational>
) : boolean

Parameters

Return Value

Type: System.Boolean

Implements

ITermModel.AddVariable(Object, Int32%, IEnumerable<Rational>)

.NET Framework Security

See Also

Reference

HybridLocalSearchModel Class

AddVariable Overload

Microsoft.SolverFoundation.Solvers Namespace