CspSetOperators Class

[This documentation is for preview only, and is subject to change in later releases. Blank topics are included as placeholders.]

Defines set operators for models.

Inheritance Hierarchy

System.Object
  Microsoft.SolverFoundation.Solvers.CspSetOperators

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

Syntax

'Declaration
<ExtensionAttribute> _
Public NotInheritable Class CspSetOperators
public static class CspSetOperators
[ExtensionAttribute]
public ref class CspSetOperators abstract sealed
[<AbstractClass>]
[<Sealed>]
type CspSetOperators =  class end
public final class CspSetOperators

The CspSetOperators type exposes the following members.

Methods

  Name Description
Public methodStatic member Cardinality Counts the number of elements in a set variable.
Public methodStatic member ConstantDecimalSet Creates a constant decimal set.
Public methodStatic member ConstantIntegerSet Creates a constant integer set.
Public methodStatic member ConstantSymbolSet Creates a constant symbol set.
Public methodStatic member CreatePowerSet Creates a power set to use as the domain for baseline.
Public methodStatic member Difference Computes the difference between two sets.
Public methodStatic member Intersection Computes the intersection between two sets.
Public methodStatic member MemberOf(ConstraintSystem, CspTerm, CspTerm) Creates a term that indicates whether a value is a member of a set variable.
Public methodStatic member MemberOf(ConstraintSystem, CspTerm, Int32()) Creates a term that indicates whether a value is a member of a set.
Public methodStatic member MemberOf(ConstraintSystem, Int32, CspTerm) Creates a term that indicates whether a value is a member of a set variable.
Public methodStatic member SetEqual(ConstraintSystem, CspTerm, CspTerm) Creates a term that indicates whether two set variables are equal.
Public methodStatic member SetEqual(ConstraintSystem, CspTerm, Int32()) Creates a term that indicates whether a set variable is equal to a set.
Public methodStatic member SetEqual(ConstraintSystem, Int32(), CspTerm) Creates a term that indicates whether a set is equal to a set variable.
Public methodStatic member SubsetEq(ConstraintSystem, CspTerm, CspTerm) Creates a term that indicates if a set variable is a subset of another set variable.
Public methodStatic member SubsetEq(ConstraintSystem, CspTerm, Int32()) Creates a term that indicates if a set variable is a subset of another set.
Public methodStatic member SubsetEq(ConstraintSystem, Int32(), CspTerm) Creates a term that indicates if a set if a subset of a set variable.
Public methodStatic member Union Creates a term that represents the union of two sets.

Top

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.Solvers Namespace