Skip to Content
SustainabilitySustainability
  • Article
  • Open Access

4 April 2026

19 Pages

Optimizing the Operation and Control of a Photovoltaic Energy Storage System for Temporary Office Buildings

,
,
,
,
and
1
College of Electrical and Power Engineering, Taiyuan University of Technology, Taiyuan 030024, China
2
Overseas Business, Moon Environment Technology Co., Ltd., Yantai 264002, China
3
College of Civil Engineering, Taiyuan University of Technology, Taiyuan 030024, China
*
Author to whom correspondence should be addressed.
This article belongs to the Section Energy Sustainability

Abstract

To enhance the sustainability of temporary office buildings, energy-saving and emissions-reduction technologies, as well as the optimization of photovoltaic (PV) energy storage systems in such structures, are of great importance. In this study, a distributed energy storage system was developed for a temporary office building in Jincheng, China. Measurements showed climatic factors had the greatest effect on building energy consumption due to the building envelope’s low thermal performance and airtightness. The air conditioning system accounted for the highest proportion (87%) of building energy consumption. The PV system’s peak output occurred in the morning due to illumination conditions and module orientation. On this basis, a time-of-use (TOU)- and state-of-charge (SOC)-aware scheduling strategy was developed for the PV-ESS of the temporary office building to improve renewable-energy utilization and reduce user-end electricity cost. Unlike purely theoretical optimization studies, this work focuses on the practical application and validation of the scheduling framework in a real temporary office building using monitored data. The electricity cost decreased by 0.3 RMB/kWh, and the revenue from electricity sales during the scheduling period increased by 0.03 RMB/kWh after model optimization. The optimized scheduling strategy resulted in significantly fewer charge–discharge cycles of the storage battery, substantially decreasing the battery’s storage capacity and the system’s investment costs.

1. Introduction

Owing to the increasing global energy demand, primary energy sources (e.g., coal, oil, and natural gas) remain dominant, accounting for 80% of total energy consumption [1]. According to the International Energy Agency’s Renewables 2024, Analysis and Forecasts to 2030 [2], renewable energy will reach several critical milestones in the coming years. Renewable energy power generation will exceed coal-fired power generation in 2025, and wind and solar power generation will surpass nuclear power in 2026. By 2029, solar photovoltaic (PV) power generation is expected to exceed hydropower and become the largest source of renewable energy. Solar PV is currently the only technology that ensures net-zero emissions by 2050 [3], and its growth rate ranks among the top of all power generation technologies. Hence, solar PV has significant potential to achieve carbon neutrality. Energy consumption in the construction sector has increased significantly. Building energy consumption accounts for 37.02% of global energy consumption, of which residential buildings account for 20.96% [4]. Temporary buildings, which are widely used in construction, can be rapidly built at low cost [5]. However, they exhibit substantial heat loss/gain due to low thermal performance, resulting in high energy consumption of air-conditioning systems. Therefore, reducing the energy consumption of temporary buildings while ensuring indoor thermal comfort has become a crucial aspect of energy conservation and emission reduction in construction.
PV storage systems for temporary buildings include solar power generation and storage battery technologies. PV panels are installed on the building to convert solar energy into electricity, and LiFePO4 batteries are used for energy storage. This technology substantially reduces the reliance on the power grid, thereby conserving energy. From a sustainable development perspective, reducing the operating energy demand of temporary buildings while maintaining indoor comfort is important for cutting emissions, improving resource efficiency, and supporting greener construction practices.
Previous studies of temporary buildings have focused on the indoor thermal environment and envelope thermal performance, whereas temporary buildings with PV storage systems have been rarely investigated. For instance, Korol & Dudina [6] aimed to improve the heating efficiency of temporary buildings and other structures on construction sites to optimize fuel and energy use. The results showed that the effectiveness and safety of temporary buildings should be considered in the design stage, and multiple modular containers should be used instead of horizontal and vertical connections. Feng & He [7] presented definitions and a classification of temporary buildings and analyzed their sustainability. Assessment methods, influencing factors, and improvement measures were described from environmental, social, and economic perspectives, and challenges and future outlook were discussed. The results indicated that material selection, architectural design, and energy utilization were key factors affecting environmental sustainability. Adoption of low-carbon, recyclable materials, optimization of architectural design and window configurations, and use of renewable, clean energy significantly reduced energy consumption and carbon emissions. Guo et al. [8] performed multi-objective optimization of building energy consumption, PV power generation, and thermal comfort using EnergyPlus with Python 3.7 scripts and the non-dominated sorting genetic algorithm (NSGA-III). After optimization, energy consumption was 41% and 38% lower, PV power generation capacity was 176% and 169% higher, and thermal comfort was 19% and 6% higher in office buildings and dormitories, respectively. Tong [9] investigated the insulation thickness of temporary buildings for the Winter Olympics from economic and carbon emission perspectives. The results showed that increasing the insulation thickness reduced heating energy consumption of temporary buildings, although the reduction rate decreased. The service life of buildings significantly affected the insulation thickness. It increased rapidly and then stabilized as the service life increased. For instance, 100 mm thick rock wool exhibited the highest cost efficiency at a service life of 7.5–11 years and the lowest carbon emissions at a service life of 3.5–7 years. Yang et al. [10] proposed a temporary building constructed with loess and lightweight, heat-resistant, porous materials to improve the thermal performance of prefabricated houses for emergency use. Li et al. [11] investigated the matching of PV power generation and load curves, as well as the energy consumption of buildings in a region with hot summers and cold winters. The results demonstrated that PV power generation accounted for 1.3% and 8.5% of total power consumption in commercial and office buildings, respectively. PV power generation accounted for 29.8% of industrial buildings, with a self-consumption rate of 73%. Zhou [12] analyzed carbon emissions and economic benefits of an electrified community with a distributed PV and energy storage system using Simulink. The results showed that increasing the PV ratio reduced carbon emission and electricity cost, but the payback period increased and decreased. Energy storage significantly improved economic efficiency, facilitating the optimization of the PV storage systems. Guan [13] analyzed the layout of rooftop PV modules, the inverter type, and the capacity ratio, and conducted a techno-economic evaluation of the grid connection scheme using PVsyst 7.3. The results indicated that a low-voltage grid connection was advantageous, with consumption exceeding 80%. Luthander et al. [14] proposed an energy matching diagram based on self-sufficiency and self-consumption rates. It reflects the capacity and time matching between PV power generation and load. The results showed that energy storage was more effective than load shifting in improving PV-load matching. The matching diagram can be used to evaluate PV systems. Borodiņecs et al. [15] assessed electricity data of an apartment building in Latvia and found that accurate load forecasting was critical for optimizing PV systems for buildings. A rooftop PV system of a 60-apartment building met 77% of its annual power consumption. Lovati et al. [16] compared urban PV system optimization methods with traditional design strategies. A verification in a residential building in Italy revealed that the optimization method simplified inputs while increasing the net present value (NPV) by 85%. The NPV reached more than 93% of the theoretical maximum. Fan et al. [17] optimized the capacity allocation of user-side shared energy storage stations to ensure that users could afford the configuration cost of energy storage systems. Based on the time-of-use (TOU) electricity price, a shared energy storage capacity optimization model was developed to minimize users’ daily operation costs. This method considers investment, operation, and maintenance costs of energy storage systems, user-end electricity costs, and service fees for shared energy storage. A conversion method for nonlinear terms was proposed. Zhou et al. [18] reviewed the optimization of energy storage allocation in next-generation power systems, including application scenarios (e.g., peak regulation, frequency regulation, and power quality improvement), economic efficiency, reliability, and stability, and compared the advantages and disadvantages of various optimization algorithms. Nottrott et al. [19] performed scheduling optimizations of PV storage systems using linear programming (LP) to reduce peak load and power consumption, thereby improving the NPV and service life of batteries while reducing demand costs. As a result, Li-ion batteries were financially feasible on the demand side, with an installation cost of approximately 400–500 USD/kWh. Shimada & Kurokawa [20] proposed a grid-connected PV control strategy based on solar radiation forecasting. Three-hour interval weather forecasts were used to correct irradiance predictions, estimate next-day power generation, and optimize nighttime charging. This method exhibited significant advantages in cost, energy efficiency, and grid dependence reduction. Wu et al. [21] established a mixed-integer nonlinear programming (MINLP) model considering battery decay in PV systems. Bi-level optimization was used, with minimum life cycle cost (LCC) as the objective. The results demonstrated that the TOU electricity price reduced battery capacity and LCC and improved the self-consumption rate. The feed-in tariff, grid injection limit, and PV decay had significant impacts on the results. Hannan et al. [22] conducted a review of battery energy storage systems (BESSs), considering size optimization, system constraints, and different optimization models and methods and their pros and cons. These findings suggest that the sustainable operation of temporary office buildings depends not only on renewable-energy installation, but also on appropriate control strategies that match storage behavior to real operating conditions.
Although previous studies have investigated building energy systems, PV systems, battery storage operation, and TOU-based scheduling, limited attention has been paid to the coordinated application of PV-energy storage systems in temporary office buildings under real monitored operating conditions. Temporary office buildings differ from permanent buildings in envelope performance, occupancy pattern, and load composition, which may lead to different operational characteristics and storage requirements. Therefore, the novelty of this study does not lie in proposing a fundamentally new optimization algorithm, but in applying and validating a TOU- and SOC-aware scheduling framework for a real temporary office building based on monitored data. The main contributions of this study are as follows: (1) the electricity-use characteristics of a temporary office building are analyzed using measured data; (2) a rule-based scheduling framework for the PV-energy storage system is established and validated under practical operating conditions; and (3) the implications of storage sizing for this building type are discussed based on the observed scheduling performance.

2. Materials and Methods

2.1. PV Power Generation System

A PV power generation system converts solar energy into electric energy [23]. It typically comprises solar battery modules, a storage battery, a controller, an inverter, and a monitoring system [24]. The storage battery is used to improve system stability and reliability [25]. When the system output must be maintained within a specific range, the storage battery ensures consistent power, reducing the grid burden. The controller regulates charging and discharging of the storage battery to meet user requirements [26]. The inverter converts the direct current generated by PV modules into alternating current for grid connection or load use. Its performance directly affects the system’s efficiency and stability [27].

2.2. Experimental PV Storage Systems

2.2.1. Experimental Site

The test was conducted on a west-facing, two-story temporary office building located in a construction site in Jincheng, China. Two offices were investigated. The details are listed in Table 1.
Table 1. Information on the building’s rooms.

2.2.2. PV Storage System

Figure 1 illustrates the experimental system. Ten 540 Wp monocrystalline silicon PV modules (Jincheng Yangtai Longyan Company, Jincheng, Shanxi, China.) were located on the roof and connected in series. The PV modules were installed flush with the sloped roof surface of the temporary office building. The storage was connected at the DC side of the inverter, whereas the AC side was connected to the user side. Two groups of 5.12 kWh LiFePO4 storage batteries connected in parallel were installed in the test room.
Figure 1. Schematic diagram of the experimental system.

2.3. Testing System

