Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
AddConstraints Method

CspComposite.AddConstraints Method

Solver Foundation 3.0

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

Returns a value that indicates whether all composite-wise constraint functions added to a model are valid.

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

public bool AddConstraints(
	params CspTerm[] constraints
)

Parameters

constraints
Type: Microsoft.SolverFoundation.Solvers.CspTerm[]
Constraints to be added. Must be constructed using field terms.

Return Value

Type: System.Boolean
true if all composite-wise constraint functions added to a model are valid; otherwise, false.

Show:
© 2015 Microsoft