Next Article in Journal
Measurement and Convergence Analysis of the Green Total Factor Productivity of Citrus in China
Previous Article in Journal
Developing the Urban Diversity Index (UDI): A Global Comparison of Urban Qualitative Aspect and Its Implications for Sustainable Urban Planning Using POI Data
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

A Three-Layer Coordinated Planning Model for Source–Grid–Load–Storage Considering Electricity–Carbon Coupling and Flexibility Supply–Demand Balance

1
School of Electrical Engineering and Automation, Wuhan University, Wuhan 430072, China
2
Foshan Power Supply Bureau of Guangdong Power Grid Corporation, Foshan 528000, China
*
Author to whom correspondence should be addressed.
Sustainability 2025, 17(16), 7290; https://doi.org/10.3390/su17167290
Submission received: 13 July 2025 / Revised: 3 August 2025 / Accepted: 11 August 2025 / Published: 12 August 2025

Abstract

With the deep integration of electricity and carbon trading markets, distribution networks are facing growing operational stress and a shortage of flexible resources under high penetration of renewable energy. This paper proposes a three-layer coordinated planning model for Source–Grid–Load–Storage (SGLS) systems, considering electricity–carbon coupling and flexibility supply–demand balance. The model incorporates a dynamic pricing mechanism that links carbon pricing and time-of-use electricity tariffs, and integrates multi-source flexible resources—such as wind, photovoltaic (PV), conventional generators, energy storage systems (ESS), and controllable loads—to quantify the system’s flexibility capacity. A hierarchical structure encompassing “decision–planning–operation” is designed to achieve coordinated optimization of resource allocation, cost minimization, and operational efficiency. To improve the model’s computational efficiency and convergence performance, an improved adaptive particle swarm optimization (IAPSO) algorithm is developed which integrates dynamic inertia weight adjustment, adaptive acceleration factors, and Gaussian mutation. Simulation studies conducted on the IEEE 33-bus distribution system demonstrate that the proposed model outperforms conventional approaches in terms of operational economy, carbon emission reduction, system flexibility, and renewable energy accommodation. The approach provides effective support for the coordinated deployment of diverse resources in next-generation power systems.

1. Introduction

With the deepening integration of electricity and carbon trading markets, power system planning is confronted with increasingly complex constraints and challenges. The rapid growth of renewable energy penetration has exacerbated system volatility and uncertainty, leading to severe wind and solar curtailment as well as insufficient flexibility. These issues highlight the urgent need for advanced planning methodologies capable of simultaneously ensuring economic efficiency, achieving low-carbon objectives, and maintaining operational security. The early studies on source-grid-load (SGL) coordinated planning primarily focused on the coordinated operation of generation, the grid, and the load, as well as uncertainty modeling on the supply side [1]. However, they paid insufficient attention to energy storage resources, which have been widely deployed in recent years to enhance systems’ flexibility [2,3]. In response, integrated planning approaches that consider SGLS have gradually emerged. These methods partially incorporate uncertainties on both the supply and demand sides, along with low-carbon development strategies. Nevertheless, most existing research has yet to thoroughly explore the mechanisms of interaction between electricity and carbon markets—referred to as electricity–carbon coupling—nor systematically analyze the impact of achieving a supply–demand balance in flexibility under such a coupling framework on the overall coordinated planning of a SGLS system. Therefore, developing a coordinated SGLS planning method that accounts for both electricity–carbon coupling and system flexibility holds significant theoretical and practical importance.
As a critical terminal component of power systems, the distribution network is characterized by a complex topology, a large scale, and diverse configurations. With the large-scale integration of distributed energy resources (DERs), traditional distribution network structures are increasingly inadequate in managing the power balancing challenges that arise from the combined effects of generation-side intermittency and load-side uncertainty [4]. Consequently, the planning of modern distribution networks is evolving into a multi-dimensional, complex optimization problem, featuring uncertainty, multi-objectivity, nonlinearity, dynamic behavior, and discrete decision variables [5]. According to [6], the widespread deployment of distributed energy and power electronic devices has significantly amplified system uncertainty, thereby increasing the complexity of planning problems. To address these challenges, a meshed distribution network planning approach has been proposed. This method divides the original system into multiple supply zones for partitioned optimization, effectively reducing the modeling dimensionality and simplifying the planning process [7].
In the field of SGLS coordinated planning, carbon trading mechanisms have been widely adopted to promote carbon emission reduction and optimize power generation structures. References [8,9] incorporate carbon trading constraints into generation-side capacity planning to limit the output of high-emission units. Reference [10] introduces a tiered carbon pricing mechanism in the dispatch of integrated energy systems, significantly enhancing the effectiveness of emission constraints. In [11,12], carbon pricing is embedded in system planning models to prioritize the siting of low-carbon technologies, which thereby improves the utilization of renewable energy sources. On the other hand, reference [13] employs a leader–follower game-theoretic approach to engage both supply and demand sides in demand response programs, achieving both economic efficiency and system load relief through peak shaving and valley filling. Reference [14] proposes a demand response potential forecasting method based on the electricity–carbon coupling incentive effect, which effectively improves the controllability and economic benefits of the demand response. Reference [15] introduces an integrated electricity–carbon trading linkage mechanism for the demand side, achieving the dual goals of carbon emission reduction and cost optimization through the joint optimization of electricity and carbon markets. In addition, references [16,17] present a weather-aware electricity price interval forecasting method and a large language model-based approach for assisting in bidding behavior and market sentiment analysis, providing new techniques for the joint forecasting of electricity and carbon prices. Across these studies, carbon trading mechanisms control emissions by adjusting carbon prices, while a price-based demand response achieves load shifting through electricity price signals. Both are fundamentally driven by market signals, which indicates an inherent correlation between electricity and carbon prices. However, most of the existing literature still treats the carbon trading mechanism as an independent factor, without thoroughly examining the potential impact of electricity–carbon coupling on integrated system planning.
However, the integration of electricity–carbon coupling mechanisms not only affects generation dispatch and investment but also exacerbates the need for system flexibility. As carbon pricing incentivizes higher renewable energy penetration, the variability and uncertainty of renewable resources increase, leading to significant flexibility challenges. Therefore, it is essential to integrate a flexibility supply–demand balancing framework into electricity–carbon coupled planning to ensure the secure and economic operation of the distribution network. Ensuring a balance between the supply and demand of flexibility has emerged as a core challenge for the sustainable operation of power systems [18,19]. A variety of flexibility-oriented planning approaches have been proposed in the literature. For instance, reference [20] presents a generation expansion model that incorporates flexibility balancing, which significantly enhances the system’s ability to accommodate the uncertainties of wind and solar power. Reference [21] highlights that neglecting flexibility considerations in planning may result in an inadequate system regulation capacity and even trigger operational risks. To address this, reference [22] develops a probabilistic flexibility margin model to quantify systems’ regulation capability, which is further extended into a bi-level optimization framework with upper–lower layer interactions [23,24]. In addition, some studies introduce flexibility metrics into SGLS coordinated planning models to achieve coordinated regulation of various resources [25] or to evaluate the flexibility supply capability in the contexts of thermal power retrofitting [26] and transmission network expansion [27]. Overall, the current research on system flexibility remains largely focused on the optimal configuration of supply-side resources, with limited attention being paid to demand-side flexibility resources—such as shiftable and interruptible loads—in terms of modeling and dispatch potential. Moreover, few studies incorporate these demand-side resources into a comprehensive flexibility supply–demand balancing framework under electricity–carbon coupling mechanisms. Investigating the influence of electricity–carbon market interactions on system flexibility regulation and developing a joint flexibility balancing model that involves both the demand and supply sides still present significant research opportunities.
In summary, most current approaches only focus on electricity pricing or carbon pricing separately, without fully revealing their intrinsic coupling relationship. Meanwhile, although some works have introduced flexibility-oriented planning concepts, they often neglect demand-side flexibility resources or lack a systematic framework for achieving flexibility supply–demand balance. Moreover, none of the existing studies simultaneously consider the combined effects of electricity–carbon coupling and flexibility supply–demand balance. In addition, conventional optimization algorithms, such as standard PSO or GA, suffer from slow convergence and a tendency to fall into local optima.
To overcome these limitations, this paper proposes a three-layer coordinated planning model that integrates electricity–carbon coupling and a flexibility supply–demand balance, while also introducing the IAPSO algorithm to enhance both the solution quality and computational efficiency. The main innovations and contributions of this paper are as follows:
(1)
Three-layer planning model development: a “decision–planning–operation” three-layer coordinated planning model is proposed, which incorporates electricity–carbon coupling and a flexibility supply–demand balance into a unified framework for source–grid–load–storage planning in distribution networks;
(2)
Electricity–carbon pricing mechanism: a dynamic electricity–carbon coupled pricing model is established to effectively guide resource allocation and investment decisions;
(3)
Flexibility supply–demand modeling: a comprehensive flexibility quantification approach is proposed that integrates both supply-side and demand-side flexibility resources for coordinated system operation;
(4)
Algorithmic improvement: an improved adaptive PSO algorithm is designed to accelerate convergence and enhance the global search capability for solving large-scale planning problems.
The remainder of this paper is organized as follows: Section 2 introduces the electricity–carbon coupled pricing model, Section 3 presents the flexibility supply–demand quantification model, Section 4 describes the three-layer coordinated planning model, Section 5 explains the IAPSO algorithm and solution methodology, Section 6 provides simulation results and discussions, and Section 7 concludes this paper.

