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
    ---><---

    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.

    We have no bibliographic references for this item. You can help adding them by using 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.