Domain 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.]
The set of possible values for a decision or parameter.
Namespace: Microsoft.SolverFoundation.Services
Assembly: Microsoft.Solver.Foundation (in Microsoft.Solver.Foundation.dll)
The Domain type exposes the following members.
Name | Description | |
---|---|---|
![]() ![]() | Any | Gets a domain representing any number or string. |
![]() ![]() | Boolean | Gets a domain representing a true or false value. |
![]() ![]() | Integer | Gets a domain representing any integer value. |
![]() ![]() | IntegerNonnegative | Gets a domain representing any positive integer or zero. |
![]() | Name | Gets or sets the name of this domain. |
![]() ![]() | Probability | Gets a domain representing probability. |
![]() ![]() | Real | Gets a domain representing any real value. |
![]() ![]() | RealNonnegative | Gets a domain representing any positive real value or zero. |
Name | Description | |
---|---|---|
![]() ![]() | Enum | Creates a domain representing a choice between a group of strings. |
![]() | 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.) |
![]() | GetHashCode | Serves as a hash function for a particular type. (Inherited from Object.) |
![]() | GetType | Gets the Type of the current instance. (Inherited from Object.) |
![]() ![]() | IntegerRange | Creates a domain representing an integer value in a restricted range. |
![]() | MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) |
![]() ![]() | RealRange | A domain representing a real value in a restricted range. |
![]() ![]() | Set(Int32[]) | Creates a domain representing values from a discrete set. |
![]() ![]() | Set(Rational[]) | Creates a domain representing values from a discrete set. |
![]() | ToString | Returns a string that represents the current object. (Inherited from Object.) |
Domains determine the range of acceptable values for a decision or a parameter. A Domain instance is created by calling a static method on the Domain class. Domains that are frequently used include Real and Integer. The domains of decisions and parameters are considered when determining which solvers may be used to solve a model.
Show: