HybridLocalSearchModel.IGoalModel.AddGoal Method

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

Adds a goal to the collection.

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

Syntax

'Declaration
Private Function AddGoal ( _
    vid As Integer, _
    pri As Integer, _
    fMinimize As Boolean _
) As IGoal Implements IGoalModel.AddGoal
IGoal IGoalModel.AddGoal(
    int vid,
    int pri,
    bool fMinimize
)
private:
virtual IGoal^ AddGoal(
    int vid, 
    int pri, 
    bool fMinimize
) sealed = IGoalModel::AddGoal
private abstract AddGoal : 
        vid:int * 
        pri:int * 
        fMinimize:bool -> IGoal 
private override AddGoal : 
        vid:int * 
        pri:int * 
        fMinimize:bool -> IGoal 
JScript does not support explicit interface implementations.

Parameters

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

Return Value

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

Implements

IGoalModel.AddGoal(Int32, Int32, Boolean)

.NET Framework Security

See Also

Reference

HybridLocalSearchModel Class

Microsoft.SolverFoundation.Solvers Namespace