HybridLocalSearchModel.AddVariable Method (Object, 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 ( _
key As Object, _
<OutAttribute> ByRef vid As Integer, _
lower As Rational, _
upper As Rational, _
isInteger As Boolean _
) As Boolean
public bool AddVariable(
Object key,
out int vid,
Rational lower,
Rational upper,
bool isInteger
)
public:
virtual bool AddVariable(
Object^ key,
[OutAttribute] int% vid,
Rational lower,
Rational upper,
bool isInteger
) sealed
abstract AddVariable :
key:Object *
vid:int byref *
lower:Rational *
upper:Rational *
isInteger:bool -> bool
override AddVariable :
key:Object *
vid:int byref *
lower:Rational *
upper:Rational *
isInteger:bool -> bool
public final function AddVariable(
key : Object,
vid : int,
lower : Rational,
upper : Rational,
isInteger : boolean
) : boolean
Parameters
- key
Type: System.Object
- vid
Type: System.Int32%
- lower
Type: Microsoft.SolverFoundation.Common.Rational
- upper
Type: Microsoft.SolverFoundation.Common.Rational
- isInteger
Type: System.Boolean
Return Value
Type: System.Boolean
Implements
ITermModel.AddVariable(Object, Int32%, Rational, Rational, 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.