2. Construction of the Electricity–Carbon Coupled Pricing Model

The interaction between the electricity market and the carbon trading market is fundamentally driven by electricity prices and carbon trading prices, as illustrated in Figure 1. When electricity demand rises, electricity prices increase, boosting the profit margins of both conventional and renewable generators. However, conventional units—such as coal-fired plants—must purchase carbon allowances proportional to their generation, which drives up carbon demand and carbon prices. As carbon prices climb, the profitability of conventional generators declines due to the additional carbon cost, which discourages capacity expansion and reduces their output, and thereby alleviates carbon demand. In contrast, renewable generators—unaffected by carbon costs—benefit from higher electricity prices and expand their capacity more rapidly. As the share of renewables in the generation mix grows, their zero-marginal-cost output exerts downward pressure on electricity prices. Meanwhile, the displacement of carbon-intensive conventional units by renewables reduces the overall carbon demand, which in turn suppresses carbon prices. Over time, these interactions lead the system to a dynamic equilibrium between electricity and carbon markets.
Time-of-use (TOU) electricity prices are set by the upstream grid operator, while the dynamic carbon price is derived from the day-ahead carbon trading costs in the electricity–carbon coupled market. The dynamic carbon price is determined jointly by the benchmark carbon price and the known carbon emission factor. Therefore, accurately calculating the average carbon price ρ c for the distribution network is a key aspect in constructing the electricity–carbon coupled pricing model.

2.1. Carbon Trading Pricing Model

The total amount of carbon emissions traded on the previous day is calculated as shown in Equation (1).
E G R I D = α P g , t Δ t t = 1 T β P g , t Δ t
where E G R I D denotes the total carbon emissions traded on the previous day; α is the baseline carbon emission rate of coal-fired units; P g , t represents the output of coal-fired units at time t ; Δ t is the duration of each time interval; β stands for the baseline carbon allowance for coal-fired units; and T is the total number of time intervals.
According to carbon market regulations, a tiered carbon price is used to calculate the carbon emission cost. The tiered carbon price ρ N and the carbon emission cost C C are calculated as shown in Equations (2) and (3), respectively.
ρ N = ρ w E G R I D E C < w ρ ( 1 + σ ) w E G R I D E C < 2 w ρ ( 1 + N σ ) E G R I D E C N w
C C = ρ E 0 + n = 1 N ρ N E n
where ρ is the initial carbon market trading price; σ is the carbon price growth rate; E C represents the system carbon allowance; w is the length of the carbon emission interval (kg); N is the number of emission intervals involved; the range from E G R I D to E C is divided into the initial interval E 0 and the excess interval E n ; E n denotes the length of the n t h carbon emission interval. The given segment denotes the length of the corresponding carbon emission interval. Positive carbon price intervals indicate that the system’s emissions exceed the allowance, which requires the purchase of carbon credits; negative intervals correspond to emissions below the allowance, which allows for the sale of surplus carbon credits for revenue.
The average carbon price ρ c is calculated based on the averaging principle, as shown in Equation (4).
ρ c = C C E G R I D E C E G R I D E C = E 0 + n = 1 N + 1 E n
The time-of-use carbon price over one day is given by Equation (5):
ρ t C = 1 + ξ t c ρ c ξ t c = C + ξ t ξ ˙ ξ t ξ ˙ C ξ t ξ ˙ ξ t < ξ ˙
where t T , T is the total number of time intervals in a day; ρ t C is the dynamic carbon price at time t ; ξ t c is the carbon emission factor adjustment coefficient; ξ t denotes the carbon emission factor at time t ; ξ ˙ is the threshold value of the carbon emission factor; λ is the time-of-use electricity price coefficient; and C + and C are the dynamic carbon pricing coefficients.

2.2. Tiered Electricity Pricing Model Under the Electricity–Carbon Coupled Market

Carbon trading prices and electricity prices serve as the primary interactive carriers in the electricity–carbon coupled market. By considering the dynamic interplay between the two, the market interaction can be expressed as follows:
ρ t e ρ t e ¯ = ρ t C ρ t C ¯ μ μ ¯ = ξ ξ ¯ , η η ¯ = τ τ ¯
where ρ t e ¯ and ρ t C ¯ represent the baseline time-of-use electricity price and baseline carbon trading price in the absence of electricity–carbon market coupling; ρ t e and ρ t C represent the time-of-use electricity price and carbon trading price under the coupled market; coefficients τ ¯ , μ ¯ , and η ¯ denote the growth rate of the carbon allowance purchase cost, the electricity price reduction coefficient, and the electricity price growth coefficient, respectively, in the uncoupled market; coefficients τ , μ , and η denote the corresponding parameters under the electricity–carbon coupled market.
This formulation establishes both the carbon trading pricing model and the tiered electricity pricing model under the electricity–carbon coupled market.

3. Flexibility Supply–Demand Quantification Model for Distribution Networks

The large-scale integration of wind and photovoltaic power, as the main forms of renewable energy, introduces significant variability and uncertainty, which increases the peak–valley gap of the net load. This, in turn, elevates the system’s flexibility demand. Therefore, it is essential to analyze the flexibility of the supply and demand capabilities of the system and to develop a flexibility balancing model that ensures the dynamic equilibrium of the flexibility of the supply and demand within the power system.

3.1. Flexibility Resource Modeling

(1) Conventional Units
The use of conventional units in power systems—primarily coal-fired power plants and gas turbines—offers advantages such as flexible siting, short construction periods, and the maturity of the associated technologies. However, due to limitations imposed by dispatch instructions, conventional units exhibit low ramp rates and limited flexibility in regulation [28]. The flexibility supplied by conventional units is expressed in Equation (7):
F G , t u p = min R g u p Δ t , P g , max P g , t F G , t d o w n = min R g d o w n Δ t , P g , t P g , min
where F G , t u p and F G , t d o w n represent the upward and downward flexibility of conventional unit g during time period t ; P g , max , P g , min , and P g , t denote the maximum output, minimum output, and real-time output of conventional unit g at time t , respectively; R g u p and R g d o w n are the upward and downward ramp rates of unit g ; and Δ t is the regulation time interval.
(2) Energy Storage Systems
When integrated with renewable energy sources, energy storage technologies can significantly enhance the utilization of renewables by enabling peak shaving, load smoothing, and improved system stability. With fast response capabilities, storage devices serve as one of the key resources for rapid flexibility regulation. The flexibility supplied by ESS is expressed in Equation (8):
F E S S , t u p = min P D , s , max P s , t , ( E s , t E s , min ) η D P s , t Δ t Δ t F E S S , t d n = min P C , s , max + P s , t , ( E s , max E s , t ) + η C P s , t Δ t η C Δ t
where F E S S , t u p and F E S S , t d n represent the upward and downward flexibility provided by energy storage unit s during time period t ; P s , t , P C , s , max , and P D , s , max denote the output power, maximum charging power, and maximum discharging power of storage unit s at time t ; E s , t , E s , max , and E s , min are the state of charge (SoC), maximum SoC, and minimum SoC of storage unit s at time t ; and η C and η D represent the charging and discharging efficiencies, respectively.
(3) Controllable Loads
System load resources are primarily composed of controllable loads, which can be classified into shiftable loads and interruptible loads. These two types can respond on different time scales and quickly adapt to changes in system demand. The flexibility provided by controllable loads is expressed in Equation (9):
F S L , t u p = P S L , max P S L , t F S L , t d o w n = P S L , t P S L , min F I L , t u p = P I L , max P I L , t
where F S L , t u p and F I L , t u p represent the upward flexibility provided by shiftable loads and interruptible loads, respectively, during time period t ; F S L , t d o w n denotes the downward flexibility of the shiftable loads during time period t ; P S L , max , P S L , min , and P S L , t are the upper limit, lower limit, and real-time shifted amount of the shiftable loads at time t ; P I L , max and P I L , t represent the maximum value and interruptible amount of the interruptible loads at time t .

3.2. Flexibility Supply–Demand Balancing Model

