Decision Optimization

Decision Optimization

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


#Analytics
#DecisionOptimization
#DecisionOptimization
 View Only
  • 1.  Lead time

    Posted 05/04/15 11:41 AM

    Originally posted by: 1259


    Hi

     

    Could any body please help me?

    Actually I am programming a production planning model with transportation lead times. I have some constraints as follows:

     

    Stock[t-1]= Qunatity of transport[ t - transport leadtime ]= production[t]+ Stock[t]

    for that I do two types of programming:

    1:

    Stock[0..number ofTimePeriods];

    Qunatity of transport[ timeperiods];

    forall( t in timeperiods, b in timeperiods: b==t-transport leadtime)  Stock[t-1]= Qunatity of transport[ b]= production[t]+ Stock[t];

    2:

    forall( t in timeperiods)  Stock[t-1]= Qunatity of transport [ t - transport leadtime]= production[t]+ Stock[t];

     

    Both 1 and 2 does not work. Could any body please guide me how I should deal with this case?

     

    Best regards


    #DecisionOptimization
    #OPLusingCPLEXOptimizer


  • 2.  Re: Lead time

    Posted 05/04/15 11:50 AM

    Hi

    first, the equality constraint is not = but ==

    second, to write a==b==c, you should write a==b and then as a second constraint b==c

    regards


    #DecisionOptimization
    #OPLusingCPLEXOptimizer


  • 3.  Re: Lead time

    Posted 05/04/15 11:40 PM

    Originally posted by: 1259


    Dear Alex,

     

    Thank you so much for your response..

    I really apologize.. Actually a typing error has taken place...

    My constrains are as following:

    Stock[t-1]+Qunatity of transport[ t - transport leadtime ]= production[t]+ Stock[t]

     

    To deal with the lead time I try two types of progrmming:

    Stock[0..number ofTimePeriods];

    Qunatity of transport[ timeperiods];

    1:

    forall( t in timeperiods, b in timeperiods: b==t-transport leadtime) Stock[t-1]+ Qunatity of transport[ b]== production[t]+ Stock[t];

    2:

    forall( t in timeperiods) Stock[t-1]+ Qunatity of transport [ t - transport leadtime]= =production[t]+ Stock[t];

     

    But nither first nor second works.. Actually I wonder how to I should deal with lead time.

    Again thank you so much for your attention


    #DecisionOptimization
    #OPLusingCPLEXOptimizer


  • 4.  Re: Lead time

    Posted 05/05/15 04:52 AM

    Hi,

    here is a small model that works fine:

    range timeperiods=1..10;
    int transportleadtime=2;
    dvar float Stock[0..10];
    dvar float Quantityoftransport[-1..10];
    dvar float production[timeperiods];
    subject to
    {
    forall( t in timeperiods)
    Stock[t-1]+ Quantityoftransport [ t - transportleadtime]==
    production[t]+ Stock[t];
    }

    regards


    #DecisionOptimization
    #OPLusingCPLEXOptimizer


  • 5.  Re: Lead time

    Posted 05/06/15 05:09 AM

    Originally posted by: 1259


    Dear Alex,

     

    Thank you so much for your kind response,

    I tried your idea on my model. It works well.

    Best regards,

     


    #DecisionOptimization
    #OPLusingCPLEXOptimizer