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

Solver Foundation 3.0

[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)

public bool AddVariable(
	Object key,
	out int vid,
	IEnumerable<Rational> allowedValues
)

Parameters

key
Type: System.Object
vid
Type: System.Int32%
allowedValues
Type: System.Collections.Generic.IEnumerable<Rational>

Return Value

Type: System.Boolean

Implements

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

Show: