Digitala Vetenskapliga Arkivet

Change search
CiteExportLink to record
Permanent link

Direct link
Cite
Citation style
  • apa
  • ieee
  • modern-language-association-8th-edition
  • vancouver
  • Other style
More styles
Language
  • de-DE
  • en-GB
  • en-US
  • fi-FI
  • nn-NO
  • nn-NB
  • sv-SE
  • Other locale
More languages
Output format
  • html
  • text
  • asciidoc
  • rtf
Model Predictive Control for Building Energy Systems: A Comparative Study of Battery Integration and Machine Learning Forecasting in Virtual Power Plants
KTH, School of Electrical Engineering and Computer Science (EECS).
2025 (English)Independent thesis Advanced level (degree of Master (Two Years)), 20 credits / 30 HE creditsStudent thesisAlternative title
Modellprediktiv styrning för byggnaders energisystem : En jämförande studie av batteriintegration och maskininlärningsbaserad prognostisering i virtuella kraftverk (Swedish)
Abstract [en]

As buildings become increasingly active participants in modern power systems, leveraging distributed energy resources (DERs) to support grid stability and sustainability has become a key challenge. In this context, this study investigates the role of battery storage in enhancing building energy system performance under Model Predictive Control (MPC) within a virtual power plant (VPP) framework. Because MPC relies on future load information to optimize control decisions over a receding horizon, this study evaluates the impact of three forecasting models on control outcomes: Multiple Linear Regression (MLR), Long Short-Term Memory (LSTM) networks, and the Light Gradient Boosting Machine (LightGBM). These models are integrated into an MPC framework implemented in the CityLearn simulation environment, which manages energy dispatch for a community-scale building cluster equipped with rooftop solar panels, HVAC systems, and optional battery storage. Experimental results show that battery integration, when guided by MPC using machine learning forecasts, significantly improves system performance. Compared to a baseline without battery storage, the LightGBM-MPC strategy reduces electricity costs by 35%, carbon emissions by 17%, and improves grid efficiency by 13%. These gains are achieved by strategically scheduling battery operations in response to dynamic electricity prices and carbon intensity signals, effectively flattening the net load profile and enhancing renewable energy utilization. To understand the influence of forecast accuracy on control effectiveness, the study compares three machine learning models: MLR, LSTM, and LightGBM for 24-hour building load prediction. LightGBM consistently delivers the most accurate forecasts and enables the best control outcomes across all key performance indicators. These findings highlight the importance of high-quality predictions in predictive control and demonstrate the potential of integrating machine learning with MPC for intelligent, adaptive building energy management. Overall, the results demonstrate a practical pathway toward data-driven, grid-interactive control strategies for sustainable urban energy systems.

Abstract [sv]

I takt med att byggnader blir allt mer aktiva deltagare i moderna elsystem har det blivit en central utmaning att utnyttja distribuerade energiresurser (DER) för att stödja nätstabilitet och hållbarhet. I detta sammanhang undersöker denna studie batterilagringens roll för att förbättra byggnaders energiprestanda under modellprediktiv styrning (Model Predictive Control, MPC) inom ramen för ett virtuellt kraftverk (Virtual Power Plant, VPP). Eftersom MPC är beroende av framtida lastprognoser för att optimera styrbeslut över en glidande horisont, utvärderas tre prognosmodeller för deras inverkan på styrresultat: multipel linjär regression (MLR), Long Short-Term Memory-nätverk (LSTM) och Light Gradient Boosting Machine (LightGBM). Dessa modeller integreras i ett MPC-baserat ramverk som implementeras i simuleringsmiljön CityLearn, vilken hanterar energidispatch för ett byggnadskluster i en stadsdel med solpaneler, HVAC-system och valbar batterilagring. Experimentella resultat visar att batteriintegration, när den styrs av MPC med hjälp av maskininlärningsbaserade prognoser, signifikant förbättrar systemets prestanda. Jämfört med ett basfall utan batterilagring minskar LightGBM-MPC-strategin elkostnaderna med 35%, koldioxidutsläppen med 17% och förbättrar näteffektiviteten med 13%. Dessa förbättringar uppnås genom att batteridrift schemaläggs strategiskt i förhållande till dynamiska elpriser och koldioxidintensitet, vilket effektivt jämnar ut nettolastkurvan och ökar användningen av förnybar energi. För att förstå hur prognoskvalitet påverkar styrresultat jämförs de tre maskininlärningsmodellerna MLR, LSTM och LightGBM för 24-timmarslastprognoser. LightGBM visar konsekvent högst prognosnoggrannhet och ger de bästa styrresultaten inom samtliga prestandaindikatorer. Dessa resultat understryker vikten av högkvalitativa prognoser i prediktiv styrning och visar potentialen i att kombinera maskininlärning och MPC för intelligent, adaptiv energihantering i byggnader. Sammantaget visar resultaten en praktisk väg mot databaserade, nätinteraktiva styrstrategier för hållbara urbana energisystem.

Place, publisher, year, edition, pages
2025. , p. 47
Series
TRITA-EECS-EX ; 2025:442
Keywords [en]
Time Series Forecasting, Model Predictive Control, Building Energy Management, Machine Learning for Control, Virtual Power Plant
Keywords [sv]
Tidsserieförutsägelse, Modellprediktiv styrning, Energihantering i byggnader, Maskininlärning för styrning, Virtuellt kraftverk
National Category
Computer and Information Sciences
Identifiers
URN: urn:nbn:se:kth:diva-367996OAI: oai:DiVA.org:kth-367996DiVA, id: diva2:1986603
Supervisors
Examiners
Available from: 2025-08-10 Created: 2025-08-01 Last updated: 2025-08-10Bibliographically approved

Open Access in DiVA

fulltext(3727 kB)383 downloads
File information
File name FULLTEXT01.pdfFile size 3727 kBChecksum SHA-512
db84ab415270fa8d0373a342fa29c4d574b2c638f2bdea70afa9ef73e9470e209fdf9224865bdb1149e9e6c99669f0add1dea7276c37211bc04e01a72006dddf
Type fulltextMimetype application/pdf

By organisation
School of Electrical Engineering and Computer Science (EECS)
Computer and Information Sciences

Search outside of DiVA

GoogleGoogle Scholar
Total: 386 downloads
The number of downloads is the sum of all downloads of full texts. It may include eg previous versions that are now no longer available

urn-nbn

Altmetric score

urn-nbn
Total: 754 hits
CiteExportLink to record
Permanent link

Direct link
Cite
Citation style
  • apa
  • ieee
  • modern-language-association-8th-edition
  • vancouver
  • Other style
More styles
Language
  • de-DE
  • en-GB
  • en-US
  • fi-FI
  • nn-NO
  • nn-NB
  • sv-SE
  • Other locale
More languages
Output format
  • html
  • text
  • asciidoc
  • rtf