ConstraintCollection Class

Represents a collection of variables in a OptimizationModel.

Definition

Namespace: Extreme.Mathematics.Optimization
Assembly: Extreme.Numerics (in Extreme.Numerics.dll) Version: 8.1.23
C#
public sealed class ConstraintCollection : IDictionary<string, Constraint>, 
	ICollection<KeyValuePair<string, Constraint>>, IEnumerable<KeyValuePair<string, Constraint>>, 
	IEnumerable
Inheritance
Object  →  ConstraintCollection
Implements
ICollection<KeyValuePair<String, Constraint>>, IDictionary<String, Constraint>, IEnumerable<KeyValuePair<String, Constraint>>, IEnumerable

Properties

Count Returns the number of constraints in the collection.
Item[Int32] Gets a constraint from the collection.
Item[String] Gets or sets a Constraint in this collection.
Keys Returns the collection of row names.
Values Gets the values that are contained in this collection.

Methods

Clear Removes all constraints from the collection.
Contains Determines if the specified constraint is in the collection.
ContainsName Returns a value whether the collection contains a constraint with the specified name.
CopyTo Copies all constraints in the collection to the specified array, starting at the specified index.
EqualsDetermines whether the specified object is equal to the current object.
(Inherited from Object)
GetEnumerator Returns an IEnumerator<Constraint> that iterates through the collection.
GetHashCodeServes as the default hash function.
(Inherited from Object)
GetLowerBounds Gets a vector that contains the lower bounds of the constraints.
GetTypeGets the Type of the current instance.
(Inherited from Object)
GetUpperBounds Gets a vector that contains the upper bounds of the constraints.
Remove(Constraint) Removes a constraint from the collection.
Remove(String) Removes the constraint with the specified name from the collection.
ToStringReturns a string that represents the current object.
(Inherited from Object)
TryGetValueGets the constraint with the specified name.

Extension Methods

Group<KeyValuePair<String, Constraint>> Returns a grouping by the unique elements in a sequence.
(Defined by Grouping)
Group<KeyValuePair<String, Constraint>> Returns a grouping by the unique elements in a sequence using the specified comparer to determine equality.
(Defined by Grouping)
Sum<KeyValuePair<String, Constraint>> Computes the sum of the sequence of values.
(Defined by ArrayMath)
Sum<KeyValuePair<String, Constraint>, U> Computes the sum of the sequence of values that are obtained by invoking a transform function on each element of the input sequence.
(Defined by ArrayMath)

See Also