Export (0) Print
Expand All

Model.AddGoal Method (String, GoalKind, 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 goal to a model.

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

public Goal AddGoal(
	string name,
	GoalKind direction,
	Term goal
)

Parameters

name
Type: System.String
The name of the goal.
direction
Type: Microsoft.SolverFoundation.Services.GoalKind
The direction of the goal, such as minimize or maximize.
goal
Type: Microsoft.SolverFoundation.Services.Term
The goal.

Return Value

Type: Microsoft.SolverFoundation.Services.Goal
A goal for a model.

ExceptionCondition
ModelException

The model is invalid.

Show:
© 2015 Microsoft