Export (0) Print
Expand All
This topic has not yet been rated - Rate this topic

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.

System.Object
  Microsoft.SolverFoundation.Services.Domain

Namespace:  Microsoft.SolverFoundation.Services
Assembly:  Microsoft.Solver.Foundation (in Microsoft.Solver.Foundation.dll)
'Declaration
Public MustInherit Class Domain

The Domain type exposes the following members.

  NameDescription
Public propertyStatic memberAnyGets a domain representing any number or string.
Public propertyStatic memberBooleanGets a domain representing a true or false value.
Public propertyStatic memberIntegerGets a domain representing any integer value.
Public propertyStatic memberIntegerNonnegativeGets a domain representing any positive integer or zero.
Public propertyNameGets or sets the name of this domain.
Public propertyStatic memberProbabilityGets a domain representing probability.
Public propertyStatic memberRealGets a domain representing any real value.
Public propertyStatic memberRealNonnegativeGets a domain representing any positive real value or zero.
Top
  NameDescription
Public methodStatic memberEnumCreates a domain representing a choice between a group of strings.
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 methodGetHashCodeServes as a hash function for a particular type. (Inherited from Object.)
Public methodGetTypeGets the Type of the current instance. (Inherited from Object.)
Public methodStatic memberIntegerRangeCreates a domain representing an integer value in a restricted range.
Protected methodMemberwiseCloneCreates a shallow copy of the current Object. (Inherited from Object.)
Public methodStatic memberRealRangeA domain representing a real value in a restricted range.
Public methodStatic memberSet(Int32())Creates a domain representing values from a discrete set.
Public methodStatic memberSet(Rational())Creates a domain representing values from a discrete set.
Public methodToStringReturns a string that represents the current object. (Inherited from Object.)
Top

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.

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2014 Microsoft. All rights reserved.