Decision Optimization

Decision Optimization

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


#Analytics
#DecisionOptimization
#DecisionOptimization
 View Only
  • 1.  errors in my Inventory Routing Problem script

    Posted 06/24/16 07:50 AM

    Originally posted by: Guerlain


    Hello I am new in the use of CPLEX  and am trying to become familiar with how it works and running into some road blocks.

    I'm trying to build and run an Inventory Routing Problem.  I've a problem with these two equations as follows:

    int Q[0..n] = ...;// Quatity of goods delivered to node j
    int I = ...; // stock level in i

     

    forall(j in 1..n) forall( k in 1..K) forall( t in 1..K)

     
    I[j][t-1] + Q[j][k][t-1]- I[j][t]==demand[j][t-1]; // la satisfaction de la demande
     
    forall(j in 1..n)
     
    I[j][t] == I[j][t-1] + sum(k in 1..K) sum(t in 1..K)Q[j][k][t-1]- demand[i][t-1] ; // le niveau de stock du sommet visité

     

    the message of mistake is " (I) it's not a tab type"

    Someone can help me to solve this prob and thks.

     


    #DecisionOptimization
    #OPLusingCPLEXOptimizer


  • 2.  Re: errors in my Inventory Routing Problem script

    Posted 06/24/16 07:57 AM


  • 3.  Re: errors in my Inventory Routing Problem script

    Posted 06/24/16 09:21 AM

    Originally posted by: Guerlain


    thks for the quick answer

    attached the files


    #DecisionOptimization
    #OPLusingCPLEXOptimizer


  • 4.  Re: errors in my Inventory Routing Problem script

    Posted 06/24/16 02:19 PM

    Hi,

    in your constraint I is a 2D array wheras you declared I as a 1D array

    int I[0..n] = ...; // niveau de stock a un sommet

    So you should fix that

    regards


    #DecisionOptimization
    #OPLusingCPLEXOptimizer


  • 5.  Re: errors in my Inventory Routing Problem script

    Posted 06/27/16 06:33 AM

    Originally posted by: Guerlain


    Hello

     

    I already flow your advice and it's ok

    I'm trying to solve a simple exemple with my model but it don't work till now if it possible to give me a hand to know the origine of the mistake


    #DecisionOptimization
    #OPLusingCPLEXOptimizer


  • 6.  Re: errors in my Inventory Routing Problem script

    Posted 06/27/16 07:34 AM

    Here are model and data that you could improve.


    #DecisionOptimization
    #OPLusingCPLEXOptimizer


  • 7.  Re: errors in my Inventory Routing Problem script

    Posted 06/28/16 01:05 PM

    Originally posted by: Guerlain


    hello

    maybe you'll find my question basic but I don't understand why you made the stock level on green like a comment

    can you please give me the signification of this act to be more ready to understand cplex and the model and thks in advance

     


    #DecisionOptimization
    #OPLusingCPLEXOptimizer


  • 8.  Re: errors in my Inventory Routing Problem script

    Posted 06/30/16 11:04 AM

    Hi,

    I commented a lot to give you a starting point for repairing.

    For the stock level, you may uncomment and get

    forall(i in 1..n)forall (t in 1..T :t!=1)

    I[i][t] == I[i][t-1] + sum(t in 1..T:t!=1)Q[i][t-1]- demand[i][t-1] ; // le niveau de stock du sommet visité

     

    regards


    #DecisionOptimization
    #OPLusingCPLEXOptimizer


  • 9.  Re: errors in my Inventory Routing Problem script

    Posted 07/01/16 06:51 AM

    Originally posted by: Guerlain


    Hi

     

    I flow your instructions and I have still a prob with the parameter of demand :

    int demand[1..n][1..T] = ...;// la quantité de produit demandé par un sommet

    demand = [0 ,22 ,30 ,37 ,31 ,29 ,21 ,42 ,13 ,12 ,20 ,15 ,25];

    I think I have to add the part of the time in the data ([1..T]) ?

    the error message is : Elément de données "0" inattendu pour "int[range][range]". 

    best regards


     


    #DecisionOptimization
    #OPLusingCPLEXOptimizer


  • 10.  Re: errors in my Inventory Routing Problem script

    Posted 07/01/16 08:26 AM

    Hi,

    I attached what I have.

    demand should be a 2D array in the .dat

    regards


    #DecisionOptimization
    #OPLusingCPLEXOptimizer