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

Adds a group of constraints to a model.

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

public Constraint AddConstraints(
	string name,
	params Term[] constraints
)

Parameters

name
Type: System.String
The name of a constraint.
constraints
Type: Microsoft.SolverFoundation.Services.Term[]
The constraints to add to the model.

Return Value

Type: Microsoft.SolverFoundation.Services.Constraint
A constraint for a model.

Show: