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)

Public Interface IGoalModel

The IGoalModel type exposes the following members.

Public propertyGoalCountGets the number of goals in a model.
Public propertyGoalsGets the collection of goals for a model.

Public methodAddGoalIdentifies the specified row as a goal row.
Public methodClearGoalsClears all the goals from a model.
Public methodGetGoalFromIndexReturns a goal entry if the row index is associated with a goal row.
Public methodIsGoal(Int32)Returns a value that specifies whether a row index is a goal row.
Public methodIsGoal(Int32, IGoal)Returns a value that specifies whether a row index is a goal row, and returns the associated goal.
Public methodRemoveGoalRemoves 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.