DecisionVariableCollection Class

Represents a collection of variables in a OptimizationModel.

Definition

Namespace: Numerics.NET.Optimization
Assembly: Numerics.NET (in Numerics.NET.dll) Version: 9.0.4
C#
public sealed class DecisionVariableCollection : IDictionary<string, DecisionVariable>, 
	ICollection<KeyValuePair<string, DecisionVariable>>, IEnumerable<KeyValuePair<string, DecisionVariable>>, 
	IEnumerable
Inheritance
Object  →  DecisionVariableCollection
Implements
ICollection<KeyValuePair<String, DecisionVariable>>, IDictionary<String, DecisionVariable>, IEnumerable<KeyValuePair<String, DecisionVariable>>, IEnumerable

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.
ContainsName Returns a value whether the collection contains a variable with the specified name.
CopyTo Copies all variables 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 iterator 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 variables.
GetTypeGets the Type of the current instance.
(Inherited from Object)
GetUpperBounds Gets a vector that contains the upper bounds of the variables.
GetVariablesWithBounds 
Remove(DecisionVariable) Removes the specified variable from the collection.
Remove(String) Removes the variable with the specified name from the collection.
ToStringReturns a string that represents the current object.
(Inherited from Object)
TryGetValueGets 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)
StandardDeviation<KeyValuePair<String, DecisionVariable>> Returns the standard deviation of the elements of a sequence.
(Defined by Stats)
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)
Sum<KeyValuePair<String, DecisionVariable>, T2, U> Computes the sum of the sequence of values that are obtained by invoking a transform function on each pair of elements of the input sequences.
(Defined by ArrayMath)

See Also