Share via


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

  • 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

See Also

Reference

NonlinearModel.SparseMatrix Class

Microsoft.SolverFoundation.Services Namespace