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

CspComposite 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.]

Defines a composite data type that consists of a finite set of terms.

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

The CspComposite type exposes the following members.

  NameDescription
Public propertyFalseGets the Boolean CspTerm {false}.
Public propertyIsEmptyReturns a value that indicates whether a model in a solver is empty.
Public propertyKeyGets the key of a composite data type.
Public propertyTrueGets the Boolean CspTerm {true}.
Top
  NameDescription
Public methodAbsComputes the absolute value.
Public methodAddConstraintsReturns a value that indicates whether all composite-wise constraint functions added to a model are valid.
Public methodAddFieldAdds a member.
Public methodAndPerforms a Boolean AND operation.
Public methodAtMostMofNTests that at most m inputs are true.
Public methodConstant(Double)Gets a term for the immutable real value k with double precision.
Public methodConstant(Int32)Gets a term for the immutable value k.
Public methodConstant(Int32, Double)Gets a term for the immutable real value k.
Public methodConstant(CspDomain, String)Gets a term for the immutable symbol value k.
Public methodEqual(CspTerm[])Tests if all inputs are equal.
Public methodEqual(Int32, CspTerm[])Tests if all inputs are equal to a constant.
Public methodEqualsDetermines whether the specified Object is equal to the current Object. (Inherited from Object.)
Public methodExactlyMofNTests if exactly m of the inputs are true.
Public methodFieldsAccesses the field of the composite that has the given key.
Public methodFilteredSumAdds the conditional inputs.
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 methodGreater(CspTerm[])Returns a value that indicates whether each input is greater than the following input.
Public methodGreater(Int32, CspTerm[])Returns a value that indicates whether a constant is greater than each input.
Public methodGreaterEqual(CspTerm[])Returns a value that indicates whether each input is greater than or equal to the following input.
Public methodGreaterEqual(Int32, CspTerm[])Returns a value that indicates whether a constant is greater than or equal to the input.
Public methodImpliesTests for logical implication between two inputs.
Public methodIndex(CspTerm[], CspTerm)Returns the value of the inputs[index].
Public methodIndex(CspTerm[], CspTerm[])Returns the input value selected by the keys.
Public methodIndex(CspTerm[][], CspTerm, CspTerm)Returns the value of the inputs[row][column].
Public methodIndex(CspTerm[][], CspTerm, Int32)Returns the value of the inputs[row][column].
Public methodIndex(CspTerm[][], Int32, CspTerm)Returns the value of the inputs[row][column].
Public methodIsElementOfReturns a value that indicates if an input is a member of a domain.
Public methodLess(CspTerm[])Returns a value that indicates if an input is less than the following input.
Public methodLess(Int32, CspTerm[])Returns a value that indicates if an input is less than a constant.
Public methodLessEqual(CspTerm[])Returns a value that indicates if an input is less than or equal to the following input.
Public methodLessEqual(Int32, CspTerm[])Returns a value that indicates if an input is less than or equal to a constant.
Protected methodMemberwiseCloneCreates a shallow copy of the current Object. (Inherited from Object.)
Public methodNegNegates the input.
Public methodNotPerforms the Boolean inverse of the input.
Public methodOrPerforms the Boolean OR of the inputs.
Public methodPowerRaises an input to the power of a specified value.
Public methodProductReturns the product of the inputs.
Public methodSumAdds the inputs.
Public methodSumProductPerforms the sum of the pairwise-product of the inputs.
Public methodTableDecimalCreates a relation constraint by using the column variables and inputs.
Public methodTableDomain(CspTerm[], CspDomain[][])Creates a relation constraint by using the column variables and inputs.
Public methodTableDomain(CspTerm[], IEnumerable<IEnumerable<CspDomain>>)Creates a relation constraint by using the column variables and inputs.
Public methodTableIntegerCreates a relation constraint by using the column variables and inputs.
Public methodTableSymbolCreates a relation constraint by using the column variables and inputs.
Public methodTableTerm(CspTerm[], CspTerm[][])Creates a relation constraint by using the column variables and inputs.
Public methodTableTerm(CspTerm[], IEnumerable<IEnumerable<CspTerm>>)Creates a relation constraint by using the column variables and inputs.
Public methodToStringConverts a CspComposite object to its equivalent string representation. (Overrides Object.ToString().)
Public methodUnequal(CspTerm[])Returns a value that indicates if every pairing of the inputs is unequal.
Public methodUnequal(Int32, CspTerm[])Returns a value that indicates if every input is unequal to a constant.
Top

Each term has its own domain.

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.