IGoalModel.AddGoal Method

[This documentation is for preview only, and is subject to change in later releases. Blank topics are included as placeholders.]

Identifies the specified row as a goal row.

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

Syntax

'Declaration
Function AddGoal ( _
    vid As Integer, _
    pri As Integer, _
    minimize As Boolean _
) As IGoal
IGoal AddGoal(
    int vid,
    int pri,
    bool minimize
)
IGoal^ AddGoal(
    int vid, 
    int pri, 
    bool minimize
)
abstract AddGoal : 
        vid:int * 
        pri:int * 
        minimize:bool -> IGoal 
function AddGoal(
    vid : int, 
    pri : int, 
    minimize : boolean
) : IGoal

Parameters

  • pri
    Type: System.Int32
    The priority of the goal. A lower value indicates a higher priority.
  • minimize
    Type: System.Boolean
    true to minimize the goal; otherwise, false.

Return Value

Type: Microsoft.SolverFoundation.Services.IGoal
The goal.

.NET Framework Security

See Also

Reference

IGoalModel Interface

Microsoft.SolverFoundation.Services Namespace