UnconstrainedNonlinearModel.INonlinearModel.SetActiveVariable Method

[This documentation is for preview only, and is subject to change in later releases. Blank topics are included as placeholders.]

Sets a specific variable 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 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
    if true, the variable becomes active, if false it becomes inactive

Implements

INonlinearModel.SetActiveVariable(Int32, Int32, Boolean)

Exceptions

Exception Condition
ArgumentException

rowVid is not a legal row index, or varVid is not a legal variable index

ArgumentException

rowVid is not a legal row index

NotSupportedException

Not supported by unconstrained solvers

Remarks

Not supported by unconstrained solvers

.NET Framework Security

See Also

Reference

UnconstrainedNonlinearModel Class

Microsoft.SolverFoundation.Solvers Namespace