Decision.GetDouble Method
[This documentation is for preview only, and is subject to change in later releases. Blank topics are included as placeholders.]
Converts an indexed value to a double.
Namespace: Microsoft.SolverFoundation.Services
Assembly: Microsoft.Solver.Foundation (in Microsoft.Solver.Foundation.dll)
Syntax
'Declaration
Public Function GetDouble ( _
ParamArray indexes As Object() _
) As Double
public double GetDouble(
params Object[] indexes
)
public:
double GetDouble(
... array<Object^>^ indexes
)
member GetDouble :
indexes:Object[] -> float
public function GetDouble(
... indexes : Object[]
) : double
Parameters
- indexes
Type: array<System.Object[]
The indexes of the value to get.
Return Value
Type: System.Double
The value of the decision as a double.
Exceptions
Exception | Condition |
---|---|
KeyNotFoundException | There is no value for the given indexes. |
ArgumentOutOfRangeException | The number of indexes given does not match the number expected. |
InvalidCastException | The value is not numeric. |
Remarks
Each element is an array where the first element is the result value, and the remaining elements are the index values.
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.