DecisionVariableCollection.Item Property

Definition

Namespace: Numerics.NET.Optimization
Assembly: Numerics.NET (in Numerics.NET.dll) Version: 9.0.0

Overload List

Item[Int32] Gets the DecisionVariable at the specified position in the collection.
Item[String] Gets or sets a variable in the collection.

Item(Int32)

Gets the DecisionVariable at the specified position in the collection.
C#
public DecisionVariable this[
	int index
] { get; }

Parameters

index  Int32
The zero-based index of the variable to be returned.

Return Value

DecisionVariable
A DecisionVariable.

Item(String)

Gets or sets a variable in the collection.
C#
public DecisionVariable this[
	string key
] { get; set; }

Parameters

key  String
The name of the variable.

Return Value

DecisionVariable
The DecisionVariable with name key.

Implements

IDictionary<TKey, TValue>.Item[TKey]

See Also