Decision Class
[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.
Namespace: Microsoft.SolverFoundation.Services
Assembly: Microsoft.Solver.Foundation (in Microsoft.Solver.Foundation.dll)
The Decision type exposes the following members.
| Name | Description | |
|---|---|---|
![]() | Decision(Domain, String) | Initializes a new instance of the Decision class. |
![]() | Decision(Domain, String, Set()) | Initializes a new instance of the Decision class. |
| Name | Description | |
|---|---|---|
![]() | 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(Of T)(IEnumerable(Of T), String) | Initializes a new instance of the Decision class. |
![]() | SetBinding(Of T)(IEnumerable(Of T), String, String()) | Initializes a new instance of the Decision 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).) |
| Name | Description | |
|---|---|---|
![]() | GetValuesByFirstIndex | Returns the values for a decision that has two index sets. (Defined by BindingUtilities.) |
![]() | GetValuesByIndex | Returns the values for a decision with a single index sets. (Defined by BindingUtilities.) |
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.
