Decision Optimization

Decision Optimization

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


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

error " Data tuple unexpected for"

  • 1.  error " Data tuple unexpected for"

    Posted 01/19/14 11:01 PM

    Originally posted by: Nazanin Esmaili


    Hi everyone,

    I got this error " Data tuple unexpected for "int [range][range]" for the following code. 

    int p=7;
    int o=6;
    int value[1..o][1..p]=...;

     

    value = [ <572, 416, 1040, 104, 520, 780, 1300>, ];
    <572, 277, 1040, 104, 347, 260, 433>,
    <572, 416, 1040, 104, 520, 780, 1300>,
    <286, 416, 1040, 104, 173, 390, 433>,
    <572, 277, 1040, 104, 347, 260, 433>,
    <286, 416, 1040, 104, 173, 390, 433> ];

    I cannot fix it. I apprciate any help, thanks.

     


    #DecisionOptimization
    #OPLusingCPLEXOptimizer


  • 2.  Re: error " Data tuple unexpected for"

    Posted 01/20/14 02:18 PM

    Hi,

    in the .dat

    you should have

     value = [[ 572, 416, 1040, 104, 520, 780, 1300],
    [572, 277, 1040, 104, 347, 260, 433],
    [572, 416, 1040, 104, 520, 780, 1300],
    [286, 416, 1040, 104, 173, 390, 433],
    [572, 277, 1040, 104, 347, 260, 433],
    [286, 416, 1040, 104, 173, 390, 433 ]];

    regards


    #DecisionOptimization
    #OPLusingCPLEXOptimizer


  • 3.  Re: error " Data tuple unexpected for"

    Posted 01/20/14 08:34 PM

    Originally posted by: Nazanin Esmaili


    Thanks Alex. 

     

     


    #DecisionOptimization
    #OPLusingCPLEXOptimizer