ConstraintCollection.Remove Method

Definition

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

Overload List

Remove(Constraint) Removes a constraint from the collection.
Remove(String) Removes the constraint with the specified name from the collection.

Remove(Constraint)

Removes a constraint from the collection.
C#
public bool Remove(
	Constraint item
)

Parameters

item  Constraint
The Constraint to remove.

Return Value

Boolean
true 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.
C#
public bool Remove(
	string name
)

Parameters

name  String
The name of the Constraint to remove.

Return Value

Boolean
true 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.

See Also