Optimizing the Inventory Policy