Flexibility supply–demand balance is achieved when the total flexibility provided by all resources meets the net load demand of the power system. The total flexibility supply capability of all flexibility resources is given in Equation (10):
F A L L u p = F G , t u p + F E S S , t u p + F S L , t u p + F I L , t u p F A L L d o w n = F G , t d o w n + F E S S , t d o w n + F S L , t d o w n
where F A L L u p and F A L L d o w n represent the total upward and downward flexibility supply capability of all flexibility resources at time t , respectively.
The flexibility supply–demand balance of the power system is described by Equation (11):
Δ F A L L u p = F A L L u p F A L L d e , u p Δ F A L L d o w n = F A L L d o w n F A L L d e , d o w n
where F A L L d e , u p and F A L L d e , d o w n represent the upward and downward flexibility demand of the power system at time t ; Δ F A L L u p and Δ F A L L d o w n denote the upward and downward flexibility margins, respectively. A positive margin indicates sufficient flexibility supply, while a negative margin indicates a flexibility shortfall.
The flexibility shortfall of the power system is expressed by Equation (12):
F A L L q u e , u p = | Δ F A L L u p | , Δ F A L L u p 0 0 , Δ F A L L u p > 0 F A L L q u e , d o w n = | Δ F A L L d o w n | , Δ F A L L d o w n 0 0 , Δ F A L L d o w n > 0
where F A L L q u e , u p and F A L L q u e , d o w n represent the upward and downward flexibility shortfalls of the power system at time t , respectively.

4. Three-Layer Coordinated Planning Model for SGLS

This study establishes a three-layer planning framework consisting of the decision, planning, and operation layers. The decision layer aims to minimize the variation in distributed resource penetration rates, with renewable energy capacity allocation, installation locations, and load distribution being decision variables, while partitioning the network into supply grids. The planning layer minimizes the equivalent annualized total cost (including annualized investment cost, annual operation cost, and annual carbon trading cost) by determining new line construction plans and the capacity and siting of newly added wind turbines, PV units, gas turbines, and ESS. The operation layer optimizes the sum of the operational costs and annual carbon trading costs based on the decisions from the planning layer. These three layers are interconnected through their objective functions and mutually influence one another. The model structure is illustrated in Figure 2.

4.1. Decision Layer Model

4.1.1. Objective Function

(1) Deviation in Distributed Resource Penetration Rate:
f 1 = m N P G , m P L , m P G P D 2 N
where N is the number of grids; P G denotes the power output of generation resources in the supply partition; P D is the active power of loads in the supply partition; P G , m represents the generation output in grid m ; and P L , m denotes the active load power in grid m .
(2) Distance Between Load Center and Generation Center:
f 2 = x d m , i x g m , i 2 y d m , i y g m , i 2
where x d m , i and y d m , i represent the coordinates of the load center i in grid m ; x g m , i and y g m , i represent the coordinates of the generation center i in grid m .

4.1.2. Constraints

(1) Line Load Rate Constraint:
η η max
where η and η max represent the line load rate and the maximum allowable line load rate, respectively.
(2) Supply Radius Constraint:
R R max
where R and R max represent the supply radius of the substation and its maximum allowable value, respectively.

4.2. Planning Layer Model

4.2.1. Objective Function

Minimization of Equivalent Annualized Total Cost:
min F = F l i n e + F d g + F e s s
where F l i n e denotes the equivalent annualized investment cost of new lines and F d g represents the equivalent annualized investment cost of newly installed distributed generation (DG), with this study focusing on three types of DG: wind turbines, PV units, and gas turbines. F e s s stands for the equivalent annualized investment cost of newly added ESS. The detailed calculation formulas are as follows:
(1) Equivalent annualized investment cost of new lines
The equivalent annualized investment cost of new lines, denoted as F L I N E , is expressed as Equation (18):
F l i n e = ( λ l i n e + γ l i n e ) j Ω l i n e β l i n e L j f x j β l i n e = r ( 1 + r ) n 1 ( 1 + r ) n 1 1 ( 1 + r ) n 2
where x j is the line decision variable; when x j = 0 , the line is not planned; when x j = 1 , the line is planned. λ 1 and γ 1 represent the line’s investment return rate and annual operation and maintenance rate, respectively. β 1 denotes the annualized conversion coefficient of fixed investment costs. r is the investment return rate; n l is the normal service life of the line; n 2 is the construction period. L j is the construction length of line j ; f x j is the unit length construction cost of line j when the line type is x j . Ω l i n e represents the entire set of lines that need to be constructed in the distribution network.
(2) Equivalent annualized investment cost of ESS
The equivalent annualized fixed investment and operation and maintenance cost of energy storage, denoted as F e s s , is expressed as follows:
F e s s = ( λ e s s + γ e s s ) i Ω e s s β e s s E e s s , j f x j β e s s = r ( 1 + r ) n 1 ( 1 + r ) n 1 1 ( 1 + r ) n 2 f x j = P e s s + B e s s
where x j is the energy storage decision variable; when x j = 0 , no energy storage is allocated at the node; when x j = 1 , energy storage is allocated. λ e s s and γ e s s represent the investment return rate and annual operation and maintenance rate of energy storage, respectively. β e s s denotes the annualized conversion coefficient of the energy storage investment costs. E e s s , j is the rated capacity of energy storage connected at node j ; f x j is the unit capacity investment cost for energy storage of type x j at node j . P e s s and B e s s are the annualized unit installation cost and unit operation and maintenance cost of energy storage, respectively. Ω e s s represents the set of planning nodes with allocated energy storage in the distribution network structure.
(3) Equivalent annualized investment cost of DG
The equivalent annualized fixed investment and operation and maintenance cost of DG are expressed as follows:
F d g = ( λ d g + γ d g ) i Ω d g β d g E d g , j f j ( X j ) β d g = r ( 1 + r ) n 1 ( 1 + r ) n 1 1 ( 1 + r ) n 2 f j ( X j ) = P X j + B X j
where X j denotes the type of DG connected at node j ; X j = 0 indicates that no DG is connected at this node; X j = 1 , 2 , 3 indicates that the first, second, or third type of DG is connected, referring to wind turbines, PV units, and gas turbines in this study. Different values of the variable represent different DG types. λ d g and γ d g represent the DG investment return rate and annual operation and maintenance rate, respectively. β d g is the annualized conversion coefficient of the DG investment costs. E d g , j is the rated capacity of DG connected at node j ; f j ( X j ) is the unit capacity investment cost of DG type X j connected at node j . P X j and B X j are the unit installation cost and annual operation and maintenance cost of DG type X i connected at node j , respectively. Different DG types have different unit installation and operation costs. Additionally, when X j = 0 , f j ( X j ) = 0 . Ω d g represents the set of planning nodes with DG integration in the distribution network.
This study assumes that the performance degradation of PV, wind, and ESS within the planning horizon is implicitly accounted for through the discount factor embedded in the investment cost. The potential impact of explicitly modeling the degradation of these devices is not considered in this work.

4.2.2. Constraints

(1) Capacity Constraint of Proposed Gas Turbine Units:
E m t , min E m t E m t , max
where E m t , max and E m t , min represent the upper and lower capacity limits of the proposed gas turbine units, respectively.
(2) Capacity Constraint of Proposed ESS:
E ess , min E e s s E e s s , max
where E e s s , max and E e s s , min represent the upper and lower limits of the proposed energy storage capacity, respectively.
(3) Capacity Constraint of Proposed DG:
E d g , min E d g E d g , max
where E d g , max and E d g , min represent the upper and lower limits of the proposed DG capacity, respectively.

4.3. Lower-Level Operation Model

4.3.1. Objective Function

The lower level aims to minimize the sum of the annual operation cost F om and annual carbon trading cost F co 2 , as expressed in Equation (24):
min F E C = F m t , o m + F d g , w a s t e + F o m , q u e + F c o 2 F m t , o m = d Ω d t = 1 T N d a m t P m t , t 2 + b m t P m t , t + c m t F d g , w a s t e = d Ω d i Ω d g t = 1 T N d K d g , w a s t e P d g , i , d , t max P d g , i , d , t F o m , q u e = d Ω d t = 1 T N d K o m , q u e F A L L q u e , u p + F A L L q u e , d o w n F c o 2 = d Ω d t = 1 T N d F c o 2 , t
where the annual operation cost F om includes the gas turbine generation cost F om , mt , the penalty cost for insufficient system flexibility F om , que , and the penalty cost for wind and solar curtailment F waste , re . a m t , b m t , and c m t are the coefficients of the gas turbine generation cost. K d g , w a s t e is the penalty cost per unit of curtailed renewable generation. K om , que is the penalty cost per unit of flexibility shortfall. Ω d denotes the number of typical scenarios; N d is the number of days in typical scenario d . Ω dg represents the set of renewable units, including wind turbines and PV units. P d g , i , d , t and P d g , i , d , t max are the actual output power and the maximum available power of renewable unit i at time t , respectively.

4.3.2. Constraints

