Decision Optimization

Decision Optimization

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


#Analytics
#DecisionOptimization
#DecisionOptimization
 View Only
  • 1.  defining indexes from different sets

    Posted 10/07/12 04:51 AM

    Originally posted by: arguen


    Hi,
    I am trying to code the constraint (2) on the second page of the attached file.
    Namely, I want to define indexes from different sets. in example i are from a set of origin points and j from another set of destination points.
    Now ILOG gives "unexpected ',' " error because of the ',' on the sum line.

    Thank you in advance for your time and comments.
    arguen.
    
    forall( v in V ) sum ( (i in Arc_v_ovNt[v] , j in NPD_v[v]) : <v,i,j> in Arc_vij && (t==1 in T) ) x[<v,i,j>][t] ==1;
    


    (The other part of my code is available in my previous post)
    #DecisionOptimization
    #OPLusingCPOptimizer


  • 2.  Re: defining indexes from different sets

    Posted 10/08/12 05:41 AM

    Originally posted by: arguen


    I solved my problem as follows:
    Regards,
    
    forall( v in V, i in No_v[v]) sum ( j in NPD_v[v]:(<v,i,j> in Arc_vij) ) x[<v,i,j>][1] == 1;  
    // t==1
    

    #DecisionOptimization
    #OPLusingCPOptimizer