Export (0) Print
Expand All

Model.AddGoals 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 goals to a model.

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

public Goal[] AddGoals(
	string name,
	GoalKind direction,
	params Term[] goals
)

Parameters

name
Type: System.String
The name of a goal.
direction
Type: Microsoft.SolverFoundation.Services.GoalKind
The direction of the goal, such as minimize or maximize.
goals
Type: Microsoft.SolverFoundation.Services.Term[]
The goals to add to the model.

Return Value

Type: Microsoft.SolverFoundation.Services.Goal[]
A group of goals that are added to the model.

Show:
© 2015 Microsoft