Hey guys,

I’m a student using GAMS for a university project regarding nventory management. I’m still a beginner with GAMS so there’s still a lot of errors that I make.

I have some restrictions that I need to set up, regarding the flow of inventory in a warehouse. The current inventory level (FI_i,j,t) should be equal to the level of the previous day (FI_i,j,t-1) plus the inventory coming from the factory today (SQ) and minus the inventory that is consumed today by customer demand (CD). The following print shows the mathematical formulation of these equations.

So, the first equation is valid for t=1, where the inventory level from the previous day is substituted by the starting inventory level (ITo). The following days (t>1) are represented by the second equation, where the inventory level is based on the level of the previous day.

I’m having trouble regarding how to define the ‘t’ set for these equations. Can anyone help me with a suggestion for the code?

Thank you very much