Research article Special Issues

Estimating conditional distributions by machine learning for contextual stochastic programs in operations management

  • Published: 01 December 2026
  • This paper studies stochastic programs with contextual information in operations research and management science, focusing on uncertain optimization problems with objective functions that are nonlinear in the uncertain parameters. We adopt the estimate-then-optimize (ETO) framework, which first estimates conditional distributions using contextual information and then solves the resulting contextual stochastic problems. We review existing distribution estimation methods and propose two novel ETO approaches: $ k $-nearest neighbors combined with quantile regression ($ k $QR) and a bootstrap ensemble of mainstream machine learning techniques (B-ML). We introduce two metric sets for evaluating their predictive accuracy and decision-making efficacy. Extensive experiments on two real-world nonlinear optimization problems compare all methods. The results provide two insights. First, across the tested datasets, $ k $QR is generally competitive in predictive metrics, whereas B-ML underperforms in these metrics but some B-ML variants attain high vote counts for decision performance under particular combinations of optimization problem, instance scale, and base learner, especially in the energy scheduling experiments. Second, the ranking of the methods by predictive performance does not consistently coincide with their ranking by downstream decision-making performance, underscoring the need to account for the downstream nonlinear decision context. These findings are specific to the examined datasets and optimization problems and do not establish the general dominance of either proposed method.

    Citation: Yunxiang Shu, Xuecheng Tian, Gilbert Laporte, Feng Tian, Shuaian Wang. Estimating conditional distributions by machine learning for contextual stochastic programs in operations management[J]. Electronic Research Archive, 2027, 35(1): 495-541. doi: 10.3934/era.2027017

    Related Papers:

  • This paper studies stochastic programs with contextual information in operations research and management science, focusing on uncertain optimization problems with objective functions that are nonlinear in the uncertain parameters. We adopt the estimate-then-optimize (ETO) framework, which first estimates conditional distributions using contextual information and then solves the resulting contextual stochastic problems. We review existing distribution estimation methods and propose two novel ETO approaches: $ k $-nearest neighbors combined with quantile regression ($ k $QR) and a bootstrap ensemble of mainstream machine learning techniques (B-ML). We introduce two metric sets for evaluating their predictive accuracy and decision-making efficacy. Extensive experiments on two real-world nonlinear optimization problems compare all methods. The results provide two insights. First, across the tested datasets, $ k $QR is generally competitive in predictive metrics, whereas B-ML underperforms in these metrics but some B-ML variants attain high vote counts for decision performance under particular combinations of optimization problem, instance scale, and base learner, especially in the energy scheduling experiments. Second, the ranking of the methods by predictive performance does not consistently coincide with their ranking by downstream decision-making performance, underscoring the need to account for the downstream nonlinear decision context. These findings are specific to the examined datasets and optimization problems and do not establish the general dominance of either proposed method.



    加载中


    [1]

    T. Nguyen, L. Zhou, V. Spiegler, P. Ieromonachou, Y. Lin, Big data analytics in supply chain management: A state-of-the-art literature review, Comput. Oper. Res., 98 (2018), 254–264. https://doi.org/10.1016/j.cor.2017.07.004

    doi: 10.1016/j.cor.2017.07.004
    [2]

    M. Qi, H. Mak, Z. Shen, Data-driven research in retail operations—A review, Nav. Res. Logist., 67 (2020), 595–616. https://doi.org/10.1002/nav.21949

    doi: 10.1002/nav.21949
    [3]

    J. Birge, F. Louveaux, Introduction to Stochastic Programming, Springer, New York, 2011. https://doi.org/10.1007/978-1-4614-0237-4

    [4]

    A. Kleywegt, A. Shapiro, T. Homem-de-Mello, The sample average approximation method for stochastic discrete optimization, SIAM J. Optim., 12 (2002), 479–502. https://doi.org/10.1137/s1052623499363220

    doi: 10.1137/s1052623499363220
    [5]

    D. Bertsimas, N. Kallus, From predictive to prescriptive analytics, Manage. Sci., 66 (2020), 1025–1044. https://doi.org/10.1287/mnsc.2018.3253

    doi: 10.1287/mnsc.2018.3253
    [6]

    M. Qi, Z. Shen, Integrating prediction/estimation and optimization with applications in operations management, Tutorials Oper. Res.: Emerging Impactful Topics Oper., (2022), 36–58. https://doi.org/10.1287/educ.2022.0249

    [7]

    N. Kallus, X. Mao, Stochastic optimization forests, Manage. Sci., 69 (2023), 1975–1994. https://doi.org/10.1287/mnsc.2022.4458

    doi: 10.1287/mnsc.2022.4458
    [8]

    X. Tian, R. Yan, S. Wang, Y. Liu, L. Zhen, Tutorial on prescriptive analytics for logistics: What to predict and how to predict, Electron. Res. Arch., 31 (2023), 2265–2285. https://doi.org/10.3934/era.2023116

    doi: 10.3934/era.2023116
    [9]

    M. Muñoz, S. Pineda, J. Morales, A bilevel framework for decision-making under uncertainty with contextual information, Omega, 108 (2022), 102575. https://doi.org/10.1016/j.omega.2021.102575

    doi: 10.1016/j.omega.2021.102575
    [10]

    C. Yan, H. Zhu, N. Korolk, D. Woodard, Dynamic pricing and matching in ride-hailing platforms, Nav. Res. Logist., 67 (2020), 705–724. https://doi.org/10.1002/nav.21872

    doi: 10.1002/nav.21872
    [11]

    Y. Kuo, J. Leung, Y. Yan, Public transport for smart cities: Recent innovations and future challenges, Eur. J. Oper. Res., 306 (2023), 1001–1026. https://doi.org/10.1016/j.ejor.2022.06.057

    doi: 10.1016/j.ejor.2022.06.057
    [12]

    K. Fagerholt, L. Heilig, E. Lalla-Ruiz, F. Meisel, S. Wang, Data-driven optimization and analytics for maritime logistics, Flexible Serv. Manuf. J., 35 (2023), 1–4. https://doi.org/10.1007/s10696-023-09487-w

    doi: 10.1007/s10696-023-09487-w
    [13]

    H. Park, S. Cho, A. Nanda, J. Park, Data-driven dynamic stacking strategy for export containers in container terminals, Flexible Serv. Manuf. J., 35 (2023), 170–195. https://doi.org/10.1007/s10696-022-09457-8

    doi: 10.1007/s10696-022-09457-8
    [14]

    J. Zheng, C. Alzaman, A. Diabat, Big data analytics in flexible supply chain networks, Comput. Ind. Eng., 178 (2023), 109098. https://doi.org/10.1016/j.cie.2023.109098

    doi: 10.1016/j.cie.2023.109098
    [15]

    R. Yan, S. Wang, L. Zhen, S. Jiang, Classification and regression in prescriptive analytics: Development of hybrid models and an example of ship inspection by port state control, Comput. Ind. Eng., 163 (2024), 106517. https://doi.org/10.1016/j.cor.2023.106517

    doi: 10.1016/j.cor.2023.106517
    [16]

    P. Dieter, M. Caron, G. Schryen, Integrating driver behavior into last-mile delivery routing: Combining machine learning and optimization in a hybrid decision support framework, Eur. J. Oper. Res., 311 (2023), 283–300. https://doi.org/10.1016/j.ejor.2023.04.043

    doi: 10.1016/j.ejor.2023.04.043
    [17]

    E. Ayyildiz, M. Erdogan, Addressing the challenges of using autonomous robots for last-mile delivery, Comput. Ind. Eng., 190 (2024), 110096. https://doi.org/10.1016/j.cie.2024.110096

    doi: 10.1016/j.cie.2024.110096
    [18]

    Y. Zhan, K. Tan, An analytic infrastructure for harvesting big data to enhance supply chain performance, Eur. J. Oper. Res., 281 (2020), 559–574. https://doi.org/10.1016/j.ejor.2018.09.018

    doi: 10.1016/j.ejor.2018.09.018
    [19]

    W. Chen, S. Gao, M. Pinedo, L. Tang, Modeling and data analytics in manufacturing and supply chain operations, Flexible Serv. Manuf. J., 34 (2022), 235–237. https://doi.org/10.1007/s10696-021-09435-6

    doi: 10.1007/s10696-021-09435-6
    [20]

    N. Feng, S. Tu, F. Guo, Big-data analytics capability, value creation process, and collaboration innovation quality in manufacturing enterprises: A knowledge-based view, Comput. Ind. Eng., 187 (2024), 109804. https://doi.org/10.1016/j.cie.2023.109804

    doi: 10.1016/j.cie.2023.109804
    [21]

    P. Latorre, H. López-Ospina, S. Maldonado, C. Guevara, J. Pérez, Designing employee benefits to optimize turnover: A prescriptive analytics approach, Comput. Ind. Eng., 197 (2024), 110582. https://doi.org/10.1016/j.cie.2024.110582

    doi: 10.1016/j.cie.2024.110582
    [22]

    S. Harris, J. May, L. Vargas, Predictive analytics model for healthcare planning and scheduling, Eur. J. Oper. Res., 253 (2016), 121–131. https://doi.org/10.1016/j.ejor.2016.02.017

    doi: 10.1016/j.ejor.2016.02.017
    [23]

    S. Yalçındağ, A. Matta, E. Šahin, J. Shanthikumar, The patient assignment problem in home health care: Using a data-driven method to estimate the travel times of care givers, Flexible Serv. Manuf. J., 28 (2016), 304–335. https://doi.org/10.1007/s10696-015-9222-6

    doi: 10.1007/s10696-015-9222-6
    [24]

    C. Baechle, C. Huang, A. Agarwal, R. Behara, J. Goo, Latent topic ensemble learning for hospital readmission cost optimization, Eur. J. Oper. Res., 281 (2020), 517–531. https://doi.org/10.1016/j.ejor.2019.05.008

    doi: 10.1016/j.ejor.2019.05.008
    [25]

    L. Zhao, L. Li, Z. Shen, Transactional and in-store display data of a large supermarket for data-driven decision-making, Nav. Res. Logist., 67 (2020), 617–626. https://doi.org/10.1002/nav.21957

    doi: 10.1002/nav.21957
    [26]

    G. Ban, C. Rudin, The big data newsvendor: Practical insights from machine learning, Oper. Res., 67 (2019), 90–108. https://doi.org/10.1287/opre.2018.1757

    doi: 10.1287/opre.2018.1757
    [27]

    D. Bertsimas, N. Koduri, Data-driven optimization: A reproducing kernel Hilbert space approach, Oper. Res., 70 (2021), 454–471. https://doi.org/10.1287/opre.2020.2069

    doi: 10.1287/opre.2020.2069
    [28]

    A. Elmachtoub, P. Grigas, Smart "predict, then optimize", Manage. Sci., 68 (2022), 9–26. https://doi.org/10.1287/mnsc.2020.3922

    doi: 10.1287/mnsc.2020.3922
    [29]

    P. Notz, R. Pibernik, Prescriptive analytics for flexible capacity management, Manage. Sci., 68 (2022), 1756–1775. https://doi.org/10.1287/mnsc.2020.3867

    doi: 10.1287/mnsc.2020.3867
    [30]

    X. Tian, R. Yan, Y. Liu, S. Wang, A smart predict-then-optimize method for targeted and cost-effective maritime transportation, Transp. Res. Part B Methodol., 172 (2023), 32–52. https://doi.org/10.1016/j.trb.2023.03.009

    doi: 10.1016/j.trb.2023.03.009
    [31]

    U. Sadana, A. Chenreddy, E. Delage, A. Forel, E. Frejinger, T. Vidal, A survey of contextual optimization methods for decision-making under uncertainty, Eur. J. Oper. Res., 320 (2025), 271–289. https://doi.org/10.1016/j.ejor.2024.03.020

    doi: 10.1016/j.ejor.2024.03.020
    [32]

    M. Qi, P. Grigas, Z. Shen, Integrated conditional estimation-optimization, preprint, arXiv: 2110.12351. https://doi.org/10.48550/arXiv.2110.12351

    [33]

    A. Elmachtoub, H. Lam, H. Zhang, Y. Zhao, Estimate-then-optimize versus integrated-estimation-optimization versus sample average approximation: A stochastic dominance perspective, preprint, arXiv: 2304.06833. https://doi.org/10.48550/arXiv.2304.06833

    [34]

    L. He, S. Liu, Z. Shen, Smart urban transport and logistics: A business analytics perspective, Prod. Oper. Manage., 31 (2022), 3771–3787. https://doi.org/10.1111/poms.13775

    doi: 10.1111/poms.13775
    [35]

    E. Nadaraya, On estimating regression, Theory Probab. Appl., 9 (1964), 141–142. https://doi.org/10.1137/1109020

    doi: 10.1137/1109020
    [36]

    G. Watson, Smooth regression analysis, Sankhyā: The Indian J. Stati. Series A, 26 (1964), 359–372. Available from: https://www.jstor.org/stable/25049340.

    [37]

    S. Wang, R. Yan, "Predict, then optimize" with quantile regression: A global method from predictive to prescriptive analytics and applications to multimodal transportation, Multimodal Transp., 1 (2022), 100035, https://doi.org/10.1016/j.multra.2022.100035

    doi: 10.1016/j.multra.2022.100035
    [38]

    T. Gneiting, M. Katzfuss, Probabilistic forecasting, Annu. Rev. Stat. Appl., 1 (2014), 125–151. https://doi.org/10.1146/annurev-statistics-062713-085831

    doi: 10.1146/annurev-statistics-062713-085831
    [39]

    X. Guo, Y. Grushka-Cockayne, B. De Reyck, Forecasting airport transfer passenger flow using real-time data and machine learning, Manuf. Serv. Oper. Manage., 24 (2022), 3193–3214. https://doi.org/10.1287/msom.2021.0975

    doi: 10.1287/msom.2021.0975
    [40]

    N. Salari, S. Liu, Z. Shen, Real-time delivery time forecasting and promising in online retailing: When will your package arrive, Manuf. Serv. Oper. Manage., 24 (2022), 1421–1436. https://doi.org/10.1287/msom.2022.1081

    doi: 10.1287/msom.2022.1081
    [41]

    N. Meinshausen, Quantile regression forests, J. Mach. Learn. Res., 7 (2006), 983–999. Available from: https://jmlr.org/papers/v7/meinshausen06a.html.

    [42]

    S. Arora, J. W. Taylor, H. Mak, Probabilistic forecasting of patient waiting times in an emergency department, Manuf. Serv. Oper. Manage., 25 (2023), 1489–1508. https://doi.org/10.1287/msom.2023.1210

    doi: 10.1287/msom.2023.1210
    [43]

    D. MacKay, A practical bayesian framework for backpropagation networks, Neural Comput., 4 (1992), 448–472. https://doi.org/10.1162/neco.1992.4.3.448

    doi: 10.1162/neco.1992.4.3.448
    [44]

    R. Neal, Bayesian Learning for Neural Networks, Springer Science & Business Media, Berlin, 2012. https://doi.org/10.1007/978-1-4612-0745-0

    [45]

    D. Kingma, M. Welling, Auto-encoding variational bayes, preprint, arXiv: 1312.6114. https://doi.org/10.48550/arXiv.1312.6114

    [46]

    J. Hernández-Lobato, R. Adams, Probabilistic backpropagation for scalable learning of bayesian neural networks, in Proceedings of the 32nd International Conference on Machine Learning, PMLR, Lille, (2015), 1861–1869. Available from: https://proceedings.mlr.press/v37/hernandez-lobatoc15.html}.

    [47]

    C. Blundell, J. Cornebise, K. Kavukcuoglu, D. Wierstra, Weight uncertainty in neural network, in Proceedings of the 32nd International Conference on Machine Learning, PMLR, Lille, (2015), 1613–1622. Available from: https://proceedings.mlr.press/v37/blundell15.html.

    [48]

    J. Hernández-Lobato, Y. Li, M. Rowland, T. Bui, D. Hernández-Lobato, R. Turner, Black-box alpha divergence minimization, in Proceedings of the 33rd International Conference on Machine Learning, PMLR, New York, (2016), 1511–1520. Available from: https://proceedings.mlr.press/v48/hernandez-lobatob16.html.

    [49]

    Y. Li, Y. Gal, Dropout inference in bayesian neural networks with alpha-divergences, in Proceedings of the 34th International Conference on Machine Learning, PMLR, Sydney, (2017), 2052–2061. Available from: https://proceedings.mlr.press/v70/li17a.html.

    [50]

    L. Zhu, N. Laptev, Deep and confident prediction for time series at uber, in Proceedings of 2017 IEEE International Conference on Data Mining Workshops. IEEE, New Orleans, (2017), 103–110. https://doi.org/10.1109/icdmw.2017.19

    [51]

    Y. Gal, Z. Ghahramani, Dropout as a bayesian approximation: Representing model uncertainty in deep learning, in Proceedings of the 33rd International Conference on Machine Learning, PMLR, New York, (2016), 1050–1059. Available from: https://proceedings.mlr.press/v48/gal16.html.

    [52]

    T. Hesterberg, Bootstrap, Wiley Interdiscip. Rev.: Comput. Stat., 3 (2011), 497–526. https://doi.org/10.1002/wics.182

    doi: 10.1002/wics.182
    [53]

    V. Jose, R. Winkler, Evaluating quantile assessments, Oper. Res., 57 (2009), 1287–1297. https://doi.org/10.1287/opre.1080.0665

    doi: 10.1287/opre.1080.0665
    [54]

    T. Gneiting, A. Raftery, Strictly proper scoring rules, prediction, and estimation, J. Am. Stat. Assoc., 102 (2007), 359–378. https://doi.org/10.1198/016214506000001437

    doi: 10.1198/016214506000001437
    [55]

    C. Czado, T. Gneiting, L. Held, Predictive model assessment for count data, Biometrics, 65 (2009), 1254–1261. https://doi.org/10.1111/j.1541-0420.2009.01191.x

    doi: 10.1111/j.1541-0420.2009.01191.x
    [56]

    F. Massey Jr, The kolmogorov-smirnov test for goodness of fit, J. Am. Stat. Assoc., 46 (1951), 68–78. https://doi.org/10.1080/01621459.1951.10500769

    doi: 10.1080/01621459.1951.10500769
    [57]

    R. Yan, Y. Yang, Y. Du, Stochastic optimization model for ship inspection planning under uncertainty in maritime transportation, Electron. Res. Arch., 31 (2022), 103–122. https://doi.org/10.3934/era.2023006

    doi: 10.3934/era.2023006
    [58]

    M. Mulamba, J. Mandi, M. Diligenti, M. Lombardi, V. Bucarey, T. Guns, Contrastive losses and solution caching for predict-and-optimize, preprint, arXiv: 2011.05354. https://doi.org/10.48550/arXiv.2011.05354

    [59]

    R. Yan, S. Wang, K. Fagerholt, A semi-"smart predict then optimize" (semi-SPO) method for efficient ship inspection, Transp. Res. Part B Methodol., 142 (2020), 100–125. https://doi.org/10.1016/j.trb.2020.09.014

    doi: 10.1016/j.trb.2020.09.014
    [60]

    G. Ifrim, B. O'Sullivan, H. Simonis, Properties of energy-price forecasts for scheduling, in Proceedings of International Conference on Principles and Practice of Constraint Programming, Springer, Québec, (2012), 957–972. https://doi.org/10.1007/978-3-642-33558-7_68

  • Reader Comments
  • © 2027 the Author(s), licensee AIMS Press. This is an open access article distributed under the terms of the Creative Commons Attribution License (http://creativecommons.org/licenses/by/4.0)

Metrics

Article views(44) PDF downloads(6) Cited by(0)

Article outline

Figures and Tables

Figures(9)  /  Tables(6)

/

DownLoad:  Full-Size Img  PowerPoint
Return
Return

Catalog