CompactQuasiNewtonModel.GetIndexFromKey Method

Returns the variable index that is associated with a key.

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

Syntax

'Declaration
Public Function GetIndexFromKey ( _
    key As Object _
) As Integer
public int GetIndexFromKey(
    Object key
)
public:
virtual int GetIndexFromKey(
    Object^ key
) sealed
abstract GetIndexFromKey : 
        key:Object -> int 
override GetIndexFromKey : 
        key:Object -> int 
public final function GetIndexFromKey(
    key : Object
) : int

Parameters

Return Value

Type: System.Int32
The variable index.

Implements

IRowVariableModel.GetIndexFromKey(Object)

Exceptions

Exception Condition
KeyNotFoundException

The key is not found in the model.

.NET Framework Security

See Also

Reference

CompactQuasiNewtonModel Class

Microsoft.SolverFoundation.Solvers Namespace