IDEAS home Printed from https://ideas.repec.org/a/eee/energy/v323y2025ics0360544225014306.html
   My bibliography  Save this article

Optimizing capacity expansion modeling with a novel hierarchical clustering and systematic elbow method: A case study on power and storage units in Spain

Author

Listed:
  • Riyahi, Milad
  • Martín, Alvaro Gutiérrez

Abstract

To reduce the computational complexity of Capacity Expansion Models, the planning horizon must be simplified into representative time-periods. Also, to accurately model the expansion of power and storage units, these representative time periods must reveal the mid-term dynamics of the planning horizon. In this paper, a novel hierarchical clustering algorithm is presented that retains the chronology of the original data in creating representative time periods. The proposed algorithm, first, determines the optimal number of clusters with a modified elbow method, enhanced with a stopping criterion to prevent it from running uselessly. The designed stopping criterion works based on percentage variance and runtime to determine the number of clusters systematically. Then, the proposed clustering algorithm employs a novel selection strategy based on the Euclidean distance, k-Medoid, and k-Means to determine the most proper representative vector in each cluster. In this way, it reduces the computational time of capacity expansion models while maintaining the accuracy of final answers. To evaluate its performance, the proposed algorithm is tested on energy data, including demand, photovoltaic, wind, and hydrogen generation, across hourly, daily, and weekly time periods. Also, the performance of the proposed clustering algorithm in selecting the number of clusters and clustering is compared with the results of some well-known methods on accuracy and runtime metrics. Numerical results show that the proposed clustering method selects a more appropriate number of clusters in less computational time than other systematic approaches. Moreover, findings on clustering show that the proposed algorithm achieves the highest accuracy on weekly and daily time periods compared to well-known clustering methods, with the error rate of 118 % and 52 %, respectively. Furthermore, implementation results show that the proposed clustering reduces the computational time of capacity expansion models by 84.81 % and 55.91 % on weekly and daily time periods. Additionally, this study assesses the robustness of the clustering methods through a sensitivity analysis, which shows that the proposed algorithm outperforms the others in this metric, as well.

