PyEPO: A PyTorch-based End-to-End Predict-then-Optimize Library for Linear and Integer Programming
Not on the map. Why?
Abstract (arXiv)
In deterministic optimization, it is typically assumed that all problem parameters are fixed and known. In practice, however, some parameters may be a priori unknown but can be estimated from contextual information. A typical predict-then-optimize approach separates predictions and optimization into two distinct stages. Recently, end-to-end predict-then-optimize has emerged as an attractive alternative. This work introduces the PyEPO package, a PyTorch-based end-to-end predict-then-optimize library in Python. To the best of our knowledge, PyEPO (pronounced like textitpineapple with a silent ``n") is the first such generic tool for linear and integer programming with predicted objective function coefficients. It includes various algorithms such as surrogate decision losses, black-box solvers, and perturbed methods. PyEPO offers a user-friendly interface for defining new optimization problems, applying state-of-the-art algorithms, and using custom neural network architectures. We conducted experiments comparing various methods on problems such as Shortest Path, Multiple Knapsack, and Traveling Salesperson Problem, and discussed empirical insights that may guide future research. PyEPO and its documentation are available at https://github.com/khalil-research/PyEPO.
Key facts. Cited by 32 papers in the map (data through 14 Oct 2026). Builds on 19 of its 52 references that are in the map. First posted on arXiv 28 Jun 2022.
Builds on
19 of 52 references.
References · 19
- 2014Adam: A Method for Stochastic Optimizationcited by 37,240
- 2019PyTorch: An Imperative Style, High-Performance Deep Learning Librarycited by 20,305
- 2016TensorFlow: Large-Scale Machine Learning on Heterogeneous Distributed Systemscited by 664
- 2017OptNet: Differentiable Optimization as a Layer in Neural Networkscited by 599
- 2019Differentiable Convex Optimization Layerscited by 465
- 2017Smart "Predict, then Optimize"cited by 339
- 2018Melding the Data-Decisions Pipeline: Decision-Focused Learning for Combinatorial Optimizationcited by 227
- 2019Differentiation of Blackbox Combinatorial Solverscited by 226
- 2015MXNet: A Flexible and Efficient Machine Learning Library for Heterogeneous Distributed Systemscited by 195
- 2019Learning with Fenchel-Young Lossescited by 119
- 2016On Differentiating Parameterized Argmin and Argmax Problems with Application to Bi-level Optimizationcited by 112
- 2019MIPaaL: Mixed Integer Program as a Layercited by 94
7 more
- 2019Smart Predict-and-Optimize for Hard Combinatorial Optimization Problemscited by 89
- 2020Interior Point Solving for LP-based prediction+optimisationcited by 83
- 2020Learning with Differentiable Perturbed Optimizerscited by 81
- 2019Differentiating Through a Cone Programcited by 73
- 2021Decision-Focused Learning: Through the Lens of Learning to Rankcited by 62
- 2020Decision Trees for Decision-Making under the Predict-then-Optimize Frameworkcited by 53
- 2020Contrastive Losses and Solution Caching for Predict-and-Optimizecited by 52
Built on by
Citing papers per year: 2022: 2; 2023: 8; 2024: 8; 2025: 3; 2026: 11.
32 papers.
Sort:
- 2023Decision-Focused Learning: Foundations, State of the Art, Benchmark and Future Opportunitiescited by 130
- 2023A Survey of Contextual Optimization Methods for Decision Making under Uncertaintycited by 82
- 2022Learning with Combinatorial Optimization Layers: a Probabilistic Approachcited by 29
- 2023Estimate-Then-Optimize versus Integrated-Estimation-Optimization versus Sample Average Approximation: A Stochastic Dominance Perspectivecited by 20
- 2023Landscape Surrogate: Learning Decision Losses for Mathematical Optimization Under Partial Informationcited by 18
- 2024Decision-Focused Learning with Directional Gradientscited by 16
- 2024First-Order Methods for Linearly Constrained Bilevel Optimizationcited by 10
- 2023Benchmarking PtO and PnO Methods in the Predictive Combinatorial Optimization Regimecited by 8
- 2023CaVE: A Cone-Aligned Approach for Fast Predict-then-optimize with Binary Linear Programscited by 8
- 2024DataSP: A Differential All-to-All Shortest Path Algorithm for Learning Costs and Predicting Paths with Contextcited by 6
- 2023Robust Losses for Decision-Focused Learningcited by 5
- 2024Decision-Focused Evaluation of Worst-Case Distribution Shiftcited by 4
20 more
- 2022Towards Improving Unit Commitment Economics: An Add-On Tailor for Renewable Energy and Reserve Predictionscited by 2
- 2024What is the Right Notion of Distance between Predict-then-Optimize Tasks?cited by 2
- 2025Smart Surrogate Losses for Contextual Stochastic Linear Optimization with Robust Constraintscited by 2
- 2026Relaxation-Informed Training of Neural Network Surrogate Modelscited by 2
- 2024Contextual Stochastic Vehicle Routing with Time Windowscited by 1
- 2025Decision-Focused Learning Enhanced by Automated Feature Engineering for Energy Storage Optimisationcited by 1
- 2025ID-PaS+ : Identity-Aware Predict-and-Search for General Mixed-Integer Linear Programscited by 1
- 2026Differentiable Knapsack and Top-k Operators via Dynamic Programmingcited by 1
- 2026Decision-Focused On-Policy Learning for Contextual Linear Optimization with Partial Feedbackcited by 1
- 2023Decision-focused predictions via pessimistic bilevel optimization: complexity and algorithmscited by 0
- 2024The Differentiable Feasibility Pumpcited by 0
- 2024Smart Predict-then-Optimize Method with Dependent Data: Risk Bounds and Calibration of Autoregressioncited by 0
- 2026Autocorrelated Optimize-via-Estimate: Predict-then-Optimize versus Finite-sample Optimalcited by 0
- 2026partialCBDs: Differentiable Causal Block Diagramscited by 0
- 2026Multi-Agent Decision-Focused Learning via Value-Aware Sequential Communicationcited by 0
- 2026IGT-OMD: Implicit Gradient Transport for Decision-Focused Learning under Delayed Feedbackcited by 0
- 2026Scaling Decision-Focused Learning to Large Problems with Lagrangian Decompositioncited by 0
- 2026Optimization with Dynamic Constraint Learning (DCL)cited by 0
- 2026Decision-Focused Learning in Network Interdiction Gamescited by 0
- 2026Decision-Driven Regularization: A Blended Model for Learning and Optimizationcited by 0
- 2026Decision-Driven Regularization: A Blended Model for Learning and Optimization15 Aug 2026
- 2026Decision-Focused Learning in Network Interdiction Games10 Aug 2026
- 2026Optimization with Dynamic Constraint Learning (DCL)28 Jul 2026
- 2026Scaling Decision-Focused Learning to Large Problems with Lagrangian Decomposition7 Jun 2026
- 2026Decision-Focused On-Policy Learning for Contextual Linear Optimization with Partial Feedback31 May 2026
- 2026IGT-OMD: Implicit Gradient Transport for Decision-Focused Learning under Delayed Feedback12 May 2026
- 2026Relaxation-Informed Training of Neural Network Surrogate Models24 Apr 2026
- 2026Multi-Agent Decision-Focused Learning via Value-Aware Sequential Communication10 Apr 2026
- 2026partialCBDs: Differentiable Causal Block Diagrams7 Feb 2026
- 2026Autocorrelated Optimize-via-Estimate: Predict-then-Optimize versus Finite-sample Optimal2 Feb 2026
- 2026Differentiable Knapsack and Top-k Operators via Dynamic Programming29 Jan 2026
- 2025ID-PaS+ : Identity-Aware Predict-and-Search for General Mixed-Integer Linear Programs11 Dec 2025
20 more
- 2025Decision-Focused Learning Enhanced by Automated Feature Engineering for Energy Storage Optimisation6 Sep 2025
- 2025Smart Surrogate Losses for Contextual Stochastic Linear Optimization with Robust Constraints28 May 2025
- 2024Smart Predict-then-Optimize Method with Dependent Data: Risk Bounds and Calibration of Autoregression19 Nov 2024
- 2024The Differentiable Feasibility Pump5 Nov 2024
- 2024What is the Right Notion of Distance between Predict-then-Optimize Tasks?11 Sep 2024
- 2024Decision-Focused Evaluation of Worst-Case Distribution Shift4 Jul 2024
- 2024First-Order Methods for Linearly Constrained Bilevel Optimization18 Jun 2024
- 2024DataSP: A Differential All-to-All Shortest Path Algorithm for Learning Costs and Predicting Paths with Context8 May 2024
- 2024Contextual Stochastic Vehicle Routing with Time Windows10 Feb 2024
- 2024Decision-Focused Learning with Directional Gradients5 Feb 2024
- 2023Decision-focused predictions via pessimistic bilevel optimization: complexity and algorithms29 Dec 2023
- 2023CaVE: A Cone-Aligned Approach for Fast Predict-then-optimize with Binary Linear Programs12 Dec 2023
- 2023Benchmarking PtO and PnO Methods in the Predictive Combinatorial Optimization Regime13 Nov 2023
- 2023Robust Losses for Decision-Focused Learning6 Oct 2023
- 2023Decision-Focused Learning: Foundations, State of the Art, Benchmark and Future Opportunities25 Jul 2023
- 2023Landscape Surrogate: Learning Decision Losses for Mathematical Optimization Under Partial Information18 Jul 2023
- 2023A Survey of Contextual Optimization Methods for Decision Making under Uncertainty17 Jun 2023
- 2023Estimate-Then-Optimize versus Integrated-Estimation-Optimization versus Sample Average Approximation: A Stochastic Dominance Perspective13 Apr 2023
- 2022Towards Improving Unit Commitment Economics: An Add-On Tailor for Renewable Energy and Reserve Predictions27 Aug 2022
- 2022Learning with Combinatorial Optimization Layers: a Probabilistic Approach27 Jul 2022
- 2023Decision-Focused Learning: Foundations, State of the Art, Benchmark and Future Opportunitiescited by 130
- 2023A Survey of Contextual Optimization Methods for Decision Making under Uncertaintycited by 82
- 2022Learning with Combinatorial Optimization Layers: a Probabilistic Approachcited by 29
- 2023Estimate-Then-Optimize versus Integrated-Estimation-Optimization versus Sample Average Approximation: A Stochastic Dominance Perspectivecited by 20
- 2023Landscape Surrogate: Learning Decision Losses for Mathematical Optimization Under Partial Informationcited by 18
- 2024Decision-Focused Learning with Directional Gradientscited by 16
- 2024First-Order Methods for Linearly Constrained Bilevel Optimizationcited by 10
- 2023Benchmarking PtO and PnO Methods in the Predictive Combinatorial Optimization Regimecited by 8
- 2023CaVE: A Cone-Aligned Approach for Fast Predict-then-optimize with Binary Linear Programscited by 8
- 2024DataSP: A Differential All-to-All Shortest Path Algorithm for Learning Costs and Predicting Paths with Contextcited by 6
- 2023Robust Losses for Decision-Focused Learningcited by 5
- 2024Decision-Focused Evaluation of Worst-Case Distribution Shiftcited by 4
12 most cited of 32 All 32 (JSON)
- 2026Decision-Driven Regularization: A Blended Model for Learning and Optimization15 Aug 2026
- 2026Decision-Focused Learning in Network Interdiction Games10 Aug 2026
- 2026Optimization with Dynamic Constraint Learning (DCL)28 Jul 2026
- 2026Scaling Decision-Focused Learning to Large Problems with Lagrangian Decomposition7 Jun 2026
- 2026Decision-Focused On-Policy Learning for Contextual Linear Optimization with Partial Feedback31 May 2026
- 2026IGT-OMD: Implicit Gradient Transport for Decision-Focused Learning under Delayed Feedback12 May 2026
- 2026Relaxation-Informed Training of Neural Network Surrogate Models24 Apr 2026
- 2026Multi-Agent Decision-Focused Learning via Value-Aware Sequential Communication10 Apr 2026
- 2026partialCBDs: Differentiable Causal Block Diagrams7 Feb 2026
- 2026Autocorrelated Optimize-via-Estimate: Predict-then-Optimize versus Finite-sample Optimal2 Feb 2026
- 2026Differentiable Knapsack and Top-k Operators via Dynamic Programming29 Jan 2026
- 2025ID-PaS+ : Identity-Aware Predict-and-Search for General Mixed-Integer Linear Programs11 Dec 2025
12 newest of 32 All 32 (JSON)