Export (0) Print
Expand All

Decision Class

Solver Foundation 3.0

[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.

System::Object
  Microsoft.SolverFoundation.Services::Term
    Microsoft.SolverFoundation.Services::Decision

Namespace:  Microsoft.SolverFoundation.Services
Assembly:  Microsoft.Solver.Foundation (in Microsoft.Solver.Foundation.dll)

public ref class Decision sealed : public Term

The Decision type exposes the following members.

  NameDescription
Public methodDecision(Domain, String)Initializes a new instance of the Decision class.
Public methodDecision(Domain, String, array<Set>)Initializes a new instance of the Decision class.
Top

  NameDescription
Public propertyBindingGets or sets the LINQ binding to a database.
Public propertyDescriptionGets or sets a comment for the decision object.
Public propertyIndexSetsGets the index sets for the decision object.
Public propertyItemGets the indexes by one or more values.
Public propertyNameGets the name of the decision.
Top

  NameDescription
Public methodCreateBindingCreates a DecisionBinding wrapping for the decision.
Public methodEqualsDetermines whether the specified Object is equal to the current Object. (Inherited from Object.)
Protected methodFinalizeAllows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.)
Public methodGetDoubleConverts an indexed value to a double.
Public methodGetHashCodeServes as a hash function for a particular type. (Inherited from Object.)
Public methodGetStringRetrieves a sequence of elements for the decision.
Public methodGetTypeGets the Type of the current instance. (Inherited from Object.)
Public methodGetValuesRetrieves a sequence of (value, indexes) elements for this decision.
Protected methodMemberwiseCloneCreates a shallow copy of the current Object. (Inherited from Object.)
Public methodSetBinding<T>(IEnumerable<T>, String)Initializes a new instance of the Decision class.
Public methodSetBinding<T>(IEnumerable<T>, String, array<String>)Initializes a new instance of the Decision class.
Public methodSetIndexSetResets the specified index set.
Public methodSetInitialValueProvides a value that is close to the optimal value of the decision.
Public methodToDoubleConverts a value to a double.
Public methodToString()Converts the decision to its equivalent string representation. (Overrides Object::ToString().)
Public methodToString(IFormatProvider)Converts the decision to its equivalent string representation.
Public methodToString(String, IFormatProvider)Converts the decision to its equivalent string representation. (Overrides Term::ToString(String, IFormatProvider).)
Top

  NameDescription
Public Extension MethodGetValuesByFirstIndexReturns the values for a decision that has two index sets. (Defined by BindingUtilities.)
Public Extension MethodGetValuesByIndexReturns the values for a decision with a single index sets. (Defined by BindingUtilities.)
Top

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.

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
Show:
© 2014 Microsoft