Test standards were developed according to previous studies and on-site conditions [28]. Figure 2a shows a smart socket (Shenzhen Lan ’aosheng Technology Project, Shenzhen, Guangdong, China) used for indoor load monitoring. The 10 A smart socket with a range of 0–2200 W was used to measure the electricity consumption of laptops, printers, and electric kettles. The 16 A smart socket with a range of 0–3520 W was used to measure the electricity consumption of air conditioners. The accuracy of the smart socket was ±2%, and the communication mode was WLAN. Figure 2b shows a smart switch (Shenzhen Lan ’aosheng Technology Project, Shenzhen, Guangdong, China) used to measure the energy consumption of indoor lighting. It has the same accuracy as the smart socket. Figure 2c shows a wireless energy meter (Beijing Qingzheng Fenhao Technology Co., Ltd., Beijing, China) used for real-time monitoring of the total power consumption of the room. Its accuracies for frequency, voltage, current, active energy, reactive energy, and other parameters were 0.01 Hz, Class 0.2, Class 0.2, Class 0.2 S, Class 2, and Class 0.5, respectively. The communication mode was 4G wireless. Figure 2d shows an integrated inverter-controller (Shenzhen McGregor Energy Company, Shenzhen, Guangdong, China) , with a recommended maximum input power of 9 kWp. Its maximum power point tracking (MPPT) efficiency exceeded 99% at a voltage of 125–500 VDC. The device was equipped with a WLAN port for real-time monitoring of the power generation capacity and cumulative power generation capacity of the source-side PV power generation device, as well as the charging/discharging power and SOC of the storage battery. The data recording interval of all devices was 5 min to ensure data integrity and accuracy.
Figure 2. (a) Smart socket; (b) Smart switch; (c) Wireless energy meter; (d) integrated inverter-controller.

3. Results and Discussion

3.1. Power Consumption Characteristics

The hourly PV power generation and consumption of the temporary office building were monitored from 11 January to 30 July 2024 to evaluate the building’s energy consumption across seasons. The period was divided into the heating season (11 January–15 March), the cooling season (15 May–30 July), and the transition season, as defined by the Measures for the Administration of Centralized Heating in Jincheng. Figure 3 shows the daily power curves of the system during the experimental period. Data were collected only on two days in February due to the Spring Festival holiday. Specifically, the 5 cm rock wool sandwich panels yield approximate Uvalues of 0.85 W/m2K for walls and 0.90 W/m2K for the roof. These values are 1.9–2.6 times higher than the local standards for permanent public buildings in Shanxi Province (Uwall ≤ 0.45 W/m2K and Uroof ≤ 0.35 W/m2K under cold-climate energy-saving codes), confirming the envelope’s poor thermal performance and airtightness and highlighting the substantial energy-saving potential of the integrated PV-ESS system. The building was insulated with 5 cm thick rock wool, which has low thermal resistance and thermal inertia, resulting in insufficient heat storage capacity. Air infiltration was observed at panel joints and opening edges as the envelope was assembled, resulting in insufficient airtightness of the building. Consequently, a thermal bridge effect was detected [29]. The power consumption of temporary buildings differs across seasons, with higher power consumption during the heating season. On the other hand, the PV power generation capacity was low in the heating season, when most of the electricity was supplied by the grid. In the cooling and transition seasons, PV power generation matched power consumption, with negligible power supply from the grid.
Figure 3. Daily power curve.

3.2. Power Consumption by the Air-Conditioning System

Figure 4 shows the proportion of power consumption of the indoor air-conditioning system during the experimental period and in each season. The power consumption of the air-conditioning system in the rooms accounted for 87% of the total power consumption during the experimental period, suggesting that it dominated the total power consumption. This result can be attributed to the envelope characteristics and the architectural pattern of the rooms. Figure 4 also shows the proportions of power consumption of the air-conditioning system in different seasons. The air-conditioning systems accounted for 93% of total power consumption during the heating season, a proportion significantly higher than the average during the experimental period. This finding can be attributed to substantial heat loss due to low outdoor temperatures, the insufficient thermal performance of the envelope, and low airtightness. The power consumption of the air-conditioning systems accounted for 81% during the transition season, which was slightly lower than the average proportion during the experimental period. This result is due to higher outdoor temperatures and outdoor operations of construction workers, which led to a lower indoor heat load. The power consumption of the air-conditioning systems accounted for 86% during the cooling season, which was consistent with the average proportion during the experimental period. The reasons were high outdoor temperatures, limited thermal performance of the envelope, and low airtightness.
Figure 4. Proportion of power consumption of the air conditioning system in different seasons.

3.3. PV Output

The power consumption of the building during the experimental period was 1786.41 kWh. Figure 5 illustrates the hourly power output of the PV system during the experimental period and in different seasons. The ranking of PV power generation by season was cooling season > transition season > heating season. The PV power generation peaked at 10:00 a.m. during the experimental period. Notably, the peak PV power generation time differed slightly across seasons. The peak occurred at 11:00 a.m. during the heating season, at 9:00 a.m. during the transition season, and at 10:00 a.m. during the cooling season, consistent with the experimental period. This finding contrasts with a previous study [30] that predicted short-term PV power output in cold regions. A possible reason is the orientation and inclination angle of the modules, which affect the solar radiation received by the PV panel [31]. In this study, the modules were installed flush with the sloped roof of the west-facing temporary office building, and thus their tilt angle was determined by the roof slope rather than by an optimized PV mounting design. Therefore, the PV output characteristics, including the timing of the generation peak, were influenced by the practical roof geometry of the temporary building. In addition, although no persistent severe shading was observed during the main daytime generation period, limited partial shading from surrounding site conditions cannot be completely excluded.
Figure 5. PV output power from 6 a.m. to 12 midnight in different seasons.

3.4. Energy Storage Systems

