Inventory planning model

September 1, 2019 3 By Achyuthuni Harsha

Consider a simple problem of handling inventory in a store. In any store, there will be multiple items, and each item will have its own demand and supply constraints. In such scenario, how do we create a inventory management model?

This model was created for a kirana store. The store sold about 6000 different kind of items. The demand for each of these items is not constant and sporadic. I built a demand forecasting model which was about 80% accurate. The store already has some items ordered from different vendors which would arrive at a known time in the future. The current inventory can be calculated using the GST billing systems. The shop owner wanted to understand when and how much to order of each item so that he meets his demand.

Apart from meeting the demand, the owner wanted to maintain a safety stock of 20% for rainy days (literally). The total items ordered should not exceed the capacity of the store.

A multi period integer programming model was used to predict when and by how much quantity a new purchase has to be done. The objective was to reduce costs. Cost had two components, inventory cost and ordering cost. The code in CPLEX is given below


A mock data to run the above file would be like below (.dat file)

This model helped the store owner understand and plan for the shortfall in inventory.

Kirana store