Export (0) Print
Expand All
This topic has not yet been rated - Rate this topic

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.

Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback
© 2014 Microsoft. All rights reserved.