UnconstrainedNonlinearModel.AddGoal Method

Solver Foundation 3.0

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

Marks a row as a goal.

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

public IGoal AddGoal(
	int vid,
	int pri,
	bool minimize
)

Parameters

vid
Type: System.Int32
A row id.
pri
Type: System.Int32
The priority of a goal.
minimize
Type: System.Boolean
Specifies whether to minimize the goal row.

Return Value

Type: Microsoft.SolverFoundation.Services.IGoal
An IGoal representing the goal.

Implements

IGoalModel.AddGoal(Int32, Int32, Boolean)

This solver supports only one goal.

Show: