The analysis of an inventory system