Decision Optimization

Decision Optimization

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


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

Declare a 3-dimension variable or parameter in CPLEX

  • 1.  Declare a 3-dimension variable or parameter in CPLEX

    Posted 04/13/18 12:26 AM

    Originally posted by: HongPhuc123


     

     

    Hi! Everyone,

    I want to know, in CPLEX IBM Optimation Tool, can it possibly declare a variable or
    parameter with 3 dimension?
    For example, I have a variable defined as:

     x(ij,q): the product quantity carried from depot i
    to parking lot j in Truck q.

     y( jk ,q2): the product quantity carried from parking lot j 
    to customer k in Motorbike q2.

    In the model, I want to minimize the objective like : 

    //Expressions
    dexpr float TravelDistanceofTwoEchelon = sum(i in D, j in P, q in T) d1[i][j]*x[i][j][q]*c1 + sum ( j in P, k in C, q2 in M) d2[j][k]* y[j][k][q2]*c2;

     
    when i link data excel to cplex , cplex can't extract my excel in 2 dimension. I get stuck in this

    Thanks a lot for your help!


    #DecisionOptimization
    #OPLusingCPLEXOptimizer


  • 2.  Re: Declare a 3-dimension variable or parameter in CPLEX

    Posted 04/13/18 02:43 AM