Export (0) Print
Expand All

INonlinearModel.SetActiveVariable 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.]

Sets a variable in the specified row to either active or inactive.

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

void SetActiveVariable(
	int rowVid,
	int varVid,
	bool active
)

Parameters

rowVid
Type: System.Int32
The row index.
varVid
Type: System.Int32
The variable index.
active
Type: System.Boolean
The value that specifies whether the variable is active. true to set the variable to active; false to set the variable to inactive.

ExceptionCondition
ArgumentException

rowVid is not a valid row index, or varVid is not a valid variable index.

Show:
© 2014 Microsoft