The default charging/discharging control strategy for the storage battery was used for the proposed system. When the PV output during a specific period exceeded the total power of the indoor load, the excess PV output was used to charge the storage battery; otherwise, the battery discharged. When the SOC constraint of the storage battery was violated, the SOC had to be equal to its boundary value. Charging stopped when the SOC reached 95% during continuous charging, while discharging stopped when the SOC fell below 20% during continuous discharging.
In this study, the difference between PV power generation and indoor load power consumption was defined as the net load. As shown in Figure 6 the net load was negative during 00:00–07:00, suggesting that the load demand of the building was met by electricity supplied by the grid. From 07:00 to 13:00, the PV output increased, and the net load shifted from negative to positive, with peaks at 11:00–13:00. During this period, the battery’s power reading remained positive, suggesting that the extra electricity was being stored in the battery. The SOC curve increased steeply, validating the charging strategy during the PV output peak period. From 13:00 to 17:00, the PV output decreased gradually. The SOC of the storage battery was maximized (~80%) at 16:00, and the net load decreased. The power of the storage battery approached 0, and the SOC of the storage battery remained stable, suggesting that the net load was approximately 0. In this stage, the storage battery was neither charged nor discharged. During the peak period (17:00–24:00), the net load rapidly became negative, and its absolute value was high. The power of the storage battery decreased substantially and became negative, indicating that the system prioritized discharging to meet the user demand. As a result, the SOC of the storage battery decreased and reached 58% at approximately midnight. In this stage, the peak-hour electricity cost was reduced by the discharge strategy.
Figure 6. Battery power, SOC, and net load variation.
The storage battery experienced one charge and two discharges within 24 h. It was neither fully charged nor fully discharged, suggesting that the storage battery had excess capacity relative to the system’s needs. Thus, the initial investment cost could be reduced. Therefore, the charging/discharging control strategy and the capacity of the storage battery should be optimized to reduce investment costs and achieve rational scheduling and energy allocation.

4. Optimized Scheduling Model and Strategy

An energy management scheduling model for temporary office buildings with a distributed PV power generation system and a BESS was established. The model considers building load, battery operating constraints, dynamic energy balance, and user-end economic performance. In this study, the scheduling model is implemented through rule-based decision logic under TOU electricity prices and real-time SOC constraints.

4.1. Optimized Scheduling Model

4.1.1. Load of the Test Rooms

As mentioned above, the air-conditioning system accounted for 87% of the building’s total power consumption, and its load was schedulable [32]. Hence, the scheduling strategy can be used to adjust the system’s operating state or parameters to achieve load shifting and power optimization. In this study, the air-conditioning load is treated as an exogenous building demand, and the indoor temperature setpoint is not included as an optimization variable. The load of the air-conditioning system was optimized to simplify the model:
P a ( t ) = P a N ⋅ S a ( t )
S a ( t ) = 0 , ∀ t ∈ t a s t a r t , t a e n d
∑ t = t a s t a r t t a e n d S a ( t ) = H a , 1 ≤ t a s t a r t ≤ T − H a + 1 , H a ≤ t a e n d ≤ T
where P a ( t ) is the power consumption of the air-conditioner in period t; P a N is the rated power consumption of the air-conditioner; S a ( t ) is a binary decision variable (1 = air-conditioning system was on, 0 = air-conditioning system was off); t a s t a r t and t a e n d define the starting and ending moments of air-conditioner a, respectively; H a is the working hours of air-conditioner a.

4.1.2. Energy Storage System

An energy storage system with a LiFePO4 battery was used to achieve source-side load balance, thereby improving the utilization rate and control of the PV power generation system in different periods [33]. Key parameters included capacity (Cbat), SOC, and charging/discharging capacity of the storage battery [34,35]. Cbat refers to the electricity released by the storage battery during one discharge period under standard test conditions. It is a dominant indicator of the energy storage capacity. The SOC of the storage battery represents the percentage of the remaining capacity relative to the rated capacity, and its dynamic variation is affected by charging/discharging, load fluctuation, and PV output. It can be calculated as follows:
S O C ( t ) = C n e t ( t ) C bat ( t )
where SOC(t) refers to the SOC of the storage battery in period t; C n e t ( t ) refers to the remaining capacity of the storage battery in period t; C bat ( t ) refers to the rated capacity of the storage battery. Real-time SOC monitoring is required to ensure the safety of the storage battery and improve the system’s operational reliability.
The charging/discharging capacity of the storage battery refers to the electrical energy exchanged between the energy storage device and the PV system per unit time. A positive capacity refers to charging and a negative capacity refers to discharging.
The dynamic charging/discharging processes of energy storage systems can be described by:
S O C ( t + 1 ) = S O C ( t ) + P c h ( t ) ⋅ Δ t ⋅ η ch / C b a t
S O C ( t + 1 ) = S O C ( t ) − P disch ( t ) ⋅ Δ t / ( C b a t ⋅ η disch )
where P c h ( t ) and P disch ( t ) refer to the charging and discharging power of the storage battery in period t, respectively; η ch and η disch refer to the charging and discharging efficiency of the storage battery, which are both 0.95, respectively.
Over-charging/over-discharging was prevented by using upper and lower SOC constraints and charging/discharging rate constraints to ensure the battery’s reliability and service life. Charging or discharging can be executed in a specific period.
0 ≤ P c h ( t ) ≤ P c h ,   max 0 ≤ P d i s c h ( t ) ≤ P d i s c h ,   max S O C min ≤ S O C ( t ) ≤ S O C max P c h ( t ) ⋅ P d i s c h ( t ) = 0

4.1.3. Objective Function of Electricity Cost

