CompactQuasiNewtonModel.INonlinearModel.SetActiveVariable Method

Sets a variable in the specified row to either active or inactive.

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

Syntax

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

Parameters

  • active
    Type: System.Boolean
    true to set the variable to active; false to set the variable to inactive.

Implements

INonlinearModel.SetActiveVariable(Int32, Int32, Boolean)

Exceptions

Exception Condition
ArgumentException

rowVid is not a valid row index, or varVid is not a valid variable index.

NotSupportedException

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

Remarks

This member is not supported by the CQN solver.

.NET Framework Security

See Also

Reference

CompactQuasiNewtonModel Class

Microsoft.SolverFoundation.Solvers Namespace