Decision Optimization

Decision Optimization

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


#Analytics
#DecisionOptimization
#DecisionOptimization
 View Only
  • 1.  Inventory level (time periods)

    Posted 12/20/14 11:48 AM

    Originally posted by: Thaher


    Hello, 

    I have a set of  4 time  periods ( say 6 hour each)  which all together make a cycle for fluid storage tank (charging and discharging).

    While it is easy to declare the periods 

    int d =...; // periods
    range Periods = 1..d;

    dvar float+ I[Tanks][Periods];  //Inventory level of fluid stored at  tank installed at the end of period d

    It was perplexing as to how to enforce in coding  that fluid inventory at the beginning of first period shall be equal to the inventory at the end of forth period knowing that my inventory variable defines level at the end of the period not its start. 

    I am not sure if I have to declare each period twice ( start and finish).

     

    Any Suggestion please. 


    #DecisionOptimization
    #MathematicalProgramming-General


  • 2.  Re: Inventory level (time periods)

    Posted 12/20/14 01:03 PM

    Hi

    what about

    int d =4; // periods
    range Periods = 0..d;
    range Tanks=1..10;

    dvar float+ I[Tanks][Periods];

    subject to
    {

    forall(t in Tanks) I[t][0]==I[t][d];
    }

    regards


    #DecisionOptimization
    #MathematicalProgramming-General


  • 3.  Re: Inventory level (time periods)

    Posted 12/20/14 01:18 PM

    Originally posted by: Thaher


    Hi, 

    Thanks indeed.

    This sounds convincing! my issue will be how to exclude period "0" from taking part into the objective function components and decision variable henceforth.

    Is there a vehicle to do so, i.e to exclude  period 0 from any summation since I have 4 periods only and their related parameters are retrieved from excel as 4 cells size while they are currently declared as a range of 5 elements  0-d (d=4).

    Thanking you,

    Regards,


    #DecisionOptimization
    #MathematicalProgramming-General


  • 4.  Re: Inventory level (time periods)

    Posted 12/20/14 01:44 PM

    Originally posted by: Thaher


    Does this suffice below as syntax correct. 

    forall(d in Period : d!=0)  to exclude period 0. 


    #DecisionOptimization
    #MathematicalProgramming-General


  • 5.  Re: Inventory level (time periods)

    Posted 12/20/14 04:19 PM