Constraint Collection.Remove Method
Definition
Namespace: Numerics.NET.Optimization
Assembly: Numerics.NET (in Numerics.NET.dll) Version: 9.0.2
Assembly: Numerics.NET (in Numerics.NET.dll) Version: 9.0.2
Overload List
Remove( | Removes a constraint from the collection. |
Remove( | Removes the constraint with the specified name from the collection. |
Remove(Constraint)
Removes a constraint from the collection.
public bool Remove(
Constraint item
)
Parameters
- item Constraint
- The Constraint to remove.
Return Value
Booleantrue if item is successfully removed; otherwise, false. This method also returns false if item was not found in the collection.
Remove(String)
Removes the constraint with the specified name from the collection.
public bool Remove(
string name
)
Parameters
- name String
- The name of the Constraint to remove.
Return Value
Booleantrue if the Constraint named name was successfully removed from the collection; otherwise, false. This method also returns false if a Constraint named name is not found in the original collection.