CompactQuasiNewtonModel.INonlinearModel.SetActiveVariables Method

Sets all variables in a specified row to either active or inactive.

Namespace:  Microsoft.SolverFoundation.Solvers
Assembly:  Microsoft.Solver.Foundation (in Microsoft.Solver.Foundation.dll)

Syntax

'Declaration
Private Sub SetActiveVariables ( _
    rowVid As Integer, _
    active As Boolean _
) Implements INonlinearModel.SetActiveVariables
void INonlinearModel.SetActiveVariables(
    int rowVid,
    bool active
)
private:
virtual void SetActiveVariables(
    int rowVid, 
    bool active
) sealed = INonlinearModel::SetActiveVariables
private abstract SetActiveVariables : 
        rowVid:int * 
        active:bool -> unit 
private override SetActiveVariables : 
        rowVid:int * 
        active:bool -> unit 
JScript does not support explicit interface implementations.

Parameters

  • active
    Type: System.Boolean
    true to set all variables to active; false to set all variables to inactive.

Implements

INonlinearModel.SetActiveVariables(Int32, Boolean)

Exceptions

Exception Condition
ArgumentException

rowVid is not a valid row index.

NotSupportedException

One or more variables are not active.

Remarks

The method is called by the compact quasi-Newton (CQN) solver, which does not support it.

.NET Framework Security

See Also

Reference

CompactQuasiNewtonModel Class

Microsoft.SolverFoundation.Solvers Namespace