Optimizing supply chain management with Microsoft SQL Server R Services