Domain Class

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

Inheritance Hierarchy

System.Object
  Microsoft.SolverFoundation.Services.Domain

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

Syntax

'Declaration
Public MustInherit Class Domain
public abstract class Domain
public ref class Domain abstract
[<AbstractClass>]
type Domain =  class end
public abstract class Domain

The Domain type exposes the following members.

Properties

  Name Description
Public propertyStatic member Any Gets a domain representing any number or string.
Public propertyStatic member Boolean Gets a domain representing a true or false value.
Public propertyStatic member Integer Gets a domain representing any integer value.
Public propertyStatic member IntegerNonnegative Gets a domain representing any positive integer or zero.
Public property Name Gets or sets the name of this domain.
Public propertyStatic member Probability Gets a domain representing probability.
Public propertyStatic member Real Gets a domain representing any real value.
Public propertyStatic member RealNonnegative Gets a domain representing any positive real value or zero.

Top

Methods

  Name Description
Public methodStatic member Enum Creates a domain representing a choice between a group of strings.
Public method Equals Determines whether the specified Object is equal to the current Object. (Inherited from Object.)
Protected method Finalize Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.)
Public method GetHashCode Serves as a hash function for a particular type. (Inherited from Object.)
Public method GetType Gets the Type of the current instance. (Inherited from Object.)
Public methodStatic member IntegerRange Creates a domain representing an integer value in a restricted range.
Protected method MemberwiseClone Creates a shallow copy of the current Object. (Inherited from Object.)
Public methodStatic member RealRange A domain representing a real value in a restricted range.
Public methodStatic member Set(Int32()) Creates a domain representing values from a discrete set.
Public methodStatic member Set(Rational()) Creates a domain representing values from a discrete set.
Public method ToString Returns a string that represents the current object. (Inherited from Object.)

Top

Remarks

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.

Thread Safety

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

See Also

Reference

Microsoft.SolverFoundation.Services Namespace