ILinearModel.AddGoal Method
Solver Foundation 3.0
[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)
'Declaration Function AddGoal ( _ vid As Integer, _ pri As Integer, _ fMinimize As Boolean _ ) As ILinearGoal
Parameters
- vid
- Type: System.Int32
A variable index.
- pri
- Type: System.Int32
The priority of a goal, which determines the order of goal definitions.
- fMinimize
- Type: System.Boolean
true to minimize the goal; otherwise, false.
Return Value
Type: Microsoft.SolverFoundation.Services.ILinearGoalAn ILinearGoal object that is in the goal list in the model.
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.
Show: