Inventory Optimization to Balance Cost and Demand