[This documentation is for preview only, and is subject to change in later releases. Blank topics are included as placeholders.]
A group of decisions for which a solver finds values.
Assembly: Microsoft.Solver.Foundation (in Microsoft.Solver.Foundation.dll)
Thetype exposes the following members.
|CreateBinding||Creates a DecisionBinding wrapping for the decision.|
|Equals||Determines whether the specified Object is equal to the current Object. (Inherited from Object.)|
|Finalize||Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.)|
|GetDouble||Converts an indexed value to a double.|
|GetHashCode||Serves as a hash function for a particular type. (Inherited from Object.)|
|GetString||Retrieves a sequence of elements for the decision.|
|GetType||Gets the Type of the current instance. (Inherited from Object.)|
|GetValues||Retrieves a sequence of (value, indexes) elements for this decision.|
|MemberwiseClone||Creates a shallow copy of the current Object. (Inherited from Object.)|
|SetBinding<T>(IEnumerable<T>, String)||Initializes a new instance of the class.|
|SetBinding<T>(IEnumerable<T>, String, String)||Initializes a new instance of the class.|
|SetIndexSet||Resets the specified index set.|
|SetInitialValue||Provides a value that is close to the optimal value of the decision.|
|ToDouble||Converts a value to a double.|
|ToString()||Converts the decision to its equivalent string representation. (Overrides Object.ToString().)|
|ToString(IFormatProvider)||Converts the decision to its equivalent string representation.|
|ToString(String, IFormatProvider)||Converts the decision to its equivalent string representation. (Overrides Term.ToString(String, IFormatProvider).)|
Decisions are output variables determined by a solver. All decisions have a domain that determine the range of acceptable values. The decision may be a single value (scalar), or multiple values (a table). To create a single-value decision, pass in a zero-length indexSets array. If indexSets has nonzero length, each element of it represents a set of values which this decision is indexed by. For example, if there are two index sets, then this decision takes two indexes, one from the first set and one from the second set. The total number of decisions is the product of the sizes of all the index sets.