Decision Variable Collection.Remove Method
Definition
Namespace: Numerics.NET.Optimization
Assembly: Numerics.NET (in Numerics.NET.dll) Version: 9.1.5
Assembly: Numerics.NET (in Numerics.NET.dll) Version: 9.1.5
Overload List
| Remove( | Removes the specified variable from the collection. |
| Remove( | Removes the variable with the specified name from the collection. |
Remove(DecisionVariable)
Removes the specified variable from the collection.
public bool Remove(
DecisionVariable item
)Parameters
- item DecisionVariable
- The DecisionVariable to remove.
Return Value
Booleantrue 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.
public bool Remove(
string key
)Parameters
- key String
- The name of the DecisionVariable to remove.
Return Value
Booleantrue 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.