IDEAS home Printed from https://ideas.repec.org/a/eee/jomega/v105y2021ics0305048321001250.html

An exact dynamic programming approach to segmented isotonic regression

Author

Listed:
  • Bucarey, Víctor
  • Labbé, Martine
  • Morales, Juan M.
  • Pineda, Salvador

Abstract

This paper proposes a polynomial-time algorithm to construct the monotone stepwise curve that minimizes the sum of squared errors with respect to a given cloud of data points. The fitted curve is also constrained on the maximum number of steps it can be composed of and on the minimum step length. Our algorithm relies on dynamic programming and is built on the basis that said curve-fitting task can be tackled as a shortest-path type of problem. Numerical results on synthetic and realistic data sets reveal that our algorithm is able to provide the globally optimal monotone stepwise curve fit for samples with thousands of data points in less than a few hours. Furthermore, the algorithm gives a certificate on the optimality gap of any incumbent solution it generates. From a practical standpoint, this piece of research is motivated by the roll-out of smart grids and the increasing role played by the small flexible consumption of electricity in the large-scale integration of renewable energy sources into current power systems. Within this context, our algorithm constitutes an useful tool to generate bidding curves for a pool of small flexible consumers to partake in wholesale electricity markets.

Suggested Citation

  • Bucarey, Víctor & Labbé, Martine & Morales, Juan M. & Pineda, Salvador, 2021. "An exact dynamic programming approach to segmented isotonic regression," Omega, Elsevier, vol. 105(C).
  • Handle: RePEc:eee:jomega:v:105:y:2021:i:c:s0305048321001250
    DOI: 10.1016/j.omega.2021.102516
    as

    Download full text from publisher

    File URL: http://www.sciencedirect.com/science/article/pii/S0305048321001250
    Download Restriction: Full text for ScienceDirect subscribers only

    File URL: https://libkey.io/10.1016/j.omega.2021.102516?utm_source=ideas
    LibKey link: if access is restricted and if your library uses this service, LibKey will redirect you to where you can use your library subscription to access this item
    ---><---

    As the access to this document is restricted, you may want to

    for a different version of it.

    References listed on IDEAS

    as
    1. Soares, Inês & Alves, Maria João & Antunes, Carlos Henggeler, 2020. "Designing time-of-use tariffs in electricity retail markets using a bi-level model – Estimating bounds when the lower level problem cannot be exactly solved," Omega, Elsevier, vol. 93(C).
    2. P. M. Lerman, 1980. "Fitting Segmented Regression Models by Grid Search," Journal of the Royal Statistical Society Series C, Royal Statistical Society, vol. 29(1), pages 77-84, March.
    3. Timothy C. Y. Chan & Taewoo Lee & Daria Terekhov, 2019. "Inverse Optimization: Closed-Form Solutions, Geometry, and Goodness of Fit," Management Science, INFORMS, vol. 65(3), pages 1115-1135, March.
    4. Ravindra K. Ahuja & James B. Orlin, 2001. "Inverse Optimization," Operations Research, INFORMS, vol. 49(5), pages 771-783, October.
    5. de Leeuw, Jan & Hornik, Kurt & Mair, Patrick, 2009. "Isotone Optimization in R: Pool-Adjacent-Violators Algorithm (PAVA) and Active Set Methods," Journal of Statistical Software, Foundation for Open Access Statistics, vol. 32(i05).
    6. Douglas M. Hawkins, 1976. "Point Estimation of the Parameters of Piecewise Regression Models," Journal of the Royal Statistical Society Series C, Royal Statistical Society, vol. 25(1), pages 51-57, March.
    7. Zugno, Marco & Morales, Juan Miguel & Pinson, Pierre & Madsen, Henrik, 2013. "A bilevel model for electricity retailers' participation in a demand response market environment," Energy Economics, Elsevier, vol. 36(C), pages 182-197.
    Full references (including those not matched with items on IDEAS)

    Citations

    Citations are extracted by the CitEc Project, subscribe to its RSS feed for this item.
    as


    Cited by:

    1. Navarro-García, Manuel & Guerrero, Vanesa & Durban, María, 2023. "On constrained smoothing and out-of-range prediction using P-splines: A conic optimization approach," Applied Mathematics and Computation, Elsevier, vol. 441(C).

    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. Sheng Liu & Auyon Siddiq & Jingwei Zhang, 2025. "Planning Bike Lanes with Data: Ridership, Congestion, and Path Selection," Management Science, INFORMS, vol. 71(9), pages 7631-7654, September.
    2. Qorbanian, Roozbeh & Löhndorf, Nils & Wozabal, David, 2025. "Valuation of power purchase agreements for corporate renewable energy procurement," European Journal of Operational Research, Elsevier, vol. 326(3), pages 530-543.
    3. Omar Besbes & Yuri Fonseca & Ilan Lobel, 2025. "Contextual Inverse Optimization: Offline and Online Learning," Operations Research, INFORMS, vol. 73(1), pages 424-443, January.
    4. Chen, Lu & Chen, Yuyi & Langevin, André, 2021. "An inverse optimization approach for a capacitated vehicle routing problem," European Journal of Operational Research, Elsevier, vol. 295(3), pages 1087-1098.
    5. Roozbeh Qorbanian & Nils Lohndorf & David Wozabal, 2024. "Valuation of Power Purchase Agreements for Corporate Renewable Energy Procurement," Papers 2403.08846, arXiv.org.
    6. András Kovács, 2021. "Inverse optimization approach to the identification of electricity consumer models," Central European Journal of Operations Research, Springer;Slovak Society for Operations Research;Hungarian Operational Research Society;Czech Society for Operations Research;Österr. Gesellschaft für Operations Research (ÖGOR);Slovenian Society Informatika - Section for Operational Research;Croatian Operational Research Society, vol. 29(2), pages 521-537, June.
    7. Rishabh Gupta & Qi Zhang, 2022. "Decomposition and Adaptive Sampling for Data-Driven Inverse Linear Optimization," INFORMS Journal on Computing, INFORMS, vol. 34(5), pages 2720-2735, September.
    8. Soares, Inês & Alves, Maria João & Henggeler Antunes, Carlos, 2021. "A deterministic bounding procedure for the global optimization of a bi-level mixed-integer problem," European Journal of Operational Research, Elsevier, vol. 291(1), pages 52-66.
    9. Carlos Henggeler Antunes & Maria João Alves & Billur Ecer, 2020. "Bilevel optimization to deal with demand response in power grids: models, methods and challenges," TOP: An Official Journal of the Spanish Society of Statistics and Operations Research, Springer;Sociedad de Estadística e Investigación Operativa, vol. 28(3), pages 814-842, October.
    10. Jinho Cha, 2025. "Dynamic Inverse Optimization under Drift and Shocks: Theory, Regret Bounds, and Applications," Papers 2509.14080, arXiv.org.
    11. Temitayo Ajayi & Taewoo Lee & Andrew J. Schaefer, 2022. "Objective Selection for Cancer Treatment: An Inverse Optimization Approach," Operations Research, INFORMS, vol. 70(3), pages 1717-1738, May.
    12. Jonathan Yu-Meng Li, 2021. "Inverse Optimization of Convex Risk Functions," Management Science, INFORMS, vol. 67(11), pages 7113-7141, November.
    13. Merve Bodur & Timothy C. Y. Chan & Ian Yihang Zhu, 2022. "Inverse Mixed Integer Optimization: Polyhedral Insights and Trust Region Methods," INFORMS Journal on Computing, INFORMS, vol. 34(3), pages 1471-1488, May.
    14. Anjos, Miguel F. & Brotcorne, Luce & Gomez-Herrera, Juan A., 2021. "Optimal setting of time-and-level-of-use prices for an electricity supplier," Energy, Elsevier, vol. 225(C).
    15. Pedro Zattoni Scroccaro & Bilge Atasoy & Peyman Mohajerin Esfahani, 2025. "Learning in Inverse Optimization: Incenter Cost, Augmented Suboptimality Loss, and Algorithms," Operations Research, INFORMS, vol. 73(5), pages 2661-2679, September.
    16. Ghobadi, Kimia & Mahmoudzadeh, Houra, 2021. "Inferring linear feasible regions using inverse optimization," European Journal of Operational Research, Elsevier, vol. 290(3), pages 829-843.
    17. Shi Yu & Haoran Wang & Chaosheng Dong, 2020. "Learning Risk Preferences from Investment Portfolios Using Inverse Optimization," Papers 2010.01687, arXiv.org, revised Feb 2021.
    18. Timothy C. Y. Chan & Katharina Forster & Steven Habbous & Claire Holloway & Luciano Ieraci & Yusuf Shalaby & Nasrin Yousefi, 2022. "Inverse optimization on hierarchical networks: an application to breast cancer clinical pathways," Health Care Management Science, Springer, vol. 25(4), pages 590-622, December.
    19. Beraldi, Patrizia & Khodaparasti, Sara, 2023. "Designing electricity tariffs in the retail market: A stochastic bi-level approach," International Journal of Production Economics, Elsevier, vol. 257(C).
    20. Arega Getaneh Abate & Rossana Riccardi & Carlos Ruiz, 2025. "Dynamic tariff-based demand response in retail electricity market under uncertainty," OR Spectrum: Quantitative Approaches in Management, Springer;Gesellschaft für Operations Research e.V., vol. 47(3), pages 1011-1045, September.

    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:eee:jomega:v:105:y:2021:i:c:s0305048321001250. 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: Catherine Liu (email available below). General contact details of provider: http://www.elsevier.com/wps/find/journaldescription.cws_home/375/description#description .

    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.