Suggested Citation

  • Riyahi, Milad & Martín, Alvaro Gutiérrez, 2025. "Optimizing capacity expansion modeling with a novel hierarchical clustering and systematic elbow method: A case study on power and storage units in Spain," Energy, Elsevier, vol. 323(C).
  • Handle: RePEc:eee:energy:v:323:y:2025:i:c:s0360544225014306
    DOI: 10.1016/j.energy.2025.135788
    as

    Download full text from publisher

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

    File URL: https://libkey.io/10.1016/j.energy.2025.135788?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. Maiz, Santiago & Baringo, Luis & García-Bertrand, Raquel, 2025. "Dynamic expansion planning of a commercial virtual power plant through coalition with distributed energy resources considering rival competitors," Applied Energy, Elsevier, vol. 377(PD).
    2. Arnold, Fabian & Lilienkamp, Arne & Namockel, Nils, 2024. "Diffusion of electric vehicles and their flexibility potential for smoothing residual demand — A spatio-temporal analysis for Germany," Energy, Elsevier, vol. 308(C).
    3. Li, Zichen & Xia, Yanghong & Bo, Yaolong & Wei, Wei, 2024. "Optimal planning for electricity-hydrogen integrated energy system considering multiple timescale operations and representative time-period selection," Applied Energy, Elsevier, vol. 362(C).
    4. Pfenninger, Stefan, 2017. "Dealing with multiple decades of hourly wind and PV time series in energy models: A comparison of methods to reduce time resolution and the planning implications of inter-annual variability," Applied Energy, Elsevier, vol. 197(C), pages 1-13.
    5. Wen, Shuqing & Zhang, Weirong & Sun, Yifu & Li, Zhenxi & Huang, Boju & Bian, Shouguo & Zhao, Lin & Wang, Yan, 2023. "An enhanced principal component analysis method with Savitzky–Golay filter and clustering algorithm for sensor fault detection and diagnosis," Applied Energy, Elsevier, vol. 337(C).
    6. Homeyra Akter & Harun Or Rashid Howlader & Ahmed Y. Saber & Paras Mandal & Hiroshi Takahashi & Tomonobu Senjyu, 2021. "Optimal Sizing of Hybrid Microgrid in a Remote Island Considering Advanced Direct Load Control for Demand Response and Low Carbon Emission," Energies, MDPI, vol. 14(22), pages 1-19, November.
    7. Domínguez, R. & Vitali, S., 2021. "Multi-chronological hierarchical clustering to solve capacity expansion problems with renewable sources," Energy, Elsevier, vol. 227(C).
    8. Álvaro García-Cerezo & Luis Baringo & Raquel García-Bertrand, 2020. "Representative Days for Expansion Decisions in Power Systems," Energies, MDPI, vol. 13(2), pages 1-18, January.
    9. Mallapragada, Dharik S. & Papageorgiou, Dimitri J. & Venkatesh, Aranya & Lara, Cristiana L. & Grossmann, Ignacio E., 2018. "Impact of model resolution on scenario outcomes for electricity sector system expansion," Energy, Elsevier, vol. 163(C), pages 1231-1244.
    10. Merrick, James H., 2016. "On representation of temporal variability in electricity capacity planning models," Energy Economics, Elsevier, vol. 59(C), pages 261-274.
    11. Teichgraeber, Holger & Brodrick, Philip G. & Brandt, Adam R., 2017. "Optimal design and operations of a flexible oxyfuel natural gas plant," Energy, Elsevier, vol. 141(C), pages 506-518.
    12. Schütz, Thomas & Schraven, Markus Hans & Fuchs, Marcus & Remmen, Peter & Müller, Dirk, 2018. "Comparison of clustering algorithms for the selection of typical demand days for energy system synthesis," Renewable Energy, Elsevier, vol. 129(PA), pages 570-582.
    13. de Sisternes, Fernando J. & Jenkins, Jesse D. & Botterud, Audun, 2016. "The value of energy storage in decarbonizing the electricity sector," Applied Energy, Elsevier, vol. 175(C), pages 368-379.
    14. Yeganefar, Ali & Amin-Naseri, Mohammad Reza & Sheikh-El-Eslami, Mohammad Kazem, 2020. "Improvement of representative days selection in power system planning by incorporating the extreme days of the net load to take account of the variability and intermittency of renewable resources," Applied Energy, Elsevier, vol. 272(C).
    15. Li, Can & Conejo, Antonio J. & Liu, Peng & Omell, Benjamin P. & Siirola, John D. & Grossmann, Ignacio E., 2022. "Mixed-integer linear programming models and algorithms for generation and transmission expansion planning of power systems," European Journal of Operational Research, Elsevier, vol. 297(3), pages 1071-1082.
    16. Teichgraeber, Holger & Brandt, Adam R., 2022. "Time-series aggregation for the optimization of energy systems: Goals, challenges, approaches, and opportunities," Renewable and Sustainable Energy Reviews, Elsevier, vol. 157(C).
    17. Scott, Ian J. & Carvalho, Pedro M.S. & Botterud, Audun & Silva, Carlos A., 2019. "Clustering representative days for power systems generation expansion planning: Capturing the effects of variable renewables and energy storage," Applied Energy, Elsevier, vol. 253(C), pages 1-1.
    18. Marcy, Cara & Goforth, Teagan & Nock, Destenie & Brown, Maxwell, 2022. "Comparison of temporal resolution selection approaches in energy systems models," Energy, Elsevier, vol. 251(C).
    19. Frederic H. Murphy & Yves Smeers, 2005. "Generation Capacity Expansion in Imperfectly Competitive Restructured Electricity Markets," Operations Research, INFORMS, vol. 53(4), pages 646-661, August.
    20. Norambuena-Guzmán, Valentina & Palma-Behnke, Rodrigo & Hernández-Moris, Catalina & Cerda, Maria Teresa & Flores-Quiroz, Ángela, 2024. "Towards CSP technology modeling in power system expansion planning," Applied Energy, Elsevier, vol. 364(C).
    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. Teichgraeber, Holger & Brandt, Adam R., 2022. "Time-series aggregation for the optimization of energy systems: Goals, challenges, approaches, and opportunities," Renewable and Sustainable Energy Reviews, Elsevier, vol. 157(C).
    2. Maximilian Hoffmann & Leander Kotzur & Detlef Stolten & Martin Robinius, 2020. "A Review on Time Series Aggregation Methods for Energy System Models," Energies, MDPI, vol. 13(3), pages 1-61, February.
    3. Hoffmann, Maximilian & Kotzur, Leander & Stolten, Detlef, 2022. "The Pareto-optimal temporal aggregation of energy system models," Applied Energy, Elsevier, vol. 315(C).
    4. Merrick, James H. & Bistline, John E.T. & Blanford, Geoffrey J., 2024. "On representation of energy storage in electricity planning models," Energy Economics, Elsevier, vol. 136(C).
    5. Kuepper, Lucas Elias & Teichgraeber, Holger & Baumgärtner, Nils & Bardow, André & Brandt, Adam R., 2022. "Wind data introduce error in time-series reduction for capacity expansion modelling," Energy, Elsevier, vol. 256(C).
    6. Göke, Leonard & Kendziorski, Mario, 2022. "Adequacy of time-series reduction for renewable energy systems," Energy, Elsevier, vol. 238(PA).
    7. Hoffmann, Maximilian & Priesmann, Jan & Nolting, Lars & Praktiknjo, Aaron & Kotzur, Leander & Stolten, Detlef, 2021. "Typical periods or typical time steps? A multi-model analysis to determine the optimal temporal aggregation for energy system models," Applied Energy, Elsevier, vol. 304(C).
    8. Kittel, Martin & Hobbie, Hannes & Dierstein, Constantin, 2022. "Temporal aggregation of time series to identify typical hourly electricity system states: A systematic assessment of relevant cluster algorithms," Energy, Elsevier, vol. 247(C).
    9. Teichgraeber, Holger & Lindenmeyer, Constantin P. & Baumgärtner, Nils & Kotzur, Leander & Stolten, Detlef & Robinius, Martin & Bardow, André & Brandt, Adam R., 2020. "Extreme events in time series aggregation: A case study for optimal residential energy supply systems," Applied Energy, Elsevier, vol. 275(C).
    10. Tian, Zhe & Wang, Yi & Li, Xiaoyuan & Wen, Li & Niu, Jide & Lu, Yakai, 2024. "Typical daily scenario extraction method based on key features to promote building renewable energy system optimization efficiency," Renewable Energy, Elsevier, vol. 236(C).
    11. Hilbers, Adriaan P. & Brayshaw, David J. & Gandy, Axel, 2023. "Reducing climate risk in energy system planning: A posteriori time series aggregation for models with storage," Applied Energy, Elsevier, vol. 334(C).
    12. Scott, Ian J. & Carvalho, Pedro M.S. & Botterud, Audun & Silva, Carlos A., 2019. "Clustering representative days for power systems generation expansion planning: Capturing the effects of variable renewables and energy storage," Applied Energy, Elsevier, vol. 253(C), pages 1-1.
    13. Teichgraeber, Holger & Küpper, Lucas Elias & Brandt, Adam R., 2021. "Designing reliable future energy systems by iteratively including extreme periods in time-series aggregation," Applied Energy, Elsevier, vol. 304(C).
    14. Yeganefar, Ali & Amin-Naseri, Mohammad Reza & Sheikh-El-Eslami, Mohammad Kazem, 2020. "Improvement of representative days selection in power system planning by incorporating the extreme days of the net load to take account of the variability and intermittency of renewable resources," Applied Energy, Elsevier, vol. 272(C).
    15. Helistö, Niina & Kiviluoma, Juha & Morales-España, Germán & O’Dwyer, Ciara, 2021. "Impact of operational details and temporal representations on investment planning in energy systems dominated by wind and solar," Applied Energy, Elsevier, vol. 290(C).
    16. Heggarty, Thomas & Bourmaud, Jean-Yves & Girard, Robin & Kariniotakis, Georges, 2024. "Assessing the relative impacts of maximum investment rate and temporal detail in capacity expansion models applied to power systems," Energy, Elsevier, vol. 290(C).
    17. Thomas Heggarty & Jean-Yves Bourmaud & Robin Girard & Georges Kariniotakis, 2024. "Assessing the relative impacts of maximum investment rate and temporal detail in capacity expansion models applied to power systems," Post-Print hal-04383397, HAL.
    18. Hassan, Muhammed A. & Khalil, Adel & Abubakr, Mohamed, 2021. "Selection methodology of representative meteorological days for assessment of renewable energy systems," Renewable Energy, Elsevier, vol. 177(C), pages 34-51.
    19. Brown, Patrick R. & Cole, Wesley J. & Mai, Trieu, 2025. "An interregional optimization approach for time series aggregation in continent-scale electricity system models," Energy, Elsevier, vol. 324(C).
    20. Rigo-Mariani, Rémy, 2022. "Optimized time reduction models applied to power and energy systems planning – Comparison with existing methods," Renewable and Sustainable Energy Reviews, Elsevier, vol. 159(C).

    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:energy:v:323:y:2025:i:c:s0360544225014306. 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.journals.elsevier.com/energy .

    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.