UnconstrainedNonlinearModel.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 row to be 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
    if true, all variables become active, if false all variables become inactive

Implements

INonlinearModel.SetActiveVariables(Int32, Boolean)

Exceptions

Exception Condition
ArgumentException

rowVid is not a legal row index

NotSupportedException

All variables should be active

Remarks

Not supported by unconstrained solvers

.NET Framework Security

See Also

Reference

UnconstrainedNonlinearModel Class

Microsoft.SolverFoundation.Solvers Namespace