1. Introduction
Due to rapid population growth and urbanization [
1], the energy crisis has become increasingly severe, with energy demand reaching unprecedented levels [
2]. Consequently, increased energy consumption has amplified carbon emissions, creating urgent challenges for sustainable urban development [
3]. The 2024 Statistical Review of World Energy reports that energy-related emissions exceeded the 40 GtCO
2e level, with emissions from direct use of energy reaching 35 GtCO
2e for the first time ever [
4]. The building sector plays a pivotal role in this dilemma, due to its high energy usage and environmental impact [
5,
6]. Notably, energy consumption in this sector accounts for 36% of the global energy demand and contributes to 39% of global CO
2 emissions [
7,
8].
To address these challenges, it is crucial to decrease fossil fuel dependence and actively stimulate the transition to renewable energy sources [
9]. This transition holds particular significance for the cities where rapid urbanization coincides with evolving energy infrastructure. Renewable energy has immense significance in enhancing energy structures, safeguarding the ecological environment, combating the repercussions of climate change, and fostering sustainable socioeconomic development [
10]. Considering the physical characteristics of buildings, both roofs and façades present ample opportunities for the integration of distributed photovoltaics (PVs). Consequently, PV stands as the most prevalent renewable energy technology within the building sector, with the aim of reducing dependence on the power supply from the utility grid and decreasing carbon emissions during operation [
11,
12].
PV constitutes a vital means of solar energy exploitation, enabling direct electricity generation, transmission, and utilization [
13]. Nevertheless, the PV power generation is intermittent and cannot match the load curve in a time sequence. To this end, a battery energy storage system (BESS) can be configured for load shifting to deal with this problem [
14]. BESS not only effectively regulates renewable energy and load demand, but also significantly reduces the power peak-to-valley difference [
15]. Recent studies highlight critical cost considerations: shared energy storage models demonstrate that cost allocation strategies must balance fairness and actual usage to achieve economic viability [
16], while inadequate compensation mechanisms directly prolong energy storage cost recovery periods [
17]. This is compounded by findings that distributed storage topologies can mitigate installation costs compared to centralized systems [
18], underscoring that in BESS configuration, energy storage capacity should not be too large, as this would result in a substantial increase in investment cost [
19,
20]. Conversely, a smaller energy storage capacity would provide limited enhancement to the operational efficiency of the system [
21,
22]. Hence, BESS size configuration is of vital importance in building energy systems [
23].
Several scholars have discussed the configuration of BESS in buildings. Tahir Hira et al. [
24] identified characteristic days tailored for BESS capacity optimization to manage ramp rates in microgrids. Ref. [
25] introduces a BESS capacity sizing method grounded in reliable output power analysis. This approach formulates a model to establish the relationship between power capacity and wind energy loss. Following this, Ref. [
26] details an optimized energy storage configuration strategy for PV plants, based on calculated indices of power and capacity satisfaction. It further analyzes power forecast errors across various weather conditions, employing an energy storage system for error compensation. Zhang Liang et al. [
27] developed a method for optimal source-storage capacity allocation incorporating the integrated demand response (IDR). Their methodology establishes a bi-level optimization model that jointly addresses capacity allocation and operational optimization, aiming to minimize both system investment and operating costs. Finally, Ref. [
28] presents an evaluation of a grid-connected system integrating PV, battery storage, and electric vehicles (EVs) within gymnasium buildings, demonstrating that the primary electricity demand of such facilities can be effectively met through appropriately sized PV installations and battery capacities. Tan et al. [
29] proposed a stochastic approach to optimize the battery size in distribution grids with PVs. However, these approaches neglect the consideration of transmission capacity between buildings and the utility grid. In fact, buildings have a maximum power supply limit from the grid due to transformer configurations, known as the rated power of the transformer [
30,
31].
While significant research exists on transformer-aware optimization for grid-level distributed energy resources, studies specifically addressing building energy systems remain limited, with prior work mainly focused on buildings-to-distribution-network integration frameworks [
32] and transformer lifetime extension [
33,
34]. Recent advances demonstrate growing interest in this domain, including coordinated transformer-distributed energy storage planning to reduce costs and improve grid utilization [
35], dynamic thermal rating techniques for enhancing PV hosting capacity under varying conditions [
36], comprehensive reviews of load capability assessment for renewable-integrated transformers [
37], and distributed optimization methods using transformer-assisted deep reinforcement learning in related contexts [
38]. Unlike multiagent cooperative frameworks focusing on profit allocation among diverse stakeholders (e.g., wind/hydrogen/buildings via asymmetric Nash bargaining) [
39], this study addresses single-building PV-battery optimization under hard transformer constraints through multi-objective physical configuration. Furthermore, while protection schemes like pole differential current relaying ensure HVDC transmission security [
40], our work focuses proactively on preventing transformer overloads via TLR-constrained design rather than post-fault responses.
Nevertheless, at the building level, transformer capacity configurations are typically designed to satisfy conventional power demands. However, with the increasing power demand from users, there is a growing presence of large-scale electrical equipment within buildings, such as air conditioners, electric water heaters, ovens, and bathtubs. Consequently, the original transmission capacity between buildings and the utility grid may not be able to accommodate the new peak load, resulting in frequent power outages. This challenge is particularly pronounced in existing residential buildings, where equipment and facilities have aged significantly after prolonged operation. Furthermore, the lack of management and maintenance further exacerbates this situation [
41]. Therefore, these aforementioned issues significantly impact residents’ quality of life.
In general, the expansion of transmission capacity between buildings and the utility grid becomes necessary when the distribution system experiences frequent overload [
42]. However, the reconstruction of power systems, particularly in existing buildings, presents significant challenges. The early construction of these buildings has resulted in disorganized facilities and chaotic lines, making planning difficult. Moreover, the reconstruction of an upper-level transformer substation requires the construction of power corridors. Consequently, all of these factors contribute to a substantial economic burden, as shown in
Figure 1.
Therefore, for existing buildings that face challenges in power capacity expansion and have poor economic benefits, it is feasible to retain their original power systems (including transformer configurations) and reduce their reliance on the public grid by implementing a hybrid AC/DC PV-battery (PVB) system. This can be achieved by effectively controlling the energy flow within the system, thereby ensuring that the electric power drawn from the utility grid stays within the transformer’s rated power range. The configuration method of the PVB system, including PV capacity allocation and energy storage capacity allocation, is precisely the focus of this study.
The flowchart of the optimization procedure is illustrated in
Figure 2. A residential building in Shanghai and local meteorological data were selected as the simulation object. As the problem of insufficient capacity mainly occurs during the peak usage time in summer due to heightened cooling demands that drive the annual extreme transformer loading, 24 h of a typical summer day was taken as the research object. This approach captures the most severe grid stress scenario, ensuring safe operation throughout the year by addressing the extreme day balance while aligning with the optimization methodology’s focus on critical infrastructure constraints.
PVB system size ranges (PV, battery size) and other parameters serve as input for the models, along with weather data, load data, transformer capacity, and system constraints obtained through domain analysis. The NSGA-II optimization algorithm optimizes the configuration of the energy system with the objective of minimizing the two optimization objectives under the aforementioned constraints. NSGA-II is applied to determine the Pareto front sets. Then, two objective functions are weighted for two scenarios that emphasize the economy and environment, respectively. Finally, the optimal system configuration is obtained for the corresponding scenarios, and a sensitivity analysis is conducted on the configuration variables.
Consequently, based on the aforementioned technical approach, this study focuses on the following issues:
The potential for buildings to largely maintain the current power system, while considering distributed generation on the demand side to offset the impact of loads on transmission capacity.
Minimum required battery energy storage capacity for different PV penetration under transformer capacity constraints.
Proposal of a multi-objective optimized approach to PVB system, based on building load power and transmission capacity, with economic and environmental performance as evaluation criteria.
Discussion of the effects of configuration variable modifications on system performance, serving as a reference for practical engineering applications.
The paper organization is as follows.
Section 2 details the system layout and optimization objectives and elaborates on the simulation models and operational strategy. In
Section 3, the constraints on the system configuration range under an insufficient transformer capacity are discussed through simulations. The Pareto front solution set is obtained under the constraint by NSGA-II, and the weights of the objective functions are allocated based on the requirements of the two scenarios to calculate the optimal configuration. In
Section 4, the mechanism by which the variables impact the system under the optimization method is examined. Finally,
Section 5 provides the relevant conclusions.
3. Case Study and Results
First, the typical daily load of a residential building in Shanghai is selected as the research object of this study, with a summer day chosen due to its load profile, dominated by peak cooling consumption, exhibiting the annual maximum transformer stress. This makes it a conservative benchmark for capacity constraints under extreme conditions. As shown in
Figure 10, for ease of description, the peak load value above
is defined as
, which can be determined as follows:
Because this study mainly focuses on the situation where
is less than
,
must be greater than 0, and similarly,
TLR must be less than 1. According to the definition of
, the maximum net load curve exceeding
is calculated as follows:
Table 1 details the battery parameters used for this research.
The parameters of optimization objectives can be found in
Table 2.
In the case study, a time-of-use electricity pricing scheme was employed for Shanghai residential electricity tariffs (
), as detailed in
Table 3. Electricity rates are higher during the high-demand hours (6:00 AM to 10:00 PM) at 0.0897 USD per kWh. Conversely, the lower rate of 0.0446 USD per kWh applies during off-peak periods, which run from midnight to 6:00 AM and 10:00 PM to midnight.
3.1. Domain Analysis of the System
Considering the limitations of transformer capacity, there should exist a minimum storage capacity () under each TLR value and , which can meet the minimum requirements for the normal operation of the system. The , along with the corresponding and TLR values, can provide constraints for the search range in subsequent multi-objective optimizations. Therefore, before optimizing the system configuration, it is necessary to simulate the above constraints to obtain an effective region within the independent variable domain.
A Cartesian coordinate system is established featuring
on the x-axis, with
TLR assigned to the y-axis. To obtain universally applicable research results, the range of
is set from 0 to 1.5, while the range of
TLR values is limited to 0 to 1.
Figure 11 presents the results from simulating the boundary conditions. It is obvious that not every point in the coordinate system has a corresponding
. Overall, the coordinate system can be divided into four regions by using three lines.
Based on the energy relationship in
Figure 8, it is evident that to guarantee standard daily operation of the system,
must be greater than
. Considering the energy loss resulting from battery charge/discharge cycles, Line 1 can be derived through simulation, as shown by the red line in
Figure 11. It is apparent that as
increases,
TLR gradually decreases, with the rate of decrease diminishing. This can be attributed to higher
leading to greater availability of photovoltaic power generation, thereby reducing the demand for transmission capacity from the grid (i.e.,
TLR value). From an energy perspective,
does not theoretically exist in Area 1, so this paper will not further discuss this area.
To better illustrate the physical meaning of Line 1, line segment AA1 is constructed perpendicular to the y-axis passing through point A, intersecting the y-axis at point A1. Point B extends to the right along the x-axis to point B1. The moving points X, Y, and Z are located on segments AA1, AB, and BB1, respectively (excluding the two endpoints of each segment). The system analysis corresponding to these points is shown in
Figure 12.
The
at point X is extremely low, resulting in
always being greater than 0. This implies that the PV output curve is consistently below the load curve, leading to the absence of
in this situation. As the
increases, the critical point (point A) reaches 0.36. At point A, a tangent point is formed between the PV output curve and load curve. Correspondingly, the net load curve is tangent to the X-axis, where
is equal to zero. Along line AB, both
and
increase simultaneously with the increase in
. However,
remains equal to
after energy loss. As
continues to increase, a new critical point (point B) is reached. At point B, the
TLR has dropped to 0, while
after energy loss remains equal to
. This indicates that the system no longer requires electricity from the grid and can utilize effective energy flow planning to fulfill the complete daily energy requirements solely with PV generation, thereby achieving a fully self-sufficient power supply mode. On segment BB1, as
further increases,
decreases while
increases, as shown at point Z. Excess PV power generation can be curtailed or transmitted to the utility grid. A summary of the system analysis corresponding to the relevant points in Line 1 is shown in
Table 4.
Under the premise of the energy relationship (on the right side of Line 1), the configuration of the energy storage capacity (
) cannot be based solely on
. Due to the high-power demands of peak loads on the battery, the necessary capacity may exceed the minimum value theoretically required based on energy needs alone, when accounting for charge–discharge rate limitations. To determine the critical point of this relationship, Line 2 is derived through simulation, as shown in
Figure 11. However, Line 2 appears as an approximately straight line in
Figure 11 and lacks clear features. Therefore, it is magnified and presented in
Figure 13.
The characteristic curves demonstrate that as
increases,
TLR gradually decreases and eventually stabilizes at 0.824. Similarly, as
increases,
gradually increases and then stabilizes at 161.828 kWh. This is because a higher
implies a lower
under the same
TLR condition. Therefore,
TLR can be further reduced to achieve a larger
until
under each
exhibits the same multiple relationship with
, resulting in a higher required
. Furthermore, in the lower right portion of
Figure 13, the
and maximum battery discharge power required for each point on Line 2 are located on the previously defined battery characteristic line, with a maximum charging/discharging rate of 0.5 C.
To further analyze the situation at each point on Line 2, point C1 (with a
of 0.6) is selected, and a line chart illustrating the corresponding
(black axis) and
(orange axis) values for its
TLR (0.8272) is presented in
Figure 14.
is selected as the y-axis in the figure to facilitate the description of the energy and power relationship.
In
Figure 14, the
corresponding to
is represented by the black solid line, while the battery characteristics are depicted by the orange dashed line. Along the OC1 line, the
is determined by the energy storage capacity corresponding to the battery characteristics at the same
value, as indicated by the orange arrow. Beyond point C1, the corresponding
can be directly determined based on the
curve, as shown by the grey arrow. Point C1 serves as a critical point on the line where the
is 0.6. Furthermore, Line 2 is formed by connecting the critical points at different
values. In Area 2 above Line 2, the value of
is selected based on the battery characteristics (orange dashed line). In the area below Line 2, the value of
is calculated based on the energy relationship (black solid line).
Line 3 in
Figure 11 is a straight line with a
TLR value of 0.5. Area 4 below Line 3 is characterized by a low transmission capacity of the power grid, making it more suitable for traditional power expansion methods. Therefore, this study does not delve into the discussion in Area 4. This study mainly focuses on Areas 2 and 3.
3.2. Capacity Analysis of Energy Storage System
The results of the battery capacity configuration after the simulation within the domain of
and
TLR are shown in
Figure 15. It can be observed that
is negatively correlated with the
and positively correlated with the
TLR value. Additionally, the growth rate of
with increasing
TLR is comparatively moderate in Area 2, while in Area 3, the increase in
with
TLR is more pronounced.
To more thoroughly examine how variables influence
, the relationship curves between
and
, as well as
TLR values, are shown in
Figure 16. Analysis shows that
TLR values have a significant influence on
. A decreasing
TLR value indicates a more severe system power capacity shortage, necessitating greater renewable energy integration and larger associated storage capacity. In contrast, the impact of
on
is relatively small. As the
increases, the required storage capacity of the system gradually decreases.
3.3. Optimization Results and Analysis
Based on domain analysis in
Section 3.1 and the storage capacity analysis in
Section 3.2, system configuration optimization needs to be conducted under the following constraints:
In Equation (18), A represents the effective definition domain of
and
TLR, that is, the union set of Areas 2 and 3 in
Figure 11.
The Pareto front generated by NSGA-II is shown in
Figure 17. In
Figure 17a, the blue points are the designed Pareto front solution sets corresponding to the
TLR values. The Pareto front of these points is represented by the red dashed line, that is, the Pareto-optimal sets of the PVB system. However, it should be taken into account that in practical engineering applications,
TLR is a fixed value and not a variable that can be optimized and adjusted. Therefore, in
Figure 17b, the design Pareto front sets of the system under specific
TLR values are shown separately. Each curve represents the optimal solution set for the PVB system design stage under the current
TLR value.
Figure 18 shows the distribution of the battery capacity configuration,
DTC, and
DCE across the optimized solution groups at different
TLR levels. The chart shows that smaller
TLR values require larger storage capacity. When
TLR is 0.9, a 100kWh battery is configured, while when
TLR is 0.5, a battery with a capacity of up to approximately 1000 kWh needs to be configured to meet optimization. High-capacity storage equipment incurs higher costs, which increases the
DTC. Correspondingly, high-capacity storage equipment can effectively reduce
DCE and is more environmentally friendly.
After obtaining the optimal solution sets for each
TLR value, another step is to assign decision weights to each objective based on the two scenarios.
Table 5 is a pairwise comparison matrix constructed based on the scores given by the experts for each objective. Scores range from 1 to 9, where a score of 1 indicates two equally important objectives, and a score of 9 indicates that one objective is much more important than the other [
56]. To validate the acceptability of the subjective scoring matrix, the decision matrix’s consistency ratio should remain below 0.1 [
57]. Given that stakeholders assign differing priorities to each objective, this research incorporates two distinct sets of decision weights for stakeholders with varying emphases, presented in
Table 5.
Based on the weights in
Table 5, the optimal configurations corresponding to different
TLR values for scenarios
and
can be calculated, as shown in
Table 6 and
Figure 19. In both scenarios, as
TLR decreases, the required configuration capacities for both PV and energy storage increase. The demand for increased energy storage capacity is significantly higher than that for increased PV capacity. This is because increasing energy storage capacity to address peak loads is more economical compared to increasing PV configuration capacity. Additionally, equipment capacity expansion is necessary to accommodate the growing user load, which implies an increase in
DTC. This increased economic investment yields favorable environmental benefits, namely a reduction in the value of
DCE.
Comparing the two scenarios, under the same TLR value, the difference between in scenario and is large, while the difference between is small. Between different TLR values in the same scenario, the difference between is small, while the change in is large. Therefore, it can be considered that is the key factor that distinguishes between the two scenarios, while mainly distinguishes different TLR values. The size of can be adjusted to achieve the conversion between economic scenarios and environmental scenarios, while the size of is mainly used to meet the safe operation of the system under different TLR values (i.e., the is to some extent higher than the in the corresponding case).