DecisionVariableCollection.TryGetValue Method

Gets the variable with the specified name.

Definition

Namespace: Numerics.NET.Optimization
Assembly: Numerics.NET (in Numerics.NET.dll) Version: 9.0.3
C#
public bool TryGetValue(
	string name,
	out DecisionVariable value
)

Parameters

name  String
The name of the DecisionVariable to get.
value  DecisionVariable
When this method returns, the DecisionVariable named name; otherwise null.

Return Value

Boolean
true if the DecisionVariable named name was successfully removed from the collection; otherwise, false. This method also returns false if a DecisionVariable named name is not found in the original collection.

Implements

IDictionary<TKey, TValue>.TryGetValue(TKey, TValue)

See Also