Decision Optimization

Decision Optimization

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


#Analytics
#DecisionOptimization
#DecisionOptimization
 View Only
Expand all | Collapse all

Access ranges to create matrix

  • 1.  Access ranges to create matrix

    Posted 03/10/16 06:47 AM

    Originally posted by: sandeepsinghchauhan


    I have a set of ranges like

    range A = 1..3;

    range B = 1..5;

    ****************************************************************

    X[1][1] will give data  from 1..10;

    X[1][2] will give data from 1..3;

    X[1][3] will give data from 1..5;

    X[2][1] will give data  from 1..6;

    X[2][2] will give data  from 1..2;

    X[2][3] will give data  from 1..17;

    *********************************************************************

    my question is if i want to create a matrix "K" with the help of this ranges whose first element is A, second is B and Third as change with X. How can i create it?

    float K[A][B][X[?][?]] 

     


    #DecisionOptimization
    #OPLusingCPLEXOptimizer


  • 2.  Re: Access ranges to create matrix

    Posted 03/10/16 05:39 PM

    Originally posted by: Stanko_86


    Hi,

    Have you tried with tuple instead of using matrix?


    #DecisionOptimization
    #OPLusingCPLEXOptimizer