Main > Reference Manual > Unit tests > TestForecast2

This test verifies the forecast distribution functionality.
This functionality allows specifying the forecast for a certain date range. FrePPLe then breaks it down into smaller time buckets that are used for planning.

This functionality is typically used to translate between the time granularity of the sales department (which creates a sales forecast per e.g. calendar month) and the manufacturing department (which creates manufacturing and procurement plans in weekly or daily buckets).
Another usage is to model a delivery date profile of the customers. Each bucket has a weight that is used to model situations where the demand is not evenly spread across buckets: e.g. when more orders are expected due on a monday than on a friday, or when a peak of orders is expected for delivery near the end of a month.

Two example scenarios are tested:

  • The forecast value is specfied for a date range of 4 weeks.
    For planning in frePPLe the forecast is automatically spread over 21 daily buckets and a weekly bucket. Among the daily buckets, saturdays and sundays don't get any forecast. Also, mondays are busier than fridays and get a bigger share of the forecast.
  • The forecast value is specified in calendar months. For planning in frePPLe the forecast is spread over weeks.
    Since the week and month boundaries don't align, the forecast is proportionally split across all intersecting weeks.