How Retailers Balance Inventory Cost and Shelf Availability