Decision Optimization

Decision Optimization

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


#Analytics
#DecisionOptimization
#DecisionOptimization
 View Only
  • 1.  index out of array

    Posted 05/18/14 08:17 AM

    Originally posted by: m.i.907


    Hi all,

    Could you please help me with this model? I get an error message for one of the constraints and don't know how to solve it.

    Thanks in advance.

    Melike


    #DecisionOptimization
    #OPLusingCPLEXOptimizer


  • 2.  Re: index out of array

    Posted 05/19/14 03:43 AM

    Hi,

    for cons3 can you try to protect out of bounds for Time with

    forall(k in Freight, j in DCities, m in Mode, t in Periods )
        cons3:
          sum(i in CCities:
          (intValue(i) in 1..nbMode)  &&
          (t-Time[intValue(i)][intValue(j)][intValue(m)] in Periods) )
            (x[i][j][k][m][t-Time[intValue(i)][intValue(j)][intValue(m)]]) ==Demand[intValue(k)][intValue(j)][t]-  e [k][j][t];

     

    Regards
     


    #DecisionOptimization
    #OPLusingCPLEXOptimizer