Decision Optimization

Decision Optimization

Delivers prescriptive analytics capabilities and decision intelligence to improve decision-making.


#Analytics
#DecisionOptimization
#DecisionOptimization
 View Only
  • 1.  Accessing particular element of a tuple array

    Posted 01/27/11 03:48 AM

    Originally posted by: rahul123don


    My array is

    {String1Float1}RiskParam = ...;

    Can anyone tell me how can i access the 5th element of this tuple array?
    #DecisionOptimization
    #OPLusingCPLEXOptimizer


  • 2.  Re: Accessing particular element of a tuple array

    Posted 01/27/11 10:48 AM
    Hi,

    {String1Float1} looks like a set.
    To get the 5th element, you could use item(RiskParam,6).

    Regards

    Alex
    #DecisionOptimization
    #OPLusingCPLEXOptimizer


  • 3.  Re: Accessing particular element of a tuple array

    Posted 01/27/11 11:11 AM

    Originally posted by: SystemAdmin


    Actually, to access the 5th element of your set, you need to use item(RiskParam, 4 );
    The indexing starts at 0.
    More information on that function in the documentation.
    #DecisionOptimization
    #OPLusingCPLEXOptimizer