Integrating Classical Time-Series Demand Forecasting with Stochastic Scenario Building for Production Planning in MSMEs Under Uncertainty

Afnaria Afnaria, Amalia Amalia, Arifa Pratami

Abstract


Handicraft micro, small and medium-sized enterprises (MSMEs) must plan production with short, noisy demand histories, occasional event-driven spikes, and limited labor. Two-stage stochastic programming can represent this uncertainty, but only as credibly as the demand scenarios supplied to it. This paper links classical time-series forecasting to an integer two-stage stochastic production model through a reproducible pipeline. Eight classical methods are compared by leakage-free rolling-origin evaluation on 34 months of demand for five products of a patchwork enterprise in Medan, Indonesia. The out-of-sample errors calibrate 500 joint Monte Carlo scenarios with negative-binomial margins and a Gaussian copula with shrinkage-estimated correlations, and the sample average approximation is solved exactly. A constant mean was selected for four products and the naive method for one whose demand fell after a large customer was lost. For November 2026, when a committed pre-order leaves only 80 regular labor hours, the optimal plan earns an expected profit of IDR 4.61 million with an estimated optimality gap below 0.6%. The value of the stochastic solution is 7–16% of expected profit depending on the assumed demand level, stays positive under a parametric bootstrap of the forecast inputs, and falls to 1–6% when capacity is slack. Stochastic planning matters most when advance orders or events compete for scarce labor.


Keywords


Forecast evaluation; MSME production planning; Scenario generation; Two-stage stochastic programming; Value of the stochastic solution

Full Text:

PDF

References


[1] A. B. Raya et al. “Challenges, open innovation, and engagement theory at craft SMEs: Evidence from Indonesian batik”. In: Journal of Open Innovation: Technology, Market, and Complexity 7.2, 121 (2021). doi: 10.3390/joitmc7020121.

[2] E. D. Lestari, N. Abd Hamid, R. Shamsuddin, F. Kurniasari, and Z. Yaacob. “Investigating the factors of SMEs’ business resilience in the post-pandemic crisis of COVID-19 with technology adoption as a quasi-moderator: A multigroup analysis of Indonesian and Malaysian SMEs”. In: Cogent Business & Management 11.1, 2301135 (2024). doi: 10.1080/23311975.2023.2301135.

[3] M. Z. Hosen. “Effect of Ramadan on purchasing behavior: A panel data analysis”. In: International Review of Economics 71.2 (2024), pp. 325–341. doi: 10.1007/s12232-024-00445-y.

[4] O. Karabağ and M. M. Fadıloğlu. “Augmented Winter’s method for forecasting under asynchronous seasonalities”. In: Journal of Management Analytics 8.1 (2021), pp. 19–35. doi: 10.1080/23270012.2020.1839362.

[5] C. Eyerci, A. Ö. Toprak, and Ö. Demir. “Ramadan effect on prices and production: Case of Turkey”. In: Statistika: Statistics and Economy Journal 101.2 (2021), pp. 159–186. URL: https://www.czso.cz/documents/10180/143550797/32019721q2_eyerci.pdf.

[6] R. Fildes, S. Ma, and S. Kolassa. “Retail forecasting: Research and practice”. In: International Journal of Forecasting 38.4 (2022), pp. 1283–1318. doi: 10.1016/j.ijforecast.2019.06.004.

[7] J. R. Birge and F. Louveaux. Introduction to Stochastic Programming. 2nd ed. New York: Springer, 2011. doi: 10.1007/978-1-4614-0237-4.

[8] F. Petropoulos et al. “Operational research: Methods and applications”. In: Journal of the Operational Research Society 75.3 (2024), pp. 423–617. doi: 10.1080/01605682.2023.2253852.

[9] R. Mohammadivojdan, Y. Merzifonluoglu, and J. Geunes. “Procurement portfolio planning for a newsvendor with supplier delivery uncertainty”. In: European Journal of Operational Research 297.3 (2022), pp. 917–929. doi: 10.1016/j.ejor.2021.05.026.

[10] N. Gupta, G. Dutta, K. Mitra, and M. K. Tiwari. “Analytics with stochastic optimisation: Experimental results of demand uncertainty in process industries”. In: International Journal of Production Research 61.19 (2023), pp. 6501–6518. doi: 10.1080/00207543.2022.2131926.

[11] M. Wahyudi, H. T. Sihotang, S. Efendi, M. Zarlis, H. Mawengkang, and D. Vinsensia. “A stochastic approach for evaluating production planning efficiency under uncertainty”. In: International Journal of Electrical and Computer Engineering 13.5 (2023), pp. 5542–5549. doi: 10.11591/ijece.v13i5.pp5542-5549.

