NonlinearModel.SparseMatrix.SetActiveVariables Method
[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)
Syntax
'Declaration
Public Sub SetActiveVariables ( _
rowVid As Integer, _
variableIndexes As IEnumerable(Of Integer), _
active As Boolean _
)
public void SetActiveVariables(
int rowVid,
IEnumerable<int> variableIndexes,
bool active
)
public:
void SetActiveVariables(
int rowVid,
IEnumerable<int>^ variableIndexes,
bool active
)
member SetActiveVariables :
rowVid:int *
variableIndexes:IEnumerable<int> *
active:bool -> unit
public function SetActiveVariables(
rowVid : int,
variableIndexes : IEnumerable<int>,
active : boolean
)
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.
Exceptions
Exception | Condition |
---|---|
ArgumentNullException | variableIndices is a null reference (Nothing in Visual Basic). |
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.