DecisionVariableCollection.Remove Method

Definition

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

Overload List

Remove(DecisionVariable) Removes the specified variable from the collection.
Remove(String) Removes the variable with the specified name from the collection.

Remove(DecisionVariable)

Removes the specified variable from the collection.
C#
public bool Remove(
	DecisionVariable item
)

Parameters

item  DecisionVariable
The DecisionVariable to remove.

Return Value

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

Remove(String)

Removes the variable with the specified name from the collection.
C#
public bool Remove(
	string key
)

Parameters

key  String
The name of the DecisionVariable to remove.

Return Value

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

Implements

IDictionary<TKey, TValue>.Remove(TKey)

See Also