Online Conversion with Switching Costs: Robust and Learning-Augmented Algorithms (2310.20598v3)
Abstract: We introduce and study online conversion with switching costs, a family of online problems that capture emerging problems at the intersection of energy and sustainability. In this problem, an online player attempts to purchase (alternatively, sell) fractional shares of an asset during a fixed time horizon with length $T$. At each time step, a cost function (alternatively, price function) is revealed, and the player must irrevocably decide an amount of asset to convert. The player also incurs a switching cost whenever their decision changes in consecutive time steps, i.e., when they increase or decrease their purchasing amount. We introduce competitive (robust) threshold-based algorithms for both the minimization and maximization variants of this problem, and show they are optimal among deterministic online algorithms. We then propose learning-augmented algorithms that take advantage of untrusted black-box advice (such as predictions from a machine learning model) to achieve significantly better average-case performance without sacrificing worst-case competitive guarantees. Finally, we empirically evaluate our proposed algorithms using a carbon-aware EV charging case study, showing that our algorithms substantially improve on baseline methods for this problem.
- Carbon Explorer: A Holistic Framework for Designing Carbon Aware Datacenters. In Proceedings of the 28th ACM International Conference on Architectural Support for Programming Languages and Operating Systems, Volume 2 (Vancouver, BC, Canada) (ASPLOS 2023). Association for Computing Machinery, New York, NY, USA, 118–132. https://doi.org/10.1145/3575693.3575754
- Online Metric Algorithms with Untrusted Predictions. In Proceedings of the 37th International Conference on Machine Learning. PMLR, 345–355.
- Enabling Sustainable Clouds: The Case for Virtualizing the Energy System. In Proceedings of the ACM Symposium on Cloud Computing (Seattle, WA, USA) (SoCC ’21). Association for Computing Machinery, New York, NY, USA, 350–358. https://doi.org/10.1145/3472883.3487009
- The string guessing problem as a method to prove lower bounds on the advice complexity. Theoretical Computer Science 554 (October 2014), 95–108. https://doi.org/10.1016/j.tcs.2014.06.006
- On the advice complexity of online problems. In Algorithms and Computation: 20th International Symposium, ISAAC 2009, Honolulu, Hawaii, USA, December 16-18, 2009. Proceedings 20. Springer, 331–340.
- An Optimal On-Line Algorithm for Metrical Task System. J. ACM 39, 4 (Oct 1992), 745–763. https://doi.org/10.1145/146585.146588
- Quantifying the Decarbonization Potential of Flexible Loads in Residential Buildings. In Proceedings of the 10th ACM International Conference on Systems for Energy-Efficient Buildings, Cities, and Transportation (Istanbul, Turkey) (BuildSys ’23). Association for Computing Machinery, New York, NY, USA, 5 pages. https://doi.org/10.1145/3563357.3564079
- The Randomized $k$-Server Conjecture Is False!. In Proceedings of the 55th Annual ACM Symposium on Theory of Computing (STOC 2023) (Orlando, FL, USA) (STOC 2023). Association for Computing Machinery, New York, NY, USA, 581–594. https://doi.org/10.1145/3564246.3585132
- Metrical Task Systems on Trees via Mirror Descent and Unfair Gluing. SIAM J. Comput. 50, 3 (Jan. 2021), 909–923. https://doi.org/10.1137/19M1237879
- Chasing Nested Convex Bodies Nearly Optimally. In Proceedings of the 2020 ACM-SIAM Symposium on Discrete Algorithms (SODA). Society for Industrial and Applied Mathematics, 1496–1508. https://doi.org/10.1137/1.9781611975994.91
- Smoothed Online Convex Optimization in High Dimensions via Online Balanced Descent. In Proceedings of the 31st Conference On Learning Theory. PMLR, 1574–1594.
- Carbon-Aware EV Charging. In 2022 IEEE International Conference on Communications, Control, and Computing Technologies for Smart Grids (SmartGridComm). 186–192. https://doi.org/10.1109/SmartGridComm52983.2022.9960988
- Chasing Convex Bodies and Functions with Black-Box Advice. In Proceedings of the 35th Conference on Learning Theory, Vol. 178. PMLR, 867–908.
- Optimal robustness-consistency tradeoffs for learning-augmented metrical task systems. In International Conference on Artificial Intelligence and Statistics.
- Aron P Dobos. 2014. PVWatts Version 5 Manual. Technical Report. National Renewable Energy Lab.(NREL), Golden, CO (United States).
- Optimal Search and One-Way Trading Online Algorithms. Algorithmica 30, 1 (May 2001), 101–139. https://doi.org/10.1007/s00453-001-0003-0
- Online computation with advice. Theoretical Computer Science 412, 24 (2011), 2642–2656. https://doi.org/10.1016/j.tcs.2010.08.007 Selected Papers from 36th International Colloquium on Automata, Languages and Programming (ICALP 2009).
- Philippe Flajolet and Robert Sedgewick. 2009. Analytic Combinatorics. Cambridge University Press, Cambridge, England.
- Joel Friedman and Nathan Linial. 1993. On convex body chasing. Discrete & Computational Geometry 9, 3 (March 1993), 293–321. https://doi.org/10.1007/bf02189324
- On advice complexity of the k-server problem under sparse metrics. In International Colloquium on Structural Information and Communication Complexity. Springer, 55–67.
- Combining renewable solar and open air cooling for greening internet-scale distributed networks. In Proceedings of the Tenth ACM International Conference on Future Energy Systems. 303–314.
- The War of the Efficiencies: Understanding the Tension between Carbon and Energy Optimization. In Proceedings of the 2nd Workshop on Sustainable Computer Systems. ACM. https://doi.org/10.1145/3604930.3605709
- CarbonScaler: Leveraging Cloud Workload Elasticity for Optimizing Carbon-Efficiency. Proceedings of the ACM on Measurement and Analysis of Computing Systems 7, 3 (Dec 2023). arXiv:2302.08681 [cs.DC]
- Abdolhossein Hoorfar and Mehdi Hassani. 2008. Inequalities on the Lambert W function and hyperpower function. Journal of Inequalities in Pure and Applied Mathematics 9, 51 (Jan. 2008). Issue 2.
- ChargePoint Inc. 2019. Common DC Fast Charging Curves and How to Find Yours. https://www.chargepoint.com/blog/common-dc-fast-charging-curves-and-how-find-yours.
- Elias Koutsoupias. 2009. The k-server problem. Computer Science Review 3, 2 (May 2009), 105–118. https://doi.org/10.1016/j.cosrev.2009.04.002
- The Online Pause and Resume Problem: Optimal Algorithms and An Application to Carbon-Aware Load Shifting. Proceedings of the ACM on Measurement and Analysis of Computing Systems 7, 3, Article 53 (Dec 2023), 36 pages. arXiv:2303.17551 [cs.DS]
- Pareto-Optimal Learning-Augmented Algorithms for Online k-Search Problems. arXiv:2211.06567 https://arxiv.org/abs/2211.06567
- Adaptive Charging Networks: A Framework for Smart Electric Vehicle Charging. IEEE Transactions on Smart Grid 12, 5 (2021), 4339–4350. https://doi.org/10.1109/TSG.2021.3074437
- ACN-Data: Analysis and Applications of an Open EV Charging Dataset. In Proceedings of the Tenth ACM International Conference on Future Energy Systems (Phoenix, AZ, USA) (e-Energy ’19). Association for Computing Machinery, New York, NY, USA, 139–149. https://doi.org/10.1145/3307772.3328313
- Dynamic right-sizing for power-proportional data centers. IEEE/ACM Transactions on Networking 21, 5 (2012), 1378–1391.
- Renewable and cooling aware workload management for sustainable data centers. In Proceedings of the 12th ACM SIGMETRICS/PERFORMANCE joint international conference on Measurement and Modeling of Computer Systems. 175–186.
- Greening geographical load balancing. ACM SIGMETRICS Performance Evaluation Review 39, 1 (2011), 193–204.
- Optimal Algorithms for k-Search with Application in Option Pricing. Algorithmica 55, 2 (Aug. 2008), 311–328. https://doi.org/10.1007/s00453-008-9217-8
- Thodoris Lykouris and Sergei Vassilvtiskii. 2018. Competitive Caching with Machine Learned Advice. In Proceedings of the 35th International Conference on Machine Learning (Proceedings of Machine Learning Research, Vol. 80), Jennifer Dy and Andreas Krause (Eds.). PMLR, 3296–3305. https://proceedings.mlr.press/v80/lykouris18a.html
- CarbonCast: Multi-Day Forecasting of Grid Carbon Intensity. In Proceedings of the 9th ACM International Conference on Systems for Energy-Efficient Buildings, Cities, and Transportation (Boston, Massachusetts) (BuildSys ’22). Association for Computing Machinery, New York, NY, USA, 198–207. https://doi.org/10.1145/3563357.3564079
- DACF: Day-Ahead Carbon Intensity Forecasting of Power Grids Using Machine Learning. In Proceedings of the Thirteenth ACM International Conference on Future Energy Systems (Virtual Event) (e-Energy ’22). Association for Computing Machinery, New York, NY, USA, 188–192. https://doi.org/10.1145/3538637.3538849
- Competitive Algorithms for On-Line Problems. In Proceedings of the Twentieth Annual ACM Symposium on Theory of Computing (Chicago, Illinois, USA) (STOC ’88). Association for Computing Machinery, New York, NY, USA, 322–333. https://doi.org/10.1145/62212.62243
- Electricity Maps. 2023. Electricity Map. https://www.electricitymap.org/map.
- Inequalities Involving Functions and Their Integrals and Derivatives. Vol. 53. Springer Science & Business Media.
- Online algorithms for conversion problems: A survey. Surveys in Operations Research and Management Science 19, 2 (July 2014), 87–104. https://doi.org/10.1016/j.sorms.2014.08.001
- National Renewable Energy Laboratory (NREL). 2017. PVWatts Calculator. https://www.pvwatts.nrel.gov.
- University of Massachusetts Amherst. 2017. Solar Carports: Turning University Parking Facilities into Renewable Electricity Plants. https://www.epa.gov/sites/default/files/2017-09/documents/gppwebinar-9-26-17_small_umass.pdf.
- U.S. Department of Transportation. 2023. Rural EV Toolkit: Charger Types and Speeds. https://www.transportation.gov/rural/ev/toolkit/ev-basics/charging-speeds.
- Improving Online Algorithms via ML Predictions. In Advances in Neural Information Processing Systems, S. Bengio, H. Wallach, H. Larochelle, K. Grauman, N. Cesa-Bianchi, and R. Garnett (Eds.), Vol. 31. Curran Associates, Inc.
- Carbon-Aware Computing for Datacenters. IEEE Transactions on Power Systems (2022).
- Smoothed Online Optimization with Unreliable Predictions. Proceedings of the ACM on Measurement and Analysis of Computing Systems 7, 1, Article 12 (March 2023), 36 pages. https://doi.org/10.1145/3579442
- The National Solar Radiation Data Base (NSRDB). Renewable and Sustainable Energy Reviews 89 (2018), 51–60.
- Ecovisor: A Virtual Energy System for Carbon-Efficient Applications. In Proceedings of the 28th ACM International Conference on Architectural Support for Programming Languages and Operating Systems, Volume 2 (Vancouver, BC, Canada) (ASPLOS 2023). Association for Computing Machinery, New York, NY, USA, 252–265. https://doi.org/10.1145/3575693.3575709
- Seán M. Stewart. 2009. On Certain Inequalities Involving the Lambert W function. Journal of Inequalities in Pure and Applied Mathematics 10, 96 (Nov. 2009). Issue 4.
- Quantifying the Benefits of Carbon-Aware Temporal and Spatial Workload Shifting in the Cloud. arXiv:2306.06502 [cs.DC]
- Spatiotemporal Carbon-Aware Scheduling in the Cloud: Limits and Benefits. In Companion Proceedings of the 14th ACM International Conference on Future Energy Systems (Orlando, FL, USA) (e-Energy ’23 Companion). Association for Computing Machinery, New York, NY, USA. https://doi.org/10.1145/3599733.3606301
- Pareto-Optimal Learning-Augmented Algorithms for Online Conversion Problems. In Advances in Neural Information Processing Systems, M. Ranzato, A. Beygelzimer, Y. Dauphin, P.S. Liang, and J. Wortman Vaughan (Eds.), Vol. 34. Curran Associates, Inc., 10339–10350. https://proceedings.neurips.cc/paper_files/paper/2021/file/55a988dfb00a914717b3000a3374694c-Paper.pdf
- The Online Knapsack Problem with Departures. Proceedings of the ACM on Measurement and Analysis of Computing Systems 6, 3 (2022), 1–32.
- Competitive Algorithms for the Online Multiple Knapsack Problem with Application to Electric Vehicle Charging. Proceedings of the ACM on Measurement and Analysis of Computing Systems 4, 3, Article 51 (June 2021), 32 pages. https://doi.org/10.1145/3428336
- SciPy 1.0: Fundamental Algorithms for Scientific Computing in Python. Nature Methods 17 (2020), 261–272. https://doi.org/10.1038/s41592-019-0686-2
- Let’s Wait AWhile: How Temporal Workload Shifting Can Reduce Carbon Emissions in the Cloud. In Proceedings of the 22nd International Middleware Conference. Association for Computing Machinery, New York, NY, USA, 260–272. https://doi.org/10.1145/3464298.3493399
- Competitive Algorithms for Online Multidimensional Knapsack Problems. Proceedings of the ACM on Measurement and Analysis of Computing Systems 5, 3, Article 30 (Dec 2021), 30 pages.
- Sheng Shui Zhang. 2006. The effect of the charging protocol on the cycle life of a Li-ion battery. Journal of Power Sources 161, 2 (2006), 1385–1391. https://doi.org/10.1016/j.jpowsour.2006.06.040
- Budget Constrained Bidding in Keyword Auctions and Online Knapsack Problems. In Lecture Notes in Computer Science. Springer Berlin Heidelberg, 566–576.