(1) Gas Turbine Output Constraint:
P m t , t min P m t , t P m t , t max
where P m t , t max and P m t , t min represent the upper and lower output limits of the gas turbine units, respectively.
(2) DG Operation Constraints:
P d g , i , d , t min P d g , i , d , t P d g , i , d , t max Q d g , i , d , t min Q d g , i , d , t Q d g , i , d , t max
where P d g , i , d , t min , P d g , i , d , t max , Q d g , i , d , t min , and Q d g , i , d , t max represent the lower and upper limits of the active and reactive power output of the DG at node i during time period t under scenario d , respectively.
(3) ESS Operation Constraints:
0 P e s s , i , d , t d i s ε d i s P e s s , i , d , t max , d i s 0 P e s s , i , d , t c h a ε c h a P e s s , i , d , t max , c h a ε d i s + ε c h a 1 S e s s , i , d , t min , S O C S e s s , i , d , t S O C S e s s , i , d , t max , S O C S e s s , i , d , t + Δ t S O C = S e s s , i , d , t S O C + η e s s , i c h a P e s s , i , d , t c h a P e s s , i , d , t d i s η e s s , i d i s Δ t S e s , i , d , 1 S O C = S e s , i , d , T S O C
where P e s s , i , d , t max , d i s and P e s s , i , d , t max , c h a denote the maximum discharging and charging power of the energy storage, respectively; ε d i s and ε c h a are binary variables that indicate the discharging and charging states of the storage, with 1 representing discharging (or charging); S e s s , i , d , t S O C , S e s s , i , d , t min , S O C , and S e s s , i , d , t max , S O C represent the SoC of the energy storage, and its lower and upper limits, respectively, at node i during time period t under scenario d ; η e s s , i d i s and η e s s , i c h a denote the discharging and charging efficiencies; Δ t is the duration of time period t ; S e s s , i , d , 1 S O C and S e s s , i , d , T S O C are the initial and final SoC at the start and end of operation, respectively.
(4) Power Flow Constraints of the System:
i h ( j ) P i j , d , t R i j I i j , d , t 2 = k t ( j ) P j k , d , t P j , d , t i h ( j ) Q i j , d , t X i j I i j , d , t 2 = k t ( j ) Q j k , d , t Q j , d , t U j , d , t 2 = U i , d , t 2 2 R i j P i j , d , t + X i j Q i j , d , t + Z i j 2 I i j , d , t 2 P i , d , t = P g , i , d , t + P d g , i , d , t + P e s s , i , d , t d i s P e s s , i , d , t c h a P L , i , d , t + P I L , i , d , t + P S L , i , d , t Q i , d , t = Q g , i , d , t + Q d g , i , d , t Q L , i , d , t
where h j is the set of sending-end nodes of branches for which node j is the receiving end; t j is the set of receiving-end nodes of branches for which node j is the sending end. R i j , X i j , and Z i j denote the resistance, reactance, and impedance of line i , j , respectively. P i j , d , t and Q i j , d , t represent the active and reactive power flows through the line i , j at time t under scenario d . U i , d , t and U j , d , t denote the voltage magnitudes at nodes i and j , respectively. I i j , d , t is the current magnitude of line i , j . P i , d , t and Q i , d , t are the active and reactive power injected at node i . P e s s , i , d , t d i s and P e s s , i , d , t c h a represent the discharging and charging power of the ESS at node i . P L , i , d , t , P I L , i , d , t , and P S L , i , d , t are the initial active power load, interruptible load, and transferable load at node i , respectively. Q g , i , d , t , Q d g , i , d , t , and Q L , i , d , t denote the reactive power of the thermal units, that of the DG units, and the initial reactive load at node i , respectively.
(5) Renewable Energy Utilization Constraint:
d Ω p i Ω d g t = 1 T N d P d g , i , d , t d Ω p i Ω d g t = 1 T N d P d g , i , d , t max ω r e
where ω r e denotes the threshold of renewable energy utilization.
(6) System Operational Security Constraints:
U min U i , d , t U max I i j , d , t I i j , max
where U i , d , t is the voltage magnitude at node i at time t under scenario d ; U min and U max represent the lower and upper bounds of the voltage magnitude, respectively; I i j , d , t is the current magnitude of line i j at time t under scenario d ; and I i j , max denotes the line’s current safety limit.
(7) Power Balance Constraint:
P m t + P p v + P w t + P e s s + P g r i d = P L
where P m t is the output power of the gas turbine units; P p v and P w t are the output power of the PV and wind power units, respectively; P e s s is the output of the energy storage system; P g r i d is the power purchased from the upstream grid; and P L is the total load demand.

5. Model Solution

5.1. Improved K-Means Algorithm

The K-means algorithm is a clustering method based on objective function optimization, and commonly uses Euclidean distance as the criterion for power supply grid division. However, Euclidean distance primarily emphasizes spatial proximity and does not account for the electrical coupling between distributed resources and loads, which can significantly affect grid partitioning [29]. To address this limitation in the context of SGLS coordinated planning in distribution networks, two evaluation indices—the electrical coupling degree and renewable energy accommodation rate—are introduced to comprehensively assess and optimize regional partitioning within the distribution system.
The comprehensive index system for regional division is primarily determined by the objectives and principles of distribution network partitioning. Considering the functional requirements of each region, this study develops an integrated evaluation framework to comprehensively assess and optimize regional partitioning. The system incorporates the electrical coupling degree, which reflects the electrical proximity between nodes; the voltage security margin, which indicates the overall deviation of node voltages during coordinated regulation; and the renewable energy accommodation rate, which evaluates the self-regulation capability of each region under partitioned conditions. The use of these indicators, together, aims to maximize the autonomy and operational efficiency of distribution network regions.
(1) Electrical Coupling Degree
In the architecture design of distribution networks, electrical connections between nodes within the same region are typically strong. The electrical coupling degree is quantified using the following formula:
ρ = 1 2 m i j e i , j k i k j 2 m δ ( i , j )
where e i , j denotes the weight of the edge between nodes i and j , which is represented by the electrical distance between the two nodes; m = i j e i , j / 2 is half the sum of the weights of all edges within the region; k i = j e i j represents the sum of the weights of all edges connected to node i . If nodes i and j are located in the same region, then δ ( i , j ) = 1 ; otherwise, δ ( i , j ) = 0 .
(2) Voltage Security Margin
The voltage security margin is defined as the ability of PV, energy storage, and load resources within a region to regulate active and reactive power to control voltage deviations. The specific calculation formula is as follows:
φ V = 1 N n Ω t φ V n , t
φ V n , t = 1 , Δ V i < Δ V max i Δ V max i / Δ V i , otherwise
where φ V n , t represents the voltage regulation capability index of region n ; N denotes the total number of partitioned regions; Δ V i is the maximum voltage deviation of node i within the region; and Δ V max i represents the maximum voltage regulation capacity at node i , considering the active and reactive power margins within the region.
(3) Renewable Energy Accommodation Rate
The renewable energy accommodation rate refers to the ability of controllable sources and net load fluctuations within a region to be smoothed over the scheduling period. This metric helps evaluate and optimize the distribution network’s capacity for renewable energy integration and load regulation across different time intervals. The quantitative expression of this indicator is as follows:
φ P = 1 N n N t H φ P n , t / H
φ P n , t = 1 , P a d j n , t Δ P n , d n , t P a d j n , t / Δ P n , d n , t , P a d j n , t < Δ P n , d n , t
P a d j n , t = Δ P P V n , t + Δ P W T n , t + Δ P e s s n , t + Δ P l o a d n , t
where Δ P P V n , t , Δ P W T n , t , Δ P l o a d n , t , and Δ P L n , t represent the adjustable capacities of distributed PV, wind power, energy storage, and flexible loads, respectively, as well as the net load within the region at time t .
(4) Comprehensive Regional Partitioning Index System for Distribution Networks
Integrating the aforementioned regional division indicators and considering the regulation capabilities of the sources, loads, and storage within each region, the comprehensive partitioning index system for county-level distribution networks is formulated as follows to fully leverage regional autonomy.
ϕ = γ 1 ρ + γ 2 φ V + γ 3 φ P
where γ 1 , γ 2 , and γ 3 are weighting coefficients, which satisfy the following condition:
γ 1 + γ 2 + γ 3 = 1
The improved K-means algorithm is a hard clustering method based on a predefined number of clusters k , with the following steps:
  • Determine the number of clusters k according to the prerequisites of grid partitioning;
  • Define classification criteria using the spatiotemporal distances of load points and distributed resources;
  • Calculate weights based on the comprehensive regional partitioning index; smaller weights indicate greater similarity between data points;
  • Apply the minimum weight matching algorithm [30] to find the minimum weight set in the graph, and thereby group data points into distinct clusters;
  • Use the K-means algorithm to separately select cluster centers and load centers.
Edges in the minimum weight matching connect vertices from different clusters, optimizing the matching between nearby cluster centers and load centers to determine the final grid partitioning results.

5.2. Search Method Based on Improved Adaptive Particle Swarm Optimization