The proposed objective function aims to minimize the total user-end electricity cost during the scheduling period, which comprises the cost of purchasing electricity from the grid and the revenue obtained from selling electricity to the grid:
min C E = ∑ t = 1 T C E ( t )
C E ( t ) = P t o l o a d ( t ) Price T O U ( t ) Δ t − P t o g r i d ( t ) Price s a l e ( t ) Δ t
where CE refers to the total electricity cost; CE(t) refers to the electricity cost in period t; P t o l o a d ( t ) refers to the purchased electricity in period t; P t o g r i d ( t ) refers to the sold electricity in period t; Price T O U ( t ) refers to the TOU electricity price in period t; Price s a l e ( t ) refers to the selling price of electricity in period t.
It should be noted that the present optimization model does not explicitly include battery degradation cost or cycle-life loss in the objective function. In practical operation, frequent charging/discharging and deeper depths of discharge may accelerate battery aging and affect long-term economic performance. Future studies should incorporate battery degradation cost, cycle-life modeling, and DoD-related constraints into a multi-objective optimization framework to balance short-term economic benefit and long-term equipment durability. Accordingly, the optimization problem in this study is to determine battery charging/discharging actions over the scheduling horizon so as to minimize the total electricity cost, subject to SOC limits, charging/discharging power constraints, and the real-time relationship between PV generation and building load.

4.2. Strategy for Optimized Scheduling of Energy Systems in Temporary Office Buildings

We propose an optimized scheduling strategy that considers the TOU electricity price and the real-time, dynamic regulation of the SOC of the storage battery. This strategy improves the system’s revenue and the storage battery’s service life. The strategy was developed based on the following rules:
Rule 1: The charging/discharging of the energy storage system was regulated based on the TOU electricity price. The storage battery was charged from 23:00 to 07:00. From 11:00 to 13:00, it was charged if the PV output exceeded the indoor load, and any excess power was sold to the grid if the SOC of the storage battery was maximized. Power was purchased from the grid if the PV output was lower than the indoor load. During the peak period, discharging the storage battery was preferred to relieve pressure on the grid. The storage battery was neither charged nor discharged during the off-peak period.
Rule 2: Charging/discharging of the storage battery was dynamically regulated according to its SOC to prevent over-charging/over-discharging. During charging, if the SOC of the storage battery was maximized at the end of SOC(t − 1), charging was paused in period t, namely SOC(t) = SOCmax. During discharging, if SOC of the storage battery was minimized at the end of SOC (t−1), discharging was paused in period t, namely, SOC(t) = SOCmin.
The difference ( Δ P ( t ) ) between the distributed PV power generation and the indoor load of the buildings is expressed as:
Δ P ( t ) = P p v ( t ) − P l o a d ( t )
The scheme was determined according to Rules 1 and 2, as well as Δ P ( t ) (positive or negative).
In practical implementation, battery charging and discharging actions are determined by predefined operating rules associated with TOU periods, net load conditions, and SOC thresholds.
Scheme 1: if Δ P ( t ) was positive, the storage battery was charging, with a charging power of P c h ( t ) (Equation (11)). Once the SOC(t) of the storage battery was maximized, the system’s excess output was sold to the grid. In this case, the system prioritized renewable energy use and stored excess energy, thereby maximizing green energy consumption.
P c h ( t ) = min Δ P ( t ) , P c h ,   max , S O C max − S O C ( t − 1 ) η ch C bat
P d i s c h ( t ) = min Δ P ( t ) , P d i s c h ,   max S O C ( t − 1 ) − S O C min C bat η d i s c h
Scheme 1. Battery control strategy for Scheme 1.
Scheme 2: During the valley period of the TOU electricity price, the deficit of user power demand was avoided by purchasing from the grid when Δ P ( t ) was negative. The storage battery was charged by the grid. Charging with low-priced electricity reduced the power cost.
Scheme 2. Battery control strategy for Scheme 2.
Scheme 3: During the off-peak period of the TOU electricity price, the deficit of the user power demand was avoided by purchasing from the grid when Δ P ( t ) was negative. In this case, the storage battery was neither charged nor discharged. This strategy prevented losses during periods with low revenue.
Scheme 3. Battery control strategy for Scheme 3.
Scheme 4: During the peak period of the TOU electricity price, when Δ P ( t ) was negative, the deficit of the user power demand was compensated for by discharging the storage battery, with a discharging power of P d i s c h ( t ) (Equation (12)). If the SOC of the storage battery was minimized, electricity was purchased from the grid. This strategy reduced power consumption during peak hours, thereby improving economic benefits for users.
Scheme 4. Battery control strategy for Scheme 4.
Hourly power consumption and power generation were measured, and the objective function of the system was determined. Additionally, an optimized power consumption scheme was developed based on the SOC of the storage battery.
Finally, MATLAB 2023a was used mainly for scenario simulation and performance evaluation based on monitored data to obtain optimized scheduling results. The optimized scheduling results were obtained by implementing the above decision rules under the defined objective and operating constraints. The proposed strategy was verified by comparing it with traditional scheduling strategies.

5. Case Study

5.1. Parameter Settings

A PV module with an installed capacity of 5.4 kW was used as the distributed power supply, and the rated capacity of the storage battery ( C bat ) was 10.24 kWh. During charging/discharging, η ch and η d i s c h were set to 0.85, P c h ,   max was 2 kW, and P d i s c h ,   max was 3 kW. In the early stage, the SOC of the storage battery was maintained at 0.5 to ensure that the system operated under reasonable energy storage conditions. The minimum SOC (SOCmin) and maximum SOC (SOCmax) of the storage battery were 0.2 and 0.95, respectively, to ensure the storage battery’s service life and the system’s stable operation and prevent over-charging/discharging.
The TOU electricity price was determined according to the Notice of the National Development and Reform Commission on Further Improving the TOU Electricity Price Mechanism and the Industrial and Commercial User Electricity Price Table of Shanxi Electric Power Co., Ltd. of the State Grid (Figure 7). The electricity selling price for users was 0.42 RMB/kWh [36]. The scheduling period (T) was 24 h, with a time step (∆t) of 1. Figure 8 shows the output of the PV system and the indoor load.
Figure 7. TOU electricity price.
Figure 8. PV output power and load power.

5.2. Optimization Results

Figure 9 shows the storage battery control strategy. The objective was to achieve a reasonable energy allocation and scheduling by charging during low-price periods and discharging during high-price periods, relieving the pressure on the grid and reducing electricity costs. During the off-peak period (00:00–07:00), the storage battery was charged from 00:00 to 03:00, and its SOC reached and maintained the maximum from 03:00 to 07:00. During the mid-peak periods (07:00–08:00 and 13:00–17:00), the storage battery neither charged nor discharged. During the morning peak price period (08:00–11:00), PV output exceeded the indoor load, and the SOC of the storage battery reached its upper limit. As a result, no charging/discharging was performed, and the extra electricity generated by the PV system was sold to the grid. During the evening peak price period (17:00–23:00), the storage battery discharged to relieve pressure on the grid, and the SOC dropped to 55.2% at 23:00. Although the SOC of the storage battery did not reach the minimum, the off-peak period started, and the load was supplied by the grid, while the storage battery stopped discharging.
Figure 9. Variation in battery SOC.
The effectiveness of the proposed control strategy for storage batteries in reducing user-end electricity costs across scenarios was investigated. The results are summarized in Table 2.
Table 2. Cost under different scenarios.
Scenario 1: no optimized control strategy and no storage battery. The excess electricity generated by the PV system was sold to the grid, and no electricity could be stored in batteries. During peak price periods, users had to purchase electricity to meet the demand. Additionally, the electricity cost in this scenario was maximized, although the revenue from electricity sales was higher than that in Scenarios 2 and 3.
Scenario 2: a storage battery and no optimized control strategy. The storage battery was used to store PV output and release electricity during indoor peak power consumption periods, alleviating pressure on the grid. Scenario 2 resulted in 1.0 RMB/kWh lower user-end electricity cost than Scenario 1, and the revenue from electricity sales was 0.88 RMB/kWh lower.
Scenario 3: optimized control strategy + a storage battery. Scenario 3 had the lowest electricity cost among the compared scenarios, although its electricity revenue was not maximized. The reason is that rational scheduling and reallocation of renewable energy were achieved by incorporating a storage battery and optimizing the control strategy, improving the utilization rate of renewable energy and reducing pressure on the grid in peak hours. As a result, the user-end electricity cost was reduced, increasing revenue.
The proposed scheduling strategy was compared with the default control strategy, which does not dynamically regulate battery charging/discharging based on the TOU electricity price and real-time SOC. Hence, the default control strategy may result in the SOC of the storage battery exceeding the threshold, high user-end electricity costs, and high pressure on the grid. Table 3 lists the charging/discharging cycles of the storage battery before and after the proposed optimization of the control strategy. The number of charging/discharging cycles of the storage battery was lower after optimization, demonstrating that the proposed optimized control strategy was advantageous.
Table 3. Charging and discharging cycles of the storage battery before and after control strategy optimization.
These results indicate that the proposed strategy optimized battery energy storage, improving the safety of the storage battery and reducing the user-end electricity cost of temporary office buildings.
This strategy enabled energy scheduling and reallocation, thereby mitigating pressure on the grid and decreasing the charging/discharging cycles of the storage battery. Nevertheless, the SOC of the storage battery at the end of the peak electricity price period (17:00–23:00) was 55.2%, which was substantially higher than SOCmin of the storage battery, suggesting that the storage battery capacity was excessive. Figure 10 shows the SOC trends of one and two battery packs (rated capacity of a single pack: 5.12 kWh) under the same conditions.
Figure 10. SOC of storage batteries with different capacities for the same strategy.
The SOC of the one battery pack at the end of the peak electricity price period (17:00–23:00) was 30.3% under the same conditions, which was higher than the SOCmin, suggesting that the one battery pack outperformed the two battery packs. Therefore, the originally installed storage capacity may be oversized for the actual electricity demand of the studied temporary office building. These findings are specific to the monitored conditions, building characteristics, and scheduling assumptions of this study. In addition, sensitivity analyses on electricity tariff, battery efficiency, battery degradation, and seasonal load/PV variability were not included. These aspects should be investigated in future studies to further verify the robustness and general applicability of the proposed strategy.

6. Conclusions

This study investigated the coordinated operation of a PV-energy storage system in a real temporary office building based on monitored data. The main contribution of the work is to extend PV-energy storage scheduling analysis to the temporary building context, to reveal the electricity-use characteristics of this building type, and to validate a TOU- and SOC-aware rule-based scheduling framework under practical operating conditions. Rather than proposing a fundamentally new optimization theory, this study emphasizes application validation and engineering implications for temporary office buildings. The following conclusions were obtained:
The power consumption of the temporary office building differed across seasons. Besides climatic factors, it was affected by the thermal performance of the envelope, building airtightness, and the number of personnel. The air-conditioning systems consumed the most power (87%) in the temporary building. Their power consumption differed substantially across seasons. The proportion of power consumption of the air-conditioning system was 93%, 86%, and 81% in the heating, cooling, and transition seasons, respectively.
The season, climate, and module orientation affected the PV system’s output, and the power generation peaks typically occurred in the morning. The coupling of the PV output and load significantly affected the charging/discharging of the storage battery. The capacity of the storage battery was excessive relative to the system’s needs, with a small range of SOCmax and SOCmin, resulting in high initial investment costs.
Based on the energy consumption of the rooms, an optimized scheduling model was established for energy management systems in temporary office buildings. The optimization reduced user-end electricity costs. The electricity cost decreased by 0.3 RMB/kWh, and the revenue from electricity sales during the scheduling period increased by 0.03 RMB/kWh after model optimization. The charge–discharge cycles and storage battery capacity were reduced without affecting system functioning by using a single storage battery instead of two, reducing the system’s investment costs. These battery sizing implications are specific to the conditions observed in this temporary office building and should be validated in other contexts.
Overall, this study provides practical guidance for the sustainable operation and configuration of PV-ESSs in temporary office buildings. However, this work should be regarded as a case study of one temporary office building, based on monitoring data from January to July 2024, with limited February data due to the Spring Festival holiday and only two offices included in the analysis. Therefore, the findings are site-specific and should not be generalized directly to other climates, building types, or load patterns. Future work should include broader benchmark comparisons, sensitivity analysis, battery degradation modeling, and life-cycle economic evaluation.

