NonlinearModel.SparseMatrix.SetActiveVariable Method
[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)
Syntax
'Declaration
Public Sub SetActiveVariable ( _
rowVid As Integer, _
varVid As Integer, _
active As Boolean _
)
public void SetActiveVariable(
int rowVid,
int varVid,
bool active
)
public:
void SetActiveVariable(
int rowVid,
int varVid,
bool active
)
member SetActiveVariable :
rowVid:int *
varVid:int *
active:bool -> unit
public function SetActiveVariable(
rowVid : int,
varVid : int,
active : boolean
)
Parameters
- rowVid
Type: System.Int32
The row index.
- varVid
Type: System.Int32
The variable index.
- active
Type: System.Boolean
true to set the variable to active; false to set the variable to inactive.
Exceptions
Exception | Condition |
---|---|
ArgumentException | rowVid is not a valid row index, or varVid is not a valid variable index. |
.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.