INonlinearModel.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
Sub SetActiveVariables ( _
rowVid As Integer, _
active As Boolean _
)
void SetActiveVariables(
int rowVid,
bool active
)
void SetActiveVariables(
int rowVid,
bool active
)
abstract SetActiveVariables :
rowVid:int *
active:bool -> unit
function SetActiveVariables(
rowVid : int,
active : boolean
)
Parameters
- rowVid
Type: System.Int32
The row index.
- active
Type: System.Boolean
The value that specifies whether the variables are active. true to set all variables to active; false to set all variables to inactive.
Exceptions
Exception | Condition |
---|---|
ArgumentException | rowVid is not a valid row 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.