Decision Optimization

Decision Optimization

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

 View Only
  • 1.  Sum in Sum

    Posted Wed April 25, 2018 11:43 AM

    Originally posted by: Paroth


    I have following equation to model in CPLEX

     

    But i am encountering problems with the sum within the sum. In CPLEX i got the following code:

    forall(k in Rn,t in T) ctNightCapacity[k][t]:
            sum(p in P:k==b[p] && t>=alpha[p])
              1-sum(t in T: E[PHI[p]]<=t<=minl(t,L[PHI[p]]))x[PHI[p]][t]<=RN[k][t];

     

    But i get an error that p is not defined. Can someone help me here? I couldn't find any solutions on the web or the IBM manual.


    Thank you in advance!


    #DecisionOptimization
    #OPLusingCPLEXOptimizer


  • 2.  Re: Sum in Sum

    Posted Wed April 25, 2018 12:28 PM

    Hi

    do not hesitate to attach .mod and .dat so that other users could try


    #DecisionOptimization
    #OPLusingCPLEXOptimizer