Particle swarm optimization (PSO) treats the solution space of a problem as a multi-dimensional search space composed of particles. Each particle represents a potential solution and explores the space by adjusting its own position and velocity. The position of each particle is updated based on both its own best experience and the collective experience of the swarm, with the aim of identifying the optimal solution. Through continuous iterations, the swarm gradually converges toward the global optimum.
The steps of the IAPSO algorithm are as follows:
  • Population Initialization
Initialize the velocity and position of all particles. Evaluate the objective function value for each particle.
2.
Determination of Personal Best
During initialization, each particle’s personal best position is set to its current position.
3.
Adaptive Inertia Weight Adjustment
In IAPSO, let the solution space be d -dimensional ( d =   1 ,   2 ,   ,   D ). Let V i = ( v i d , , v i D ) and X i = ( x i d , , x i D ) denote the velocity and position of each particle, respectively. Based on the current velocity and iteration index t , the position of each particle is updated using the following equation:
v i d ( t + 1 ) = w v i d ( t ) + c 1 r 1 p i d x i d ( t ) + c 2 r 2 p g d x i d ( t ) x i d ( t + 1 ) = x i d ( t ) + v i d ( t + 1 )
For each particle, the velocity v i d and position x i d are updated using Equation (40). In this process, P i d represents the particle’s personal best position, while P g d denotes the global best position found by the entire population. The inertia weight w serves to balance the global exploration and local exploitation capabilities. The acceleration coefficients c 1 and c 2 reflect the particle’s tendency to move toward its personal best and the global best positions, respectively. Additionally, r 1 and r 2 are uniformly distributed random numbers in the range [0, 1].
The inertia weight critically affects PSO’s search ability and convergence. Larger inertia weights favor global exploration, while smaller ones enhance local exploitation. Conventional PSO uses a fixed inertia weight, often resulting in suboptimal convergence. To improve the method’s stability and performance, this study employs an adaptive inertia weight that varies with each particle’s fitness. The update rules for minimization and maximization problems are given by Equations (41) and (42).
w i d ( t ) = w m i n + w m a x w m i n f x i d ( t ) f m i n t f a v e r a g e t f m i n t f x i d ( t ) f a v e r a g e t w m a x f x i d ( t ) > f a v e r a g e t  
w i d ( t ) = w m i n + w m a x w m i n f m a x t f x i d ( t ) f m a x t f a v e r a g e t f x i d ( t ) f a v e r a g e t w m a x f x i d ( t ) < f a v e r a g e t  
where w m i n and w m a x are the preset minimum and maximum inertia weight coefficients, f ( x i d ( t ) ) is the fitness value of the particle i at iteration t , f m i n t and f m a x t are the minimum and maximum fitness values among all particles at iteration ttt, and f a v e r a g e t is the average fitness of all particles at iteration t . f a v e r a g e t can be expressed as follows:
f a v e r a g e t = i = 1 n f x i d ( t ) n
Taking the example of maximizing fitness using PSO, a higher fitness value indicates a better particle position. When a particle’s fitness is below the average fitness of all particles, it means that the particle is in a relatively poor position; in this case, setting the inertia weight to its maximum enhances the particle’s global search ability, helping it quickly move toward better regions. Conversely, when a particle’s fitness exceeds the average fitness, it indicates a relatively good position; adaptively reducing the inertia weight strengthens the particle’s local search ability, enabling faster convergence to the optimal solution. This inertia weight adjustment effectively balances global exploration and rapid convergence.
4.
Adaptive Adjustment of Acceleration Factors
The acceleration factors c 1 and c 2 represent the cognitive ability of particles and their social information-sharing capability, respectively. Proper tuning of these factors can accelerate the search process and help avoid premature convergence to local optima. Therefore, this study improves the setting of acceleration factors ( c 1 , c 2 ) and random constants ( r 1 , r 2 ) , as shown in Equations (44) and (45):
v i d ( t + 1 ) =   w i d ( t ) v i d ( t ) + c 1 ( 1 e ) p i d x i d ( t ) +   c 2 e p g d x i d ( t )  
e = t T
In Equations (44) and (45), T denotes the maximum number of iterations, t the current iteration, and w i d ( t ) the inertia weight calculated by Equations (41) and (42); the other parameters share the same meaning as in Equation (40). This design allows particles to be influenced more by their individual best positions in early iterations, enabling rapid convergence to relatively good solutions. As the iterations progress, the influence of individual best positions diminishes, and particles move towards the global best, which promotes overall convergence.
Fixed inertia weights and acceleration coefficients often cause the algorithm to get trapped in local optima, reducing its optimization performance. Therefore, this study dynamically updates the acceleration coefficients based on the adaptive inertia weight, as shown in Equations (46) and (47).
c 1 ( t ) = c s t a r t c s t a r t c e n d w i d ( t ) w m i n w m a x w m i n
c 2 ( t ) = c s t a r t + c s t a r t c e n d w i d ( t ) w m i n w m a x w m i n
Based on the adaptive inertia weight, the quality of each particle’s position is reflected, which allows appropriate adjustment of the particle’s cognitive and social sharing abilities so that particles can more rapidly converge toward their own historical best positions and the global best position.
5.
Crossover and Mutation Operation
To generate new offspring, n random values are drawn from a Gaussian distribution and added to n components of the solution vector. This helps the algorithm escape local optima. For each parent solution vector, the offspring produced by Gaussian mutation at generation m is expressed as follows:
x j g m ( m ) = x j ( m ) ( μ + σ j N o r m ( 0 , 1 ) )
where μ and σ represent the mean and standard deviation of the Gaussian distribution, respectively. N o r m ( 0 , 1 ) denotes a Gaussian random variable with a mean of 0 and a standard deviation of 1. The standard deviation for each solution vector is calculated by Equation (49):
σ j = f ( x j ) f m i n
where f ( x j ) is the fitness value of the j solution in the population, and f m i n is the minimum fitness value among the current population’s solution vectors.
6.
Calculate the fitness of each particle and update the individual best positions.
7.
Check if the maximum number of iterations is reached. If yes, output the results; if not, return to step (3).

5.3. Solution Procedure

  • Preprocess the planning of the power supply partitions, determine the optimal number of clusters, and use the improved K-means clustering algorithm to identify load centers and DG centers. Then, apply minimum weight matching to define the power supply grids. The grid partition results are passed to the middle layer;
  • Initialize parameters of the IAPSO algorithm and generate the initial population;
  • Pass the configuration scheme generated by the middle layer to the lower layer as the initial conditions. The lower layer model determines the economic operation cost and environmental governance cost based on distributed resource outputs, and thus identifies the optimal operational strategy for the grid;
  • Pass the optimal strategy to the middle layer. If the DG penetration meets the requirements, do not return to the upper layer. The middle layer updates the global particle velocities and positions directly based on the optimized scheme;
  • Check whether the termination condition is met. If yes, the global optimum is the optimal planning scheme; if not, update the particle positions and velocities and return to step 2.

6. Simulation Analysis

To verify the effectiveness of the proposed strategy, simulation experiments were conducted in MATLAB R2024a using the IEEE 33-bus distribution network as an example. The system base voltage is set to 12.66 kV, and the allowable voltage range at the nodes is [0.95 p.u., 1.05 p.u.]. The system is equipped with diesel generators, and the planned types of DG include wind turbines, PV, micro gas turbines, and energy storage devices. The rated capacity of a single DG unit is 50 kW. The unit investment costs per kW are 5000, 6500, 1500, and 2000 RMB for wind energy, PV energy, micro gas turbine energy, and energy storage, respectively; the unit maintenance costs are 0.06, 0.04, 0.04, and 0.05 RMB/kWh, respectively. The unit investment cost for lines is 150,000 RMB/km. The planning investment period is 10 years with a discount rate of 0.1. Each node can accommodate up to 10 units of wind turbines and PV devices. The state of charge (SOC) for the storage devices ranges from 0.1 to 0.9, and they have charge/discharge efficiencies of 0.9.
The electricity purchase prices are segmented as follows: off-peak hours 0:00–8:00 and 11:30–13:30 at 0.25 RMB/kWh; flat hours 8:00–11:30, 13:30–16:30, and 22:30–24:00 at 0.42 RMB/kWh; peak hours 16:30–20:30 at 0.65 RMB/kWh; and sharp peak hours 20:30–22:30 at 0.82 RMB/kWh. The initial carbon trading price is 400 RMB/ton. To ensure the rationality of the parameter settings, the investment and maintenance costs in this study are primarily derived from the relevant literature and typical data from the domestic renewable energy market. The time-of-use electricity prices are based on the pricing structures of regional electricity markets, and the carbon trading price is taken from the recent average market level. These parameters are selected to establish a representative simulation environment for validating the proposed model and methodology.
The partitioning results of the IEEE 33-node network and the line construction plan are shown in Figure 3. The wind power output and load variation curves for four typical days are shown in Figure 4.

6.1. Planning Results Analysis

