IDEAS home Printed from https://ideas.repec.org/a/gam/jmathe/v13y2025i12p2033-d1683060.html
   My bibliography  Save this article

A Surrogate Piecewise Linear Loss Function for Contextual Stochastic Linear Programs in Transport

Author

Listed:
  • Qi Hong

    (School of Transportation, Southeast University, Nanjing 211189, China
    These authors contributed equally to this work.)

  • Mo Jia

    (School of Transportation, Southeast University, Nanjing 211189, China
    These authors contributed equally to this work.)

  • Xuecheng Tian

    (Faculty of Business, The Hong Kong Polytechnic University, Hung Hom, Kowloon, Hong Kong)

  • Zhiyuan Liu

    (Jiangsu Key Laboratory of Urban ITS, Jiangsu Province Collaborative Innovation Center of Modern Urban Traffic Technologies, School of Transportation, Southeast University, Nanjing 211189, China
    Key Laboratory of Transport Industry of Comprehensive Transportation Theory (Nanjing Modern Multi-Modal Transportation Laboratory), Ministry of Transport, Nanjing 210000, China)

  • Shuaian Wang

    (Faculty of Business, The Hong Kong Polytechnic University, Hung Hom, Kowloon, Hong Kong)

Abstract

Accurate decision making under uncertainty for transport problems often requires predicting unknown parameters from contextual information. Traditional two-stage frameworks separate prediction and optimization, which can lead to suboptimal decisions, as minimizing prediction error does not necessarily minimize decision loss. To address this limitation, inspired by the smart predict-then-optimize framework, we introduce a novel tunable piecewise linear loss function (PLLF). Rather than directly incorporating decision loss into the learning objective based on specific problem, PLLF serves as a general feedback mechanism that guides the prediction model based on the structure and sensitivity of the downstream optimization task. This design enables the training process to prioritize predictions that are more decision-relevant. We further develop a heuristic parameter search strategy that adapts PLLF using validation data, enhancing its generalizability across different data settings. We test our method with a binary route selection task—the simplest setting to isolate and assess the impact of our modeling approach on decision quality. Experiments across multiple machine learning models demonstrate consistent improvements in decision quality, with neural networks showing the most significant gains—improving decision outcomes in 36 out of 45 cases. These results highlight the potential of our framework to enhance decision-making processes that rely on predictive insights in transportation systems, particularly in routing, scheduling, and resource allocation problems where uncertainty plays a critical role. Overall, our approach offers a practical and scalable solution for integrating prediction and optimization in real-world transport applications.

