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
- vid
Type: System.Int32
The row index.
- pri
Type: System.Int32
The priority of the goal.
- 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
- 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.