The planning scheme obtained using the IAPSO is presented in Table 1.
The configuration results indicate that, due to the uncertainty of distributed resources, the planning tends to deploy them in load-intensive areas to achieve local consumption. Considering the variability of PV generation, energy storage devices are preferably allocated in regions with a high concentration of distributed PV units. Through charging and discharging, they help smooth peak loads and valleys, thereby enhancing the stability of the distribution network.
Next, the impact of carbon trading prices on the planning results is analyzed. Under the conditions that the lengths of the positive and negative carbon emission intervals and the carbon quota purchase cost growth coefficient remain unchanged, the electricity–carbon coupling market is considered. The carbon trading price is varied within the range of 0 to 600 RMB/t, and the configuration results of gas turbines, wind power, PV energy, and ESS are shown in Figure 5.
As the carbon trading price increases, the capacity of the gas turbine units gradually decreases, while the capacities of the DERs and ESS steadily increase. This indicates that higher carbon prices lead to greater carbon emission costs, prompting an expansion in the installed capacity of renewable energy and pure energy systems to reduce system emissions and, consequently, carbon trading costs. With further increases in carbon prices, these capacities approach their respective limits.

6.2. Analysis of Advantages of the IAPSO

The initial parameters of the IAPSO algorithm are configured as follows: the population size is set to 80, and the maximum number of iterations is 100. A constraint is imposed to ensure that the power generation from DERs accounts for more than 50% of the total generation. Taking the total system cost as an example, the convergence curves of the standard PSO algorithm and the IAPSO algorithm are illustrated in Figure 6.
As shown in the figure, the IAPSO algorithm outperforms the traditional PSO in both convergence speed and convergence quality. The improved algorithm converges in about 28 iterations, whereas the traditional PSO requires approximately 70 iterations to reach convergence.
To more clearly demonstrate the advantages of the IAPSO algorithm, this study compares it with the standard PSO and the traditional genetic algorithm (GA), as well as differential evolution (DE) [31] and the grey wolf optimizer (GWO) [32]. The planning results for the investment and operational costs obtained by these methods are summarized in Table 2.
As shown in Table 2, the planning scheme based on IAPSO outperforms PSO, the GA, DE, and the GWO across all cost metrics, including investment and operation cost, curtailment penalty, flexibility penalty, carbon trading cost, and total system cost. This advantage arises from three key enhancements in the IAPSO framework. First, the inertia weight is dynamically adjusted based on particle fitness—particles with lower fitness are assigned larger inertia weights to enhance global exploration, while those with better performance receive smaller weights to refine their local search. Second, the acceleration coefficients evolve adaptively throughout the iterations, emphasizing individual cognition in the early stages for rapid exploration and gradually strengthening social collaboration to improve the convergence speed. Third, a Gaussian mutation mechanism is incorporated to increase solution diversity and help the population escape local optima. These combined mechanisms enable IAPSO to achieve faster convergence and more accurate global optimization results, ultimately leading to a more cost-effective planning outcome.

6.3. Analysis of Power Supply Zone Operation

The optimal operation strategies for the three power supply zones on a typical day, derived from the proposed planning scheme, are illustrated in Figure 7, Figure 8 and Figure 9.
Based on the typical daily operation profiles of each power supply zone, the system charges energy storage devices when wind and solar outputs are high, and discharges them during peak demand periods to supply power to the grid. During off-peak hours, electricity is purchased from the grid while the storage units are charged simultaneously. This strategy enables the local consumption of DERs and minimizes operational costs by leveraging time-of-use electricity pricing. In addition, flexible resources, such as shiftable loads, are utilized to further flatten the peak demand and fill valleys.

6.4. Analysis of Planning Results Under Different Scenarios

To more clearly compare and analyze the impacts of considering electricity–carbon coupling and flexibility supply–demand balance on the coordinated planning of SGLS, this study designs four different planning scenarios for validation and comparison:
  • Scenario 1: Planning considering only time-of-use electricity pricing;
  • Scenario 2: Planning considering electricity–carbon coupling;
  • Scenario 3: Planning considering flexibility supply–demand balance.
  • Scenario 4: Planning considering both electricity–carbon coupling and flexibility supply–demand balance.
The cost planning results of the three scenarios are shown in Table 3.
Scenario 1, which only considers the electricity pricing mechanism, leads to the highest overall cost, with pronounced flexibility penalties and renewable curtailment. Scenario 2 introduces electricity–carbon coupling, effectively reducing curtailment and carbon trading costs while improving the utilization of distributed resources. Scenario 3 incorporates a flexibility supply–demand balancing mechanism, which further alleviates flexibility shortages and enhances the system’s efficiency. Scenario 4 combines electricity–carbon coupling with flexibility balancing, achieving the best performance in terms of cost reduction, renewable energy integration, and system flexibility and thereby providing a comprehensive and economically efficient solution for modern power system planning.

6.5. Method Consistency Test

Without altering the parameters of the simulation model, the proposed planning method was executed 30 independent times. The resulting new line construction plans and distributed generation configurations were completely identical across all runs. The standard deviation of the total cost obtained from the 30 independent runs was less than 1.4%, whereas the standard deviations for the traditional PSO and GA methods were approximately 4.5% and 5.2%, respectively. These results demonstrate the strong consistency and robustness of the proposed method.

6.6. Validation on a Larger-Scale Network

To further verify the effectiveness of the proposed method, the more complex PG&E 69-bus distribution system [33] was tested. The parameter settings were kept consistent with those described in this section. The partitioning results of the 69-bus system and the corresponding line construction plans are shown in Figure 10.
The planning scheme obtained using the IAPSO algorithm is presented in Table 4.
From the configuration results, it can be observed that, for the 69-bus network, the proposed method still provides an effective planning scheme. Considering the uncertainty of distributed resources, the method tends to allocate them in load-intensive areas to achieve local consumption. These results confirm that the proposed method remains effective and applicable to larger-scale distribution networks.

6.7. Discussion

The simulation results provide several important insights into the effectiveness of the proposed model and the IAPSO algorithm.
First, the integration of the electricity–carbon coupling mechanism substantially improves the planning performance. By establishing a linkage between electricity prices and carbon trading signals, the model creates a coordinated market environment that guides investment towards low-carbon resources while discouraging carbon-intensive generation. This mechanism not only promotes the utilization of renewable energy but also contributes to the reduction of overall system costs through the mitigation of carbon-related expenditures.
Second, the incorporation of a flexibility supply–demand balancing framework proves to be essential for ensuring the secure and economic operation of the system. The explicit quantification of flexibility and the coordinated scheduling of multiple resources, including energy storage and controllable loads, enable the model to effectively accommodate renewable variability. This reduces dependence on conventional thermal generation for balancing purposes and alleviates operational stress, thereby improving both economic efficiency and system reliability.
Third, the proposed IAPSO algorithm exhibits superior convergence performance and robustness relative to conventional metaheuristic approaches. The adaptive adjustment of its parameters and the introduction of Gaussian mutation enhance its global exploration capability while maintaining solution diversity, which ensures stable and high-quality optimization results across repeated runs.
Finally, the successful application of the proposed approach to a larger-scale distribution network validates its scalability and practical applicability. This indicates that the model and algorithm are suitable for complex real-world systems. Future research may extend this work by explicitly modeling equipment degradation and incorporating more detailed representations of demand-side flexibility, thus further improving the accuracy and applicability of the proposed framework.

7. Conclusions

This study proposes a three-layer coordinated planning model for source–grid–load–storage systems considering electricity–carbon coupling and flexibility supply–demand balance. The key contributions and findings can be summarized as follows:
  • The proposed “Decision–Planning–Operation” structure provides a systematic approach for distribution network planning. By combining grid partitioning, coordinated resource allocation, and multi-scenario operational optimization, the model effectively reduces planning complexity while enhancing cost efficiency and renewable energy integration;
  • The improved adaptive IAPSO algorithm demonstrates faster convergence and higher solution accuracy compared with conventional metaheuristic techniques, offering robust computational support for large-scale and highly constrained planning problems;
  • The introduction of a dynamic electricity–carbon pricing mechanism effectively promotes the deployment of low-carbon resources and reduces the total system cost, supporting the low-carbon transition of distribution networks;
  • By quantifying and coordinating the flexibility contributions of conventional units, energy storage, and controllable loads, the model mitigates flexibility shortages, reduces renewable curtailment, and alleviates the over-reliance on thermal units, thereby improving system operational reliability and economic performance.
These results confirm the scalability and practical applicability of the proposed model and algorithm, providing a feasible solution for future low-carbon and flexibility-oriented distribution network planning. Future work will focus on incorporating equipment degradation and more detailed demand-side flexibility models to further enhance planning accuracy.
In addition, this study contributes to sustainable development by integrating economic, environmental, and operational objectives into a unified planning framework. By promoting the deployment of renewable energy, reducing carbon emissions, and enhancing the efficiency of flexibility resource utilization, the proposed model supports the transition towards cleaner and more resilient energy systems. This aligns with global sustainability goals and provides actionable insights for policymakers and utilities seeking to achieve both economic efficiency and environmental responsibility in power system planning.

