IGoalModel Interface
Solver Foundation 3.0
[This documentation is for preview only, and is subject to change in later releases. Blank topics are included as placeholders.]
Encapsulates an optimization model that has goals.
Namespace: Microsoft.SolverFoundation.Services
Assembly: Microsoft.Solver.Foundation (in Microsoft.Solver.Foundation.dll)
The IGoalModel type exposes the following members.
| Name | Description | |
|---|---|---|
![]() | AddGoal | Identifies the specified row as a goal row. |
![]() | ClearGoals | Clears all the goals from a model. |
![]() | GetGoalFromIndex | Returns a goal entry if the row index is associated with a goal row. |
![]() | IsGoal(Int32) | Returns a value that specifies whether a row index is a goal row. |
![]() | IsGoal(Int32, IGoal) | Returns a value that specifies whether a row index is a goal row, and returns the associated goal. |
![]() | RemoveGoal | Removes a goal row. |
This interface is inherited by model interfaces such as ILinearModel and INonlinearModel.
You identify goals by using variable indexes, which must be integers. To specify multiple goals, you can call AddGoal multiple times.
Show:
