Model.AddGoals Method

[This documentation is for preview only, and is subject to change in later releases. Blank topics are included as placeholders.]

Adds a group of goals to a model.

Namespace:  Microsoft.SolverFoundation.Services
Assembly:  Microsoft.Solver.Foundation (in Microsoft.Solver.Foundation.dll)

Syntax

'Declaration
Public Function AddGoals ( _
    name As String, _
    direction As GoalKind, _
    ParamArray goals As Term() _
) As Goal()
public Goal[] AddGoals(
    string name,
    GoalKind direction,
    params Term[] goals
)
public:
array<Goal^>^ AddGoals(
    String^ name, 
    GoalKind direction, 
    ... array<Term^>^ goals
)
member AddGoals : 
        name:string * 
        direction:GoalKind * 
        goals:Term[] -> Goal[] 
public function AddGoals(
    name : String, 
    direction : GoalKind, 
    ... goals : Term[]
) : Goal[]

Parameters

Return Value

Type: array<Microsoft.SolverFoundation.Services.Goal[]
A group of goals that are added to the model.

.NET Framework Security

See Also

Reference

Model Class

Microsoft.SolverFoundation.Services Namespace