Author Contributions

Conceptualization, Z.W., H.C. and Z.H.; Methodology, Z.W. and H.T.; Software, Z.W. and L.Z.; Validation, H.C. and H.T.; Investigation, L.Z.; Resources, J.Z. and Z.L.; Writing—Original Draft, Z.W., H.C. and H.T.; Visualization, Z.W.; Supervision, Z.H.; Project administration, Z.H.; Funding acquisition, J.Z. and Z.L. All authors have read and agreed to the published version of the manuscript.

Funding

The authors declare that this study received funding from The Science and Technology Project of Guangdong Power Grid Corporation, Foshan Power Sup-ply Bureau of Guangdong Power Grid Corporation (030600KC23100019). The funder was not involved in the study design, collection, analysis, interpretation of data, the writing of this article or the decision to submit it for publication.

Institutional Review Board Statement

Not applicable.

Informed Consent Statement

Not applicable.

Data Availability Statement

Data sharing is available by emailing the corresponding author.

Conflicts of Interest

Authors Jianfeng Zheng and Zhilu Liu were employed by the company Foshan Power Supply Bureau of Guangdong Power Grid Corporation. 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.

Abbreviations

The following abbreviations are used in this manuscript:
Abbreviations
SGLSSource–grid–load–storage
IAPSOImproved adaptive particle swarm optimization
PSOParticle swarm optimization
GAGenetic Algorithm
PVPhotovoltaic
WTWind power
GTGas turbines
ESSEnergy storage systems
DGDistributed generation
DERsDistributed energy resources
Variables
ρ c Average carbon price
E G R I D Total carbon emissions traded on the previous day
ρ N Tiered carbon price
C C Carbon emission cost
F G , t u p ,   F G , t d o w n Upward and downward flexibility of conventional unit
F E S S , t u p ,   F E S S , t d n Upward and downward flexibility provided by energy storage
F S L , t u p ,   F I L , t u p Upward flexibility provided by shiftable loads and interruptible loads
F S L , t d o w n Downward flexibility of shiftable loads
F l i n e ,   F d g ,   F e s s Equivalent annualized investment cost of new lines, DG, and ESS
F om Annual operation cost
F om , mt Gas turbine generation cost
F om , que Penalty cost for insufficient system flexibility
F waste , re Penalty cost for wind and solar curtailment

References

  1. Wang, Z.; Bu, S.; Wen, J.; Huang, C. A Comprehensive Review on Uncertainty Modeling Methods in Modern Power Systems. Int. J. Electr. Power Energy Syst. 2025, 166, 110534. [Google Scholar] [CrossRef]
  2. Farokhzad Rostami, H.; Samiei Moghaddam, M.; Radmehr, M.; Ebrahimi, R. Energy Expansion Planning with a Human Evolutionary Model. Energy Inform. 2024, 7, 64. [Google Scholar] [CrossRef]
  3. Zhu, Y.; Li, D.; Xiao, S.; Liu, X.; Bu, S.; Wang, L.; Ma, K.; Ma, P. Coordinated Control Strategy of Source-Grid-Load-Storage in Distribution Network Considering Demand Response. Electronics 2024, 13, 2889. [Google Scholar] [CrossRef]
  4. Zubo, R.H.A.; Mokryani, G.; Rajamani, H.-S.; Aghaei, J.; Niknam, T.; Pillai, P. Operation and Planning of Distribution Networks with Integration of Renewable Distributed Generators Considering Uncertainties: A Review. Renew. Sustain. Energy Rev. 2017, 72, 1177–1198. [Google Scholar] [CrossRef]
  5. Zhang, Y.; Liang, C.; Wang, H.; Zhang, J.; Zeng, B.; Liu, W. A Multi-Objective Interval Optimization Approach to Expansion Planning of Active Distribution System with Distributed Internet Data Centers and Renewable Energy Resources. IET Gener. Transm. Distrib. 2024, 18, 2999–3016. [Google Scholar] [CrossRef]
  6. Mao, J.; Jafari, M.; Botterud, A. Planning Low-Carbon Distributed Power Systems: Evaluating the Role of Energy Storage. Energy 2022, 238, 121668. [Google Scholar] [CrossRef]
  7. Majzoobi, A.; Khodaei, A.; Bahramirad, S. Capturing Distribution Grid-Integrated Solar Variability and Uncertainty Using Microgrids. In Proceedings of the 2017 IEEE Power & Energy Society General Meeting, Chicago, IL, USA, 16–20 July 2017. [Google Scholar]
  8. Yang, J.; Zhang, N.; Botterud, A.; Kang, C. Situation Awareness of Electricity-Gas Coupled Systems with a Multi-Port Equivalent Gas Network Model. Appl. Energy 2020, 258, 114029. [Google Scholar] [CrossRef]
  9. Wu, Q.-H.; Bose, A.; Singh, C.; Chow, J.H.; Mu, G.; Sun, Y.; Liu, Z.; Li, Z.; Liu, Y. Control and Stability of Large-Scale Power System with Highly Distributed Renewable Energy Generation: Viewpoints from Six Aspects. CSEE J. Power Energy Syst. 2023, 9, 8–14. [Google Scholar] [CrossRef]
  10. Gao, C.; Lu, H.; Chen, M.; Chang, X.; Zheng, C. A Low-Carbon Optimization of Integrated Energy System Dispatch under Multi-System Coupling of Electricity-Heat-Gas-Hydrogen Based on Stepwise Carbon Trading. Int. J. Hydrogen Energy 2025, 97, 362–376. [Google Scholar] [CrossRef]
  11. Xue, K.; Wang, J.; Hu, G.; Wang, S.; Zhao, Q.; Chong, D.; Yan, J. Optimal Planning for Distributed Energy Systems with Carbon Capture: Towards Clean, Economic, Independent Prosumers. J. Clean. Prod. 2023, 414, 137776. [Google Scholar] [CrossRef]
  12. Ba-swaimi, S.; Verayiah, R.; Ramachandaramurthy, V.K.; ALAhmad, A.K.; Padmanaban, S. Optimal Planning of Renewable Distributed Generators and Battery Energy Storage Systems in Reconfigurable Distribution Systems with Demand Response Program to Enhance Renewable Energy Penetration. Results Eng. 2025, 25, 104304. [Google Scholar] [CrossRef]
  13. Liu, X. Strategy Research on Variable Load Carbon Price and Demand Response of Integrated Energy System Based on Stackelberg Game and Cooperative Game. Energy 2025, 328, 136579. [Google Scholar] [CrossRef]
  14. Zhang, Y.; Ge, X.; Li, M.; Li, N.; Wang, F.; Wang, L.; Sun, Q. Demand Response Potential Day-Ahead Forecasting Approach Based on LSSA-BPNN Considering the Electricity-Carbon Coupling Incentive Effects. IEEE Trans. Ind. Appl. 2024, 60, 4505–4516. [Google Scholar] [CrossRef]
  15. Hua, H.; Chen, X.; Gan, L.; Sun, J.; Dong, N.; Liu, D.; Qin, Z.; Li, K.; Hu, S. Demand-Side Joint Electricity and Carbon Trading Mechanism. IEEE Trans. Ind. Cyber-Phys. Syst. 2024, 2, 14–25. [Google Scholar] [CrossRef]
  16. Lu, X.; Qiu, J.; Lei, G.; Zhu, J. An Interval Prediction Method for Day-Ahead Electricity Price in Wholesale Market Considering Weather Factors. IEEE Trans. Power Syst. 2024, 39, 2558–2569. [Google Scholar] [CrossRef]
  17. Lu, X.; Qiu, J.; Yang, Y.; Zhang, C.; Lin, J.; An, S. Large Language Model-Based Bidding Behavior Agent and Market Sentiment Agent-Assisted Electricity Price Prediction. Policy Regul. IEEE Trans. Energy Mark. 2025, 3, 223–235. [Google Scholar] [CrossRef]
  18. Rahman, M.M.; Dadon, S.H.; He, M.; Giesselmann, M.; Hasan, M.M. An Overview of Power System Flexibility: High Renewable Energy Penetration Scenarios. Energies 2024, 17, 6393. [Google Scholar] [CrossRef]
  19. Mohandes, B.; Moursi, M.S.E.; Hatziargyriou, N.; Khatib, S.E. A Review of Power System Flexibility with High Penetration of Renewables. IEEE Trans. Power Syst. 2019, 34, 3140–3155. [Google Scholar] [CrossRef]
  20. Zhao, Y.; Hu, S.; Wang, Y.; Cao, L.; Yang, J. Assessing Flexibility by Ramping Factor in Power Systems with High Renewable Energy Proportion. Int. J. Electr. Power Energy Syst. 2024, 155, 109680. [Google Scholar] [CrossRef]
  21. Impram, S.; Varbak Nese, S.; Oral, B. Challenges of Renewable Energy Penetration on Power System Flexibility: A Survey. Energy Strategy Rev. 2020, 31, 100539. [Google Scholar] [CrossRef]
  22. Wang, C.; Liu, C.; Zhou, X.; Zhang, G. Flexibility-Based Expansion Planning of Active Distribution Networks Considering Optimal Operation of Multi-Community Integrated Energy Systems. Energy 2024, 307, 132601. [Google Scholar] [CrossRef]
  23. Lu, Z.; Li, H.; Qiao, Y. Probabilistic Flexibility Evaluation for Power System Planning Considering Its Association with Renewable Power Curtailment. IEEE Trans. Power Syst. 2018, 33, 3285–3295. [Google Scholar] [CrossRef]
  24. Li, H.; Lu, Z.; Qiao, Y. Flexibility Resource and Demand Balance Mechanism in Power System Planning Considering High Penetration of Renewable Energy. In Proceedings of the 2017 IEEE Power & Energy Society General Meeting, Chicago, IL, USA, 16–20 July 2017. [Google Scholar]
  25. Li, X.; Qian, J.; Yang, C.; Chen, B.; Wang, X.; Jiang, Z. New Power System Planning and Evolution Path with Multi-Flexibility Resource Coordination. Energies 2024, 17, 273. [Google Scholar] [CrossRef]
  26. Liu, J.; Guo, T.; Wang, Y.; Li, Y.; Xu, S. Multi-Technical Flexibility Retrofit Planning of Thermal Power Units Considering High Penetration Variable Renewable Energy: The Case of China. Sustainability 2020, 12, 3543. [Google Scholar] [CrossRef]
  27. Chen, Z.; Hu, Y.; Tai, N.; Tang, X.; You, G. Transmission Grid Expansion Planning of a High Proportion Renewable Energy Power System Based on Flexibility and Economy. Electronics 2020, 9, 966. [Google Scholar] [CrossRef]
  28. Gonzalez-Salazar, M.A.; Kirsten, T.; Prchlik, L. Review of the Operational Flexibility and Emissions of Gas- and Coal-Fired Power Plants in a Future with Growing Renewables. Renew. Sustain. Energy Rev. 2018, 82, 1497–1513. [Google Scholar] [CrossRef]
  29. Zhao, C.; Zhao, J.; Wu, C.; Wang, X.; Xue, F.; Lu, S. Power Grid Partitioning Based on Functional Community Structure. IEEE Access 2019, 7, 152624–152634. [Google Scholar] [CrossRef]
  30. Rosato, F. Heuristic Graph Partitioning with Preferred Cluster Sizes and Application to the Generation of Realistic Distribution Grid Topologies. In Proceedings of the 2021 IEEE 15th International Conference on Compatibility, Power Electronics and Power Engineering (CPE-POWERENG), Florence, Italy, 14–16 July 2021; pp. 1–7. [Google Scholar]
  31. Han, J.; Feng, X.; Chen, Z.; Hu, P.; Zhao, H.; Chen, Y.; Liu, N. An Evolutionary Planning Method for Distribution Networks Considering Prosumers and Shared Energy Storage. Front. Energy Res. 2024, 12, 1298226. [Google Scholar] [CrossRef]
  32. Ansari, M.M.; Guo, C.; Shaikh, M.S.; Chopra, N.; Haq, I.; Shen, L. Planning for Distribution System with Grey Wolf Optimization Method. J. Electr. Eng. Technol. 2020, 15, 1485–1499. [Google Scholar] [CrossRef]
  33. Moghaddam, M.J.H.; Kalam, A.; Shi, J.; Nowdeh, S.A.; Gandoman, F.H.; Ahmadi, A. A New Model for Reconfiguration and Distributed Generation Allocation in Distribution Network Considering Power Quality Indices and Network Losses. IEEE Syst. J. 2020, 14, 3530–3538. [Google Scholar] [CrossRef]