Suggested Citation

  • Qi Hong & Mo Jia & Xuecheng Tian & Zhiyuan Liu & Shuaian Wang, 2025. "A Surrogate Piecewise Linear Loss Function for Contextual Stochastic Linear Programs in Transport," Mathematics, MDPI, vol. 13(12), pages 1-17, June.
  • Handle: RePEc:gam:jmathe:v:13:y:2025:i:12:p:2033-:d:1683060
    as

    Download full text from publisher

    File URL: https://www.mdpi.com/2227-7390/13/12/2033/pdf
    Download Restriction: no

    File URL: https://www.mdpi.com/2227-7390/13/12/2033/
    Download Restriction: no
    ---><---

    References listed on IDEAS

    as
    1. Dimitris Bertsimas & Nathan Kallus, 2020. "From Predictive to Prescriptive Analytics," Management Science, INFORMS, vol. 66(3), pages 1025-1044, March.
    2. Sadana, Utsav & Chenreddy, Abhilash & Delage, Erick & Forel, Alexandre & Frejinger, Emma & Vidal, Thibaut, 2025. "A survey of contextual optimization methods for decision-making under uncertainty," European Journal of Operational Research, Elsevier, vol. 320(2), pages 271-289.
    Full references (including those not matched with items on IDEAS)

    Most related items

    These are the items that most often cite the same works as this one and are cited by the same works as this one.
    1. Serrano, Breno & Minner, Stefan & Schiffer, Maximilian & Vidal, Thibaut, 2024. "Bilevel optimization for feature selection in the data-driven newsvendor problem," European Journal of Operational Research, Elsevier, vol. 315(2), pages 703-714.
    2. Keliang Wang & Leonardo Lozano & Carlos Cardonha & David Bergman, 2023. "Optimizing over an Ensemble of Trained Neural Networks," INFORMS Journal on Computing, INFORMS, vol. 35(3), pages 652-674, May.
    3. Meng Qi & Ying Cao & Zuo-Jun (Max) Shen, 2022. "Distributionally Robust Conditional Quantile Prediction with Fixed Design," Management Science, INFORMS, vol. 68(3), pages 1639-1658, March.
    4. Shunichi Ohmori, 2021. "A Predictive Prescription Using Minimum Volume k -Nearest Neighbor Enclosing Ellipsoid and Robust Optimization," Mathematics, MDPI, vol. 9(2), pages 1-16, January.
    5. Andrew Butler & Roy Kwon, 2021. "Efficient differentiable quadratic programming layers: an ADMM approach," Papers 2112.07464, arXiv.org.
    6. Liu, Congzheng & Letchford, Adam N. & Svetunkov, Ivan, 2022. "Newsvendor problems: An integrated method for estimation and optimisation," European Journal of Operational Research, Elsevier, vol. 300(2), pages 590-601.
    7. Huang, Di & Zhang, Jinyu & Liu, Zhiyuan & Liu, Ronghui, 2025. "Prescriptive analytics for freeway traffic state estimation by multi-source data fusion," Transportation Research Part E: Logistics and Transportation Review, Elsevier, vol. 198(C).
    8. Schmidt, Felix G. & Pibernik, Richard, 2025. "Data-driven inventory control for large product portfolios: A practical application of prescriptive analytics," European Journal of Operational Research, Elsevier, vol. 322(1), pages 254-269.
    9. Corredera, Alberto & Ruiz, Carlos, 2023. "Prescriptive selection of machine learning hyperparameters with applications in power markets: Retailer’s optimal trading," European Journal of Operational Research, Elsevier, vol. 306(1), pages 370-388.
    10. Wang, Wanpeng & Deng, Shiming & Zhang, Yuying, 2025. "Data-driven ordering policies for target oriented newsvendor with censored demand," European Journal of Operational Research, Elsevier, vol. 323(1), pages 86-96.
    11. Shuaian Wang & Xuecheng Tian, 2023. "A Deficiency of the Predict-Then-Optimize Framework: Decreased Decision Quality with Increased Data Size," Mathematics, MDPI, vol. 11(15), pages 1-9, July.
    12. Toon Vanderschueren & Robert Boute & Tim Verdonck & Bart Baesens & Wouter Verbeke, 2022. "Prescriptive maintenance with causal machine learning," Papers 2206.01562, arXiv.org.
    13. Andrew Butler & Roy H. Kwon, 2021. "Data-driven integration of norm-penalized mean-variance portfolios," Papers 2112.07016, arXiv.org, revised Nov 2022.
    14. Sel, Burakhan & Minner, Stefan, 2022. "A hedging policy for seaborne forward freight markets based on probabilistic forecasts," Transportation Research Part E: Logistics and Transportation Review, Elsevier, vol. 166(C).
    15. Dmitry B. Rokhlin, 2020. "Relative utility bounds for empirically optimal portfolios," Papers 2006.05204, arXiv.org.
    16. Xinqi Chen & Xingyu Bai & Zeyu Zheng & Nian Si, 2025. "Bias Analysis of Experiments for Multi-Item Multi-Period Inventory Control Policies," Papers 2501.11996, arXiv.org.
    17. Roberto G. Aragón & Jesús Medina & Samuel Molina-Ruiz & Ronald R. Yager, 2025. "On the Complete Lattice Structure of Ordered Functional Weighted Averaging Operators," Mathematics, MDPI, vol. 13(5), pages 1-12, February.
    18. Robert Engel & Pablo Fernandez & Antonio Ruiz-Cortes & Aly Megahed & Juan Ojeda-Perez, 2022. "SLA-aware operational efficiency in AI-enabled service chains: challenges ahead," Information Systems and e-Business Management, Springer, vol. 20(1), pages 199-221, March.
    19. Xuecheng Tian & Bo Jiang & King-Wah Pang & Yu Guo & Yong Jin & Shuaian Wang, 2024. "Solving Contextual Stochastic Optimization Problems through Contextual Distribution Estimation," Mathematics, MDPI, vol. 12(11), pages 1-14, May.
    20. van Eekelen, Wouter, 2023. "Distributionally robust views on queues and related stochastic models," Other publications TiSEM 9b99fc05-9d68-48eb-ae8c-9, Tilburg University, School of Economics and Management.

    More about this item

    Keywords

    ;
    ;
    ;
    ;

    Statistics

    Access and download statistics

    Corrections

    All material on this site has been provided by the respective publishers and authors. You can help correct errors and omissions. When requesting a correction, please mention this item's handle: RePEc:gam:jmathe:v:13:y:2025:i:12:p:2033-:d:1683060. See general information about how to correct material in RePEc.

    If you have authored this item and are not yet registered with RePEc, we encourage you to do it here. This allows to link your profile to this item. It also allows you to accept potential citations to this item that we are uncertain about.

    If CitEc recognized a bibliographic reference but did not link an item in RePEc to it, you can help with this form .

    If you know of missing items citing this one, you can help us creating those links by adding the relevant references in the same way as above, for each refering item. If you are a registered author of this item, you may also want to check the "citations" tab in your RePEc Author Service profile, as there may be some citations waiting for confirmation.

    For technical questions regarding this item, or to correct its authors, title, abstract, bibliographic or download information, contact: MDPI Indexing Manager (email available below). General contact details of provider: https://www.mdpi.com .

    Please note that corrections may take a couple of weeks to filter through the various RePEc services.

    IDEAS is a RePEc service. RePEc uses bibliographic data supplied by the respective publishers.