Export (0) Print
Expand All

NonlinearModel.SparseMatrix.SetActiveVariables 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 all variables in a specified row to either active or inactive.

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

public void SetActiveVariables(
	int rowVid,
	IEnumerable<int> variableIndexes,
	bool active
)

Parameters

rowVid
Type: System.Int32
The row index.
variableIndexes
Type: System.Collections.Generic.IEnumerable<Int32>
All the variables for a dense row.
active
Type: System.Boolean
true to set all variables to active; false to set all variables to inactive.

ExceptionCondition
ArgumentNullException

variableIndices is null.

Show:
© 2015 Microsoft