[12] A. Afnaria, A. Amalia, and A. Pratami. “A progressive hedging-based two-stage stochastic programming model for managing seasonal demand and lead-time uncertainty in patchwork MSMEs”. In: Mathematical Modelling of Engineering Problems 12.10 (2025), pp. 3654–3666. doi: 10.18280/mmep.121029.

[13] T. E. Goltsos, A. A. Syntetos, C. H. Glock, and G. Ioannou. “Inventory–forecasting: Mind the gap”. In: European Journal of Operational Research 299.2 (2022), pp. 397–419. doi: 10.1016/j.ejor.2021.07.040.

[14] E. Theodorou, E. Spiliotis, and V. Assimakopoulos. “Forecast accuracy and inventory performance: Insights on their relationship from the M5 competition data”. In: European Journal of Operational Research 322.2 (2025), pp. 414–426. doi: 10.1016/j.ejor.2024.12.033.

[15] A. N. Elmachtoub and P. Grigas. “Smart “predict, then optimize””. In: Management Science 68.1 (2022), pp. 9–26. doi: 10.1287/mnsc.2020.3922.

[16] J. Mandi, J. Kotary, S. Berden, M. Mulamba, V. Bucarey, T. Guns, and F. Fioretto. “Decision-focused learning: Foundations, state of the art, benchmark and future opportunities”. In: Journal of Artificial Intelligence Research 80 (2024), pp. 1623–1701. doi: 10.1613/jair.1.15320.

[17] U. Sadana, A. Chenreddy, E. Delage, A. Forel, E. Frejinger, and T. Vidal. “A survey of contextual optimization methods for decision-making under uncertainty”. In: European Journal of Operational Research 320.2 (2025), pp. 271–289. doi: 10.1016/j.ejor.2024.03.020.

[18] N. Ho-Nguyen and F. Kılınç-Karzan. “Risk guarantees for end-to-end prediction and optimization processes”. In: Management Science 68.12 (2022), pp. 8680–8698. doi: 10.1287/mnsc.2022.4321.

[19] A. J. Kleywegt, A. Shapiro, and T. Homem-de-Mello. “The sample average approximation method for stochastic discrete optimization”. In: SIAM Journal on Optimization 12.2 (2002), pp. 479–502. doi: 10.1137/S1052623499363220.

[20] R. Henrion and W. Römisch. “Problem-based optimal scenario generation and reduction in stochastic programming”. In: Mathematical Programming 191.1 (2022), pp. 183–205. doi: 10.1007/s10107-018-1337-6.

[21] D. Bertsimas and N. Mundru. “Optimization-based scenario reduction for data-driven two-stage stochastic optimization”. In: Operations Research 71.4 (2023), pp. 1343–1361. doi: 10.1287/opre.2022.2265.

[22] J. Keutchayan, J. Ortmann, and W. Rei. “Problem-driven scenario clustering in stochastic optimization”. In: Computational Management Science 20.1, 13 (2023). doi: 10.1007/s10287-023-00446-2.

[23] X. Chou and E. Messina. “Problem-driven scenario generation for stochastic programming problems: A survey”. In: Algorithms 16.10, 479 (2023). doi: 10.3390/a16100479.

[24] M. Kaut and S. W. Wallace. “Evaluation of scenario-generation methods for stochastic programming”. In: Pacific Journal of Optimization 3.2 (2007), pp. 257–271. URL: https://eprints.lancs.ac.uk/id/eprint/45403.

[25] H. Hewamalage, K. Ackermann, and C. Bergmeir. “Forecast evaluation for data scientists: Common pitfalls and best practices”. In: Data Mining and Knowledge Discovery 37.2 (2023), pp. 788–832. doi: 10.1007/s10618-022-00894-5.

[26] S. Kapoor and A. Narayanan. “Leakage and the reproducibility crisis in machine-learning-based science”. In: Patterns 4.9, 100804 (2023). doi: 10.1016/j.patter.2023.100804.

[27] R. J. Hyndman and G. Athanasopoulos. Forecasting: Principles and Practice. 3rd ed. Melbourne: OTexts, 2021.

[28] F. Petropoulos et al. “Forecasting: Theory and practice”. In: International Journal of Forecasting 38.3 (2022), pp. 705–871. doi: 10.1016/j.ijforecast.2021.11.001.

[29] S. Makridakis, E. Spiliotis, and V. Assimakopoulos. “M5 accuracy competition: Results, findings, and conclusions”. In: International Journal of Forecasting 38.4 (2022), pp. 1346–1364. doi: 10.1016/j.ijforecast.2021.11.013.

[30] S. Makridakis, E. Spiliotis, and V. Assimakopoulos. “Predicting/hypothesizing the findings of the M5 competition”. In: International Journal of Forecasting 38.4 (2022), pp. 1337–1345. doi: 10.1016/j.ijforecast.2021.09.014.

