Analytical Inventory Management and Optimization