Decision Variable 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 DecisionVariableCollection : IDictionary<string, DecisionVariable>,
ICollection<KeyValuePair<string, DecisionVariable>>, IEnumerable<KeyValuePair<string, DecisionVariable>>,
IEnumerable
- Inheritance
- Object → DecisionVariableCollection
Properties
Count | Gets the number of variables in the collection. |
Item[Int32] | Gets the DecisionVariable at the specified position in the collection. |
Item[String] | Gets or sets a variable in the collection. |
Names | Gets the collection of names of the variables in the collection. |
Values | Returns a collection that enumerates over the variables. |
Methods
Clear | Removes all variables from the collection. |
Contains | Determines if the specified variable is in the collection. |
Contains | Returns a value whether the collection contains a variable with the specified name. |
Copy | Copies all variables 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 iterator 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 variables. |
Get | Gets the Type of the current instance. (Inherited from Object) |
Get | Gets a vector that contains the upper bounds of the variables. |
Remove( | Removes the specified variable from the collection. |
Remove( | Removes the variable with the specified name from the collection. |
ToString | Returns a string that represents the current object. (Inherited from Object) |
Try | Gets the variable with the specified name. |
Extension Methods
Group<KeyValuePair<String, DecisionVariable>> |
Returns a grouping by the unique elements in a sequence.
(Defined by Grouping) |
Group<KeyValuePair<String, DecisionVariable>> |
Returns a grouping by the unique elements in a sequence
using the specified comparer to determine equality.
(Defined by Grouping) |
Sum<KeyValuePair<String, DecisionVariable>> |
Computes the sum of the sequence of values.
(Defined by ArrayMath) |
Sum<KeyValuePair<String, DecisionVariable>, 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) |