RowVariableGoalModel.AddGoal Method

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

Marks a row as a goal row.

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

Syntax

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

Parameters

  • minimize
    Type: System.Boolean
    true to minimize the goal; false to maximize the goal.

Return Value

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

Implements

IGoalModel.AddGoal(Int32, Int32, Boolean)

.NET Framework Security

See Also

Reference

RowVariableGoalModel Class

Microsoft.SolverFoundation.Services Namespace