forecast_item_demand
Predict future demand for an item using nine models, auto-selecting the best via backtesting. Get monthly forecasts, accuracy metrics, and a procurement suggestion including 20% safety stock.
Instructions
Predict future demand quantity for a specific item using all 9 models (SMA, WMA, EWMA, LinearTrend, Drift, Holt, Holt-Winters, SeasonalNaive, Median). Auto-selects best model via backtesting. Returns monthly forecasts per model, model accuracy (MAPE/MAE/RMSE), and a procurement suggestion (forecast qty + 20% safety stock).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| itemCode | Yes | SAP B1 item code | |
| historyMonths | No | Months of history to train on (default 12, max 36) | |
| horizonMonths | No | Number of months to forecast ahead (default 3, max 12) |