LinearModel.AddGoal Method

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

Creates an ILinearGoal object and adds it to the goal list in a model.

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, _
    fMinimize As Boolean _
) As ILinearGoal
public virtual ILinearGoal AddGoal(
    int vid,
    int pri,
    bool fMinimize
)
public:
virtual ILinearGoal^ AddGoal(
    int vid, 
    int pri, 
    bool fMinimize
)
abstract AddGoal : 
        vid:int * 
        pri:int * 
        fMinimize:bool -> ILinearGoal 
override AddGoal : 
        vid:int * 
        pri:int * 
        fMinimize:bool -> ILinearGoal 
public function AddGoal(
    vid : int, 
    pri : int, 
    fMinimize : boolean
) : ILinearGoal

Parameters

  • pri
    Type: System.Int32
    The priority of a goal, which determines the order of goal definitions.
  • fMinimize
    Type: System.Boolean
    A value that determines the goal direction. true to minimize the goal; false to maximize the goal.

Return Value

Type: Microsoft.SolverFoundation.Services.ILinearGoal
An ILinearGoal object that is in the goal list in the model.

Implements

ILinearModel.AddGoal(Int32, Int32, Boolean)

.NET Framework Security

See Also

Reference

LinearModel Class

Microsoft.SolverFoundation.Services Namespace