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
Public property GoalCount Gets the number of goals in a model.
Public property Goals Gets the collection of goals for a model.

Top

Methods

  Name Description
Public method AddGoal Identifies the specified row as a goal row.
Public method ClearGoals Clears all the goals from a model.
Public method GetGoalFromIndex Returns a goal entry if the row index is associated with a goal row.
Public method IsGoal(Int32) Returns a value that specifies whether a row index is a goal row.
Public method IsGoal(Int32, IGoal%) Returns a value that specifies whether a row index is a goal row, and returns the associated goal.
Public method 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.

See Also

Reference

Microsoft.SolverFoundation.Services Namespace