Decision Optimization

Decision Optimization

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


#Analytics
#DecisionOptimization
#DecisionOptimization
 View Only
  • 1.  Set Construction Error on Tuple Format

    Posted 05/27/10 01:12 PM

    Originally posted by: UDOPS


    I am receiving syntax errors within the OPL editor on these statements, but I do not understand the source of error. The error says I cannot use a tuple of the form I defined <int int> with "in".

    {blocktime} CellNet={<i,t> | <i,t> in BlockNet, <i,m> in CellPairs: <i,t+1> in BlockNet && <m,t> in BlockNet && <m,t+1> in BlockNet};

    int CellCapCellNet= [<i,t> : ( //capacity of cells in network
    (Problem[1].cellmode=="Normal")? minl(BlockData[i].capacity, min(<i,m> in CellPairs) BlockData[m].capacity):
    (Problem[1].cellmode=="Liberal")? maxl(BlockData[i].capacity, max(<i,m> in CellPairs) BlockData[m].capacity):
    1)| <i,t> in CellNet];
    #DecisionOptimization
    #OPLusingCPLEXOptimizer


  • 2.  Re: Set Construction Error on Tuple Format

    Posted 05/27/10 03:09 PM

    Originally posted by: UDOPS


    I found it. Really annoying how OPL does not lead you to the underlying error.

    I made an error in typing the source data line. I left our the brackets around the tuple in

    {celldata} CellPairs=...;

    Which caused a faulty definition of CellPairs, which triggered the following errors.
    #DecisionOptimization
    #OPLusingCPLEXOptimizer