Model.AddConstraint Method (String, Term)
Solver Foundation 3.0
[This documentation is for preview only, and is subject to change in later releases. Blank topics are included as placeholders.]
Adds a constraint to the model..
Assembly: Microsoft.Solver.Foundation (in Microsoft.Solver.Foundation.dll)
- Type: System.String
The name of the constraint.
- Type: Microsoft.SolverFoundation.Services.Term
Return ValueType: Microsoft.SolverFoundation.Services.Constraint
A constraint for the model.
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.