[31] E. Spiliotis, S. Makridakis, A. Kaltsounis, and V. Assimakopoulos. “Product sales probabilistic forecasting: An empirical evaluation using the M5 competition data”. In: International Journal of Production Economics 240, 108237 (2021). doi: 10.1016/j.ijpe.2021.108237.

[32] F. Petropoulos, Y. Grushka-Cockayne, E. Siemsen, and E. Spiliotis. “Wielding Occam’s razor: Fast and frugal retail forecasting”. In: Journal of the Operational Research Society 76.8 (2025), pp. 1564–1583. doi: 10.1080/01605682.2024.2421339.

[33] S. Makridakis, E. Spiliotis, V. Assimakopoulos, Z. Chen, A. Gaba, I. Tsetlin, and R. L. Winkler. “The M5 uncertainty competition: Results, findings and conclusions”. In: International Journal of Forecasting 38.4 (2022), pp. 1365–1385. doi: 10.1016/j.ijforecast.2021.10.009.

[34] I. Svetunkov and J. E. Boylan. “iETS: State space model for intermittent demand forecasting”. In: International Journal of Production Economics 265, 109013 (2023). doi: 10.1016/j.ijpe.2023.109013.

[35] D. Koutsandreas, E. Spiliotis, F. Petropoulos, and V. Assimakopoulos. “On the selection of forecasting accuracy measures”. In: Journal of the Operational Research Society 73.5 (2022), pp. 937–954. doi: 10.1080/01605682.2021.1892464.

[36] O. Ledoit and M. Wolf. “A well-conditioned estimator for large-dimensional covariance matrices”. In: Journal of Multivariate Analysis 88.2 (2004), pp. 365–411. doi: 10.1016/S0047-259X(03)00096-4.

[37] O. Ledoit and M. Wolf. “The power of (non-)linear shrinking: A review and guide to covariance matrix estimation”. In: Journal of Financial Econometrics 20.1 (2022), pp. 187–218. doi: 10.1093/jjfinec/nbaa007.

[38] W.-K. Mak, D. P. Morton, and R. K. Wood. “Monte Carlo bounding techniques for determining solution quality in stochastic programs”. In: Operations Research Letters 24.1–2 (1999), pp. 47–56. doi: 10.1016/S0167-6377(98)00054-6.

[39] P. Virtanen et al. “SciPy 1.0: Fundamental algorithms for scientific computing in Python”. In: Nature Methods 17.3 (2020), pp. 261–272. doi: 10.1038/s41592-019-0686-2.

[40] Q. Huangfu and J. A. J. Hall. “Parallelizing the dual revised simplex method”. In: Mathematical Programming Computation 10.1 (2018), pp. 119–142. doi: 10.1007/s12532-017-0130-5.

[41] R. Fildes, S. Kolassa, and S. Ma. “Post-script—Retail forecasting: Research and practice”. In: International Journal of Forecasting 38.4 (2022), pp. 1319–1324. doi: 10.1016/j.ijforecast.2021.09.012.

[42] E. Spiliotis and F. Petropoulos. “On the update frequency of univariate forecasting models”. In: European Journal of Operational Research 314.1 (2024), pp. 111–121. doi: 10.1016/j.ejor.2023.08.056.

[43] S. Ghosh and S. G. Henderson. “Behavior of the NORTA method for correlated random vector generation as the dimension increases”. In: ACM Transactions on Modeling and Computer Simulation 13.3 (2003), pp. 276–294. doi: 10.1145/937332.937336.

[44] X. Chen and D. L. Woodruff. “Software for data-based stochastic programming using bootstrap estimation”. In: INFORMS Journal on Computing 35.6 (2023), pp. 1218–1224. doi: 10.1287/ijoc.2022.0253.

[45] X. Chen and D. L. Woodruff. “Distributions and bootstrap for data-based stochastic programming”. In: Computational Management Science 21.1, 33 (2024). doi: 10.1007/s10287-024-00512-3.




DOI: https://doi.org/10.18860/cauchy.v11i2.44678

Refbacks

  • There are currently no refbacks.


Copyright (c) 2026 Afnaria Afnaria, Amalia Amalia, Arifa Pratami

Creative Commons License
This work is licensed under a Creative Commons Attribution-ShareAlike 4.0 International License.

Editorial Office
Mathematics Department,
Maulana Malik Ibrahim State Islamic University of Malang
Gajayana Street 50 Malang, East Java, Indonesia 65144
e-mail: cauchy@uin-malang.ac.id

Creative Commons License
CAUCHY: Jurnal Matematika Murni dan Aplikasi is licensed under a Creative Commons Attribution-ShareAlike 4.0 International License.