Figure 1. Electricity–carbon coupled market.
Figure 1. Electricity–carbon coupled market.
Sustainability 17 07290 g001
Figure 2. Three-layer planning model of decision–planning–operation.
Figure 2. Three-layer planning model of decision–planning–operation.
Sustainability 17 07290 g002
Figure 3. Schematic diagram and zoning results of the IEEE 33-bus distribution network.
Figure 3. Schematic diagram and zoning results of the IEEE 33-bus distribution network.
Sustainability 17 07290 g003
Figure 4. Wind power output and load variation curves on typical days.
Figure 4. Wind power output and load variation curves on typical days.
Sustainability 17 07290 g004
Figure 5. Configuration results under different carbon trading prices.
Figure 5. Configuration results under different carbon trading prices.
Sustainability 17 07290 g005
Figure 6. Iterative convergence curves.
Figure 6. Iterative convergence curves.
Sustainability 17 07290 g006
Figure 7. Typical daily operation of Power Supply Zone 1.
Figure 7. Typical daily operation of Power Supply Zone 1.
Sustainability 17 07290 g007
Figure 8. Typical daily operation of Power Supply Zone 2.
Figure 8. Typical daily operation of Power Supply Zone 2.
Sustainability 17 07290 g008
Figure 9. Typical daily operation of Power Supply Zone 3.
Figure 9. Typical daily operation of Power Supply Zone 3.
Sustainability 17 07290 g009
Figure 10. Schematic diagram and zoning results of the PG&E 69-bus distribution network.
Figure 10. Schematic diagram and zoning results of the PG&E 69-bus distribution network.
Sustainability 17 07290 g010
Table 1. 33-node distribution network planning scheme.
Table 1. 33-node distribution network planning scheme.
TypeLocation
New Line34–22; 35–13
WT4; 12; 31
PV2; 11; 7
ESS3; 13; 30
Gas Unit24; 8; 27
Table 2. Cost calculation results of planning using three methods.
Table 2. Cost calculation results of planning using three methods.
MethodInvestment and Operation CostWind and PV Curtailment CostFlexibility Deficiency Penalty CostCarbon Trading CostTotal Cost
IAPSO35,297.8439.88413.2611836,268.94
PSO37,820.2500.5420.5132.0838,873.28
GA39,822.08512.57441.08140.840,916.53
DE36,021.5472.3420.3124.737,038.8
GWO35,928.4482.6418.2127.736,956.9
Table 3. Cost calculation results of planning under four scenarios.
Table 3. Cost calculation results of planning under four scenarios.
ScenarioInvestment and Operation CostWind and PV Curtailment CostFlexibility Deficiency Penalty CostCarbon Trading CostTotal Cost
138,181.16541.48464.19130.7139,317.54
236,269.36462.56447.03120.0937,299.04
336,753.25475.25427.68128.2637,784.44
435,297.80439.88413.26118.0036,268.94
Table 4. 69-node distribution network planning scheme.
Table 4. 69-node distribution network planning scheme.
TypeLocation
New Line70–68; 71–22
WT60; 9; 15
PV28; 6; 17
ESS3; 8; 18
Gas Unit30; 45; 21
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.

Share and Cite

MDPI and ACS Style

Wang, Z.; Chen, H.; Tang, H.; Zheng, L.; Zheng, J.; Liu, Z.; Hu, Z. A Three-Layer Coordinated Planning Model for Source–Grid–Load–Storage Considering Electricity–Carbon Coupling and Flexibility Supply–Demand Balance. Sustainability 2025, 17, 7290. https://doi.org/10.3390/su17167290

AMA Style

Wang Z, Chen H, Tang H, Zheng L, Zheng J, Liu Z, Hu Z. A Three-Layer Coordinated Planning Model for Source–Grid–Load–Storage Considering Electricity–Carbon Coupling and Flexibility Supply–Demand Balance. Sustainability. 2025; 17(16):7290. https://doi.org/10.3390/su17167290

Chicago/Turabian Style

Wang, Zequn, Haobin Chen, Haoyang Tang, Lin Zheng, Jianfeng Zheng, Zhilu Liu, and Zhijian Hu. 2025. "A Three-Layer Coordinated Planning Model for Source–Grid–Load–Storage Considering Electricity–Carbon Coupling and Flexibility Supply–Demand Balance" Sustainability 17, no. 16: 7290. https://doi.org/10.3390/su17167290

APA Style

Wang, Z., Chen, H., Tang, H., Zheng, L., Zheng, J., Liu, Z., & Hu, Z. (2025). A Three-Layer Coordinated Planning Model for Source–Grid–Load–Storage Considering Electricity–Carbon Coupling and Flexibility Supply–Demand Balance. Sustainability, 17(16), 7290. https://doi.org/10.3390/su17167290

Note that from the first issue of 2016, this journal uses article numbers instead of page numbers. See further details here.

Article Metrics

Article metric data becomes available approximately 24 hours after publication online.
Back to TopTop