Avoiding stockouts of the most popular items, while avoiding an overstock of slower-selling goods, is essential to meet sales goals.