Model.AddConstraints Method
[This documentation is for preview only, and is subject to change in later releases. Blank topics are included as placeholders.]
Adds a group of constraints to a model.
Namespace: Microsoft.SolverFoundation.Services
Assembly: Microsoft.Solver.Foundation (in Microsoft.Solver.Foundation.dll)
Syntax
'Declaration
Public Function AddConstraints ( _
name As String, _
ParamArray constraints As Term() _
) As Constraint
public Constraint AddConstraints(
string name,
params Term[] constraints
)
public:
Constraint^ AddConstraints(
String^ name,
... array<Term^>^ constraints
)
member AddConstraints :
name:string *
constraints:Term[] -> Constraint
public function AddConstraints(
name : String,
... constraints : Term[]
) : Constraint
Parameters
- name
Type: System.String
The name of a constraint.
- constraints
Type: array<Microsoft.SolverFoundation.Services.Term[]
The constraints to add to the model.
Return Value
Type: Microsoft.SolverFoundation.Services.Constraint
A constraint for a model.
.NET Framework Security
- 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.