UnconstrainedNonlinearModel.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.
Namespace: Microsoft.SolverFoundation.Solvers
Assembly: Microsoft.Solver.Foundation (in Microsoft.Solver.Foundation.dll)
Syntax
'Declaration
Public Function AddGoal ( _
vid As Integer, _
pri As Integer, _
minimize As Boolean _
) As IGoal
public IGoal AddGoal(
int vid,
int pri,
bool minimize
)
public:
virtual IGoal^ AddGoal(
int vid,
int pri,
bool minimize
) sealed
abstract AddGoal :
vid:int *
pri:int *
minimize:bool -> IGoal
override AddGoal :
vid:int *
pri:int *
minimize:bool -> IGoal
public final function AddGoal(
vid : int,
pri : int,
minimize : boolean
) : IGoal
Parameters
- vid
Type: System.Int32
A row id.
- pri
Type: System.Int32
The priority of a goal.
- minimize
Type: System.Boolean
Specifies whether to minimize the goal row.
Return Value
Type: Microsoft.SolverFoundation.Services.IGoal
An IGoal representing the goal.
Implements
IGoalModel.AddGoal(Int32, Int32, Boolean)
Remarks
This solver supports only one goal.
.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.