Constraint Collection 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#
Assembly: Extreme.Numerics (in Extreme.Numerics.dll) Version: 8.1.23
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. |
Contains | Returns a value whether the collection contains a constraint with the specified name. |
Copy | Copies all constraints in the collection to the specified array, starting at the specified index. |
Equals | Determines whether the specified object is equal to the current object. (Inherited from Object) |
Get | Returns an IEnumerator<Constraint> that iterates through the collection. |
Get | Serves as the default hash function. (Inherited from Object) |
Get | Gets a vector that contains the lower bounds of the constraints. |
Get | Gets the Type of the current instance. (Inherited from Object) |
Get | Gets a vector that contains the upper bounds of the constraints. |
Remove( | Removes a constraint from the collection. |
Remove( | Removes the constraint with the specified name from the collection. |
ToString | Returns a string that represents the current object. (Inherited from Object) |
Try | Gets 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) |