The Theory of Inventory Management