IGoalModel Interface
[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)
Syntax
'Declaration
Public Interface IGoalModel
public interface IGoalModel
public interface class IGoalModel
type IGoalModel = interface end
public interface IGoalModel
The IGoalModel type exposes the following members.
Properties
Name | Description | |
---|---|---|
GoalCount | Gets the number of goals in a model. | |
Goals | Gets the collection of goals for a model. |
Top
Methods
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. |
Top
Remarks
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.