Git Product home page Git Product logo

cortana-intelligence-shipping-and-distribution-forecasting's Introduction

Shipping and Distribution Demand Forecasting

This folder contains the automated deployment instructions for the deployable Shipping and Distribution Demand Forecasting solution in the Cortana Intelligence Gallery. To start a new solution deployment, visit the gallery page here.

Estimated Provisioning Time: 15 Minutes

Summary

This is an an Azure Solution to reduce the uncertainty in forecasted shipments for organizations that need to plan based on future quantities. This page explains the what the Solution does, and how to install a copy that you can run and modify in your Azure subscription.

Azure Solutions in the Cortana Intelligence Gallery are composed of advanced analytics tools for data ingestion, data storage, scheduling and advanced analytics components - all of the essential elements for running a demand forecasting solution that can be integrated with your current production systems. This Solution combines several Azure services. SQL Server is used for storing forecasts and historical distribution data, Azure Machine Learning (AML) webservice for hosting the R forecasting code, Azure Data Factory to orchestrate the entire workflow, and Power BI to visualize it.

Use the 'Deploy' button on this page to deploy an instance of the Solution for the Azure subscription you specify. This will bring you through the steps in your subscription needed to create and launch the resources that make up this solution so that you can run it. The Solution includes multiple Azure services (described below) along with Azure functions that, among other tasks, simulate the data and populate the database with it, so that immediately after deployment you will have a working end-to-end solution.

Description

The Demand Forecasting for Shipping and Distribution Solution uses historical demand data to forecast demand in future periods across various customers, products and destinations. For instance, a shipping or delivery company wants to predict the quantities of the different products its customers want delivered at different locations at future times. Similarly a vendor or insurer wants to know the number of products that will be returned due to failures over the course of a year. A company can use these forecasts as input to an allocation tool that optimizes operations, such as delivery vehicles routing, or to plan capacity in the longer term.

Characteristic of all of these forecasting cases are:

  • There are numerous kinds of items with differing volumes, that roll up under one or more category levels.
  • There is a history available for the quantity of the item at each time in the past.
  • The volumes of the items differ widely, with possibly a substantial number that have zero volume at times.
  • The history of items shows both trend and seasonality, possibly at multiple time scales.
  • The quantities committed or returned are not strongly price sensitive. In other words, the delivery company cannot strongly influence quantities by short-term changes in prices, although there may be other determinants that affect volume, such as weather.

Under these conditions we can take advantage of the hierarchy formed among the time series of the different items. By enforcing consistency so that the quantities lower in the hierarchy (e.g. individual product quantities) sum to the quantities above (customer product totals) we improve the accuracy of the overall forecast. The same applies if individual items are grouped into categories, even possibly categories that overlap. For example, one might be interested in forecasting demand of all products in total, by location, by product category, by customer, etc.

This Solution computes forecasts at all aggregation levels in the hierarchy for each time period specified. For simplicity, we will refer to both hierarchial and grouped time series as "hierarchical time series."

Shipping and distribution forecasting in use

We thank Kotahi for working with us to develop this Solution. Kotahi is a supply chain company that plans, sources, and delivers shipping containers for New Zealand exports. Read their Customer Story on how they engaged with us at Microsoft and a Microsoft Dynamics 2016 Inner Circle partner, DXC Eclipse, to put this into production. The solution helped to increase forecast accuracy and so improve their ability to choose the right-size container ships, at the right times, and dispatch them to the right ports.

Solution architecture

The following chart describes the Solution architecture.

Solution Architecture

What's under the hood

The Solution uses five types of resources hosted and managed in Azure:

  • Azure SQL Server instance (Azure SQL) for persistent storage,
  • Azure Machine Learning (AML) webservice to host the R forecasting code,
  • Azure Blob Storage for intermediate storage of generated forecasts,
  • Azure Data Factory (ADF) that orchestrates regular runs of the AML model,
  • Power BI dashboard to display and drill down on the forecasts.

The Solution automates the running of periodic forecasts, at a pace configured in ADF (e.g. monthly), where it learns a model with the current historical data, and predicts quantities for future periods for all products in the product hierarchy. Each forecast cycle consists of a round-trip from the database, through the model, then back to the database. Each cycle measures forecast accuracy by conventional data holdout techniques. You can configure the number of periods, the product categories and the hierarchy among products. You need to load your current data in the Azure SQL database, and extract forecasts after each run from the same database. The Solution exposes the R code model to allow further customizations, and to allow you to simulate historical data, to test the Solution.

Using the forecasting solution: Getting started

See the Technical Solution Guide for a full set of instructions on how to use this Solution as an example of what is possible with the Cortana Intelligence Suite. For technical problems or questions about deploying this Solution, please post in the issues tab of the repository.

Solution Dashboard

Here is an example of a snapshot of the forecasts generated by the solution in the PowerBI dashboard that comes with the Solution.

PowerBI Snapshot

Pricing

Your Azure subscription used for the deployment will incur consumption charges on the services used in this solution, approximately $4.66(USD)/day. For more information, please visit Pricing Calculator.

Note: If you are no longer using the deployed solution, remember to delete it to stop incurring consumption charges.

cortana-intelligence-shipping-and-distribution-forecasting's People

Contributors

ericwrightatwork avatar jmagosta avatar microsoftopensource avatar msftgits avatar vapaunic avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.