Author Contributions

Conceptualization, X.W. and R.W.; methodology, X.W. and R.W.; validation, X.W., R.W. and M.L.; formal analysis, X.W.; investigation, W.Z.; resources, Y.D.; data curation, R.W.; writing—original draft preparation, X.W.; writing—review and editing, M.L. and Y.C.; visualization, R.W.; supervision, Y.C.; project administration, Y.C.; funding acquisition, Y.C. All authors have read and agreed to the published version of the manuscript.

Funding

This research was funded by Science and Technology Department of Shanxi Province, grant number YDZJSX2021A022.

Institutional Review Board Statement

Not applicable.

Data Availability Statement

The aggregated load and PV generation profiles, key parameter settings (TOU prices, efficiencies, SOC limits, etc.) are available from the corresponding author upon reasonable request. The raw high-resolution (5 min interval) monitored dataset cannot be made publicly available due to site-specific and privacy considerations related to the construction site, but summary statistics and daily curves are presented in the manuscript figures and text.

Conflicts of Interest

Author Rui Wang was employed by the company Moon Environment Technology Co., Ltd. The remaining authors declare that the research was conducted in the absence of any commercial or financial relationships that could be construed as a potential conflict of interest.

References

  1. International Energy Agency. World Energy Outlook. 2024. Available online: https://www.iea.org/reports/world-energy-outlook-2024 (accessed on 8 March 2026).
  2. International Energy Agency. Renewable Energy. 2024. Available online: https://www.iea.org/reports/renewables-2024 (accessed on 8 March 2026).
  3. International Energy Agency. Share of Renewable Electricity Generation by Technology, 2000–2030. Available online: https://www.iea.org/data-and-statistics/charts/share-of-renewable-electricity-generation-by-technology-2000-2030 (accessed on 8 March 2026).
  4. International Energy Agency. Final Energy Consumption of Buildings Relative to Other Sectors. 2022. Available online: https://www.iea.org/data-and-statistics/charts/final-energy-consumption-of-buildings-relative-to-other-sectors-2022 (accessed on 8 March 2026).
  5. Zheng, P.; Wu, H.; Liu, Y.; Ding, Y.; Yang, L. Thermal comfort in temporary buildings: A review. Build. Environ. 2022, 221, 109262. [Google Scholar] [CrossRef] [Scilit]
  6. Korol, O.; Dudina, A. Features of Calculation of Consumption of Fuel and Energy Resources for Heating of Temporary Buildings and Structures on Construction Area. IOP Conf. Ser. Mater. Sci. Eng. 2019, 661, 012088. [Google Scholar] [CrossRef] [Scilit]
  7. Feng, T.X.; He, J.B. Sustainability vision for low-carbon, comfortable, inclusive, and recyclable temporary buildings. Energy Build. 2025, 328, 115213. [Google Scholar] [CrossRef] [Scilit]
  8. Guo, X.; Wang, Y.; Liu, Y.; Fan, L.; Xue, S.; Shi, C.; Pan, L.; Zhang, B.; Wang, L.; Chang, X. Multi-Objective Optimization of Building Energy Consumption: A Case Study of Temporary Buildings on Construction Sites. Buildings 2025, 15, 420. [Google Scholar] [CrossRef] [Scilit]
  9. Tong, Y. Computational Study of Thermal Insulation Layer Thickness and Carbon Emission of Temporary Buildings for the Winter Olympic Games; Beijing University of Civil Engineering and Architecture: Beijing, China, 2023. [Google Scholar]
  10. Yang, S.; Wi, S.; Cho, H.M.; Park, J.H.; Yun, B.Y.; Kim, S. Developing energy-efficient temporary houses for sustainable urban regeneration: Manufacturing homes with loess, pearlite, and vermiculite. Sustain. Cities Soc. 2020, 61, 102287. [Google Scholar] [CrossRef] [Scilit]
  11. Li, L.; Wang, C.; Li, H.; Zhang, J.; Liu, X. Analysis on Self-Consumption Potential of Building Distributed Photovoltaics. Build. Sci. 2024, 40, 26–35. [Google Scholar]
  12. Zhou, Y. A Study on Economic and Carbon Reduction Potential of Photovoltaic and Energy Storage Applications in Electrified Communities; Chang’An University: Xi’An, China, 2023. [Google Scholar]
  13. Guan, B.F. Design and Consumption Analysis of Distributed Photovoltaic Power Generation Systems for Industrial Buildings. Mod. Archit. Electr. 2024, 15, 11–16+25. [Google Scholar]
  14. Luthander, R.; Nilsson, A.M.; Widén, J.; Åberg, M. Graphical analysis of photovoltaic generation and load matching in buildings: A novel way of studying self-consumption and self-sufficiency. Appl. Energy 2019, 250, 748–759. [Google Scholar] [CrossRef] [Scilit]
  15. Borodiņecs, A.; Lebedeva, K.; Odineca, T. Evaluation of household power consumption in multi-apartment buildings for optimization of rooftop PV systems. Energy Build. 2024, 325, 114971. [Google Scholar] [CrossRef] [Scilit]
  16. Lovati, M.; Dallapiccola, M.; Adami, J.; Bonato, P.; Zhang, X.; Moser, D. Design of a residential photovoltaic system: The impact of the demand profile and the normative framework. Renew. Energy 2020, 160, 1458–1467. [Google Scholar] [CrossRef] [Scilit]
  17. Fan, P.; Li, M.; Zhuang, K.; Yin, W.; Ye, J.; Wu, Y.; Feng, L. Optimal Capacity Allocation Method of User-Side Shared Energy Storage with High Proportion of Distributed Photovoltaics. Chin. J. Power Sources 2025, 49, 443–453. [Google Scholar]
  18. Zhou, T.; He, W.; Li, H.; Ji, Z. A Review on Energy Storage Auxiliary Operation and Optimal Allocation Under New Power System. J. Nanjing Univ. Inf. Sci. Technol. 2025, 17, 715–730. [Google Scholar]
  19. Nottrott, A.; Kleissl, J.; Washom, B. Energy dispatch schedule optimization and cost benefit analysis for grid-connected, photovoltaic-battery storage systems. Renew. Energy 2013, 55, 230–240. [Google Scholar] [CrossRef] [Scilit]
  20. Shimada, T.; Kurokawa, K. Grid-connected photovoltaic systems with battery storages control based on insolation forecasting using weather forecast. Renew. Energy 2006, 228–230. [Google Scholar]
  21. Wu, Y.; Liu, Z.; Liu, J.; Xiao, H.; Liu, R.; Zhang, L. Optimal battery capacity of grid-connected PV-battery systems considering battery degradation. Renew. Energy 2022, 181, 10–23. [Google Scholar] [CrossRef] [Scilit]
  22. Hannan, M.; Wali, S.; Ker, P.; Rahman, M.A.; Mansor, M.; Ramachandaramurthy, V.; Muttaqi, K.; Mahlia, T.; Dong, Z. Battery energy-storage system: A review of technologies, optimization objectives, constraints, approaches, and outstanding issues. J. Energy Storage 2021, 42, 103023. [Google Scholar] [CrossRef] [Scilit]
  23. Li, Z. Design, Construction and Application of Solar Photovoltaic Power Generation Systems; Post and Telegram Press: Beijing, China, 2019. [Google Scholar]
  24. You, Y. Principles and Practice of Photovoltaic Power Generation; Science Press: Beijing, China, 2014. [Google Scholar]
  25. Ge, L.; Zheng, Y.; Li, X.; Wang, H. A Review of Optimal Allocation Technology of Multi-type Energy Storage in Distribution Network with High Proportion of Distributed PV Access. Zhejiang Electr. Power 2025, 44, 1–11. [Google Scholar]
  26. Tian, S.; Zhao, R.; Xing, S.; Ma, G. Design of Photovoltaic Maximum Power Point Tracking Controller under Disturbance Voltage. Micromotors 2016, 49, 63–66+96. [Google Scholar]
  27. Wang, T.; Wang, Z.; Fan, S.-l.; Tang, Z. China Efficiency Evaluation Method of PV Grid-connected Inverters. High Power Convert. Technol. 2014, 3, 56–59. [Google Scholar]
  28. Photovoltaic System Performance Monitoring–Guidelines for Measurement, Data Exchange and Analysis. 1998. Available online: https://www.normservis.cz/download/view/iec/info_iec61724%7Bed1.0%7Den.pdf (accessed on 8 March 2026).
  29. Tong, Y.; Guo, B.; Shi, Y.; Yang, H.; Chen, G. Review on Improvement of Indoor Thermal Environment of Temporary Buildings. In Proceedings of the 2021 Conference on Industrial Construction, Beijing, China, 11 September 2021; pp. 113–118. [Google Scholar]
  30. Wang, L.; Li, C.; Liu, J.; Li, C.-J. Short-term Photovoltaic Power Prediction Based on GRO-SSA-LSTM. Acta Energiae Solaris Sin. 2025, 46, 401–409. [Google Scholar]
  31. Yuan, P. Influence of Photovoltaic Array Layout on Electrical Output in PV Power Station. Lamps Light. 2025, 1, 129–131. [Google Scholar]
  32. Luo, Z.; Peng, J.; Yin, R. Many-objective day-ahead optimal scheduling of residential flexible loads integrated with stochastic occupant behavior models. Appl. Energy 2023, 347, 18. [Google Scholar] [CrossRef] [Scilit]
  33. Wu, H. A Study on Household Power Consumption Strategy and Demand Response of Intelligent Community in Intelligent Electricity Environment; Nanchang University: Nanchang, China, 2020. [Google Scholar]
  34. Zhu, Y.-q.; Zhang, Q.; Liu, K.; Zhang, L. Capacity Allocation Method of Energy Storage in Off-grid Wind-Solar Microgrid Considering Correlation. Adv. Technol. Electr. Eng. Energy 2019, 38, 11–16. [Google Scholar]
  35. Xu, Q.; Lv, Y.; Ding, Y. Three-stage Coordinated Optimization of Wind-solar Storage Microgrid Considering Dynamic Efficiency of Energy Storage. Power Syst. Technol. 2020, 44, 816–822. [Google Scholar]
  36. Zhou, L.; Li, Y. Modeling and Optimal Operation of Household Load Based on Home Energy Management System under Time-of-use Electricity Price. Power Syst. Technol. 2015, 39, 367–374. [Google Scholar]
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content.

Article Metrics

Citations

Article Access Statistics

Multiple requests from the same IP address are counted as one view.