HybridLocalSearchModel.AddVariable Method (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 ( _
<OutAttribute> ByRef vid As Integer, _
possibleValues As IEnumerable(Of Rational) _
) As Boolean
public bool AddVariable(
out int vid,
IEnumerable<Rational> possibleValues
)
public:
bool AddVariable(
[OutAttribute] int% vid,
IEnumerable<Rational>^ possibleValues
)
member AddVariable :
vid:int byref *
possibleValues:IEnumerable<Rational> -> bool
public function AddVariable(
vid : int,
possibleValues : IEnumerable<Rational>
) : boolean
Parameters
- vid
Type: System.Int32%
- possibleValues
Type: System.Collections.Generic.IEnumerable<Rational>
Return Value
Type: System.Boolean
.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.