Model.AddGoal Method (String, GoalKind, Term)

[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)

Syntax

'Declaration
Public Function AddGoal ( _
    name As String, _
    direction As GoalKind, _
    goal As Term _
) As Goal
public Goal AddGoal(
    string name,
    GoalKind direction,
    Term goal
)
public:
Goal^ AddGoal(
    String^ name, 
    GoalKind direction, 
    Term^ goal
)
member AddGoal : 
        name:string * 
        direction:GoalKind * 
        goal:Term -> Goal 
public function AddGoal(
    name : String, 
    direction : GoalKind, 
    goal : Term
) : Goal

Parameters

Return Value

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

Exceptions

Exception Condition
ModelException

The model is invalid.

.NET Framework Security

See Also

Reference

Model Class

AddGoal Overload

Microsoft.SolverFoundation.Services Namespace