Share via


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

  • 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

See Also

Reference

NonlinearModel.SparseMatrix Class

Microsoft.SolverFoundation.Services Namespace