Next Article in Journal
Experimental Study on the Hydrodynamic Analysis of a Floating Offshore Wind Turbine Under Focused Wave Conditions
Next Article in Special Issue
Optimal Synchronous Condenser Placement in Renewable Energy Bases to Meet Renewable Energy Transfer Capacity Requirements
Previous Article in Journal
A Comprehensive Evaluation Method for Cement Slurry Systems to Enhance Zonal Isolation: A Case Study in Shale Oil Well Cementing
Previous Article in Special Issue
Recovery Strategies for Combined Optical Storage Systems Based on System Short-Circuit Ratio (SCR) Thresholds
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

Flexibility Resource Planning and Stability Optimization Methods for Power Systems with High Penetration of Renewable Energy

1
School of Electrical and Power Engineering, Hohai University, Nanjing 211100, China
2
Power China Jiangxi Electric Power Engineering CO., LTD., Nanchang 330006, China
*
Authors to whom correspondence should be addressed.
Energies 2025, 18(15), 4139; https://doi.org/10.3390/en18154139
Submission received: 24 June 2025 / Revised: 28 July 2025 / Accepted: 30 July 2025 / Published: 4 August 2025
(This article belongs to the Special Issue Analysis and Control of Power System Stability)

Abstract

With the accelerating global transition toward sustainable energy systems, power grids with a high share of renewable energy face increasing challenges due to volatility and uncertainty, necessitating advanced flexibility resource planning and stability optimization strategies. This paper presents a comprehensive distribution network planning framework that coordinates and integrates multiple types of flexibility resources through joint optimization and network reconfiguration to enhance system adaptability and operational resilience. A novel virtual network coupling modeling approach is proposed to address topological constraints during network reconfiguration, ensuring radial operation while allowing rapid topology adjustments to isolate faults and restore power supply. Furthermore, to mitigate the uncertainty and fault risks associated with extreme weather events, a CVaR-based risk quantification framework is incorporated into a bi-level optimization model, effectively balancing investment costs and operational risks under uncertainty. In this model, the upper-level planning stage optimizes the siting and sizing of flexibility resources, while the lower-level operational stage coordinates real-time dispatch strategies through demand response, energy storage operation, and dynamic network reconfiguration. Finally, a hybrid SA-PSO algorithm combined with conic programming is employed to enhance computational efficiency while ensuring high solution quality for practical system scales. Case study analyses demonstrate that, compared to single-resource configurations, the proposed coordinated planning of multiple flexibility resources can significantly reduce the total system cost and markedly improve system resilience under fault conditions.

1. Introduction

As the global energy crisis and environmental pollution become increasingly severe [1], the pursuit of sustainable energy development models has become more pressing worldwide [2]. With the rapid advancement of smart grid and renewable energy technologies, distributed energy systems are becoming more prevalent [3]. A growing number of consumers are installing distributed generation units, such as PV and wind power systems, which enhance local energy self-sufficiency and enable participation in electricity markets [4,5]. However, coordinating energy production and consumption within a community remains challenging in a volatile environment. Flexibility resource planning has thus emerged as a proactive solution to optimize energy utilization while improving energy efficiency and environmental performance [6].
Furthermore, the Chinese government has made notable progress in advancing sustainable energy development, particularly through the adoption of the “carbon peaking and carbon neutrality” targets [7], aimed at establishing a green and low-carbon society. These targets have driven the development of flexibility resources within distribution networks, making source–grid–load–storage coordination a prominent operational paradigm [8,9]. Under this paradigm, the power system maintains a balance between local generation and consumption through the coordinated deployment of flexibility resources, thereby reducing operational costs and enhancing resource utilization efficiency [10]. This approach not only improves system flexibility but also facilitates renewable energy integration and strengthens grid resilience [11]. Reference [12] demonstrates that coordinated planning of diverse flexibility resources can enhance system operational efficiency and grid resilience, while Reference [13] proposes a three-stage management strategy incorporating network reconfiguration to coordinate various resources under grid constraints for optimal operation.
Ensuring rational and efficient flexibility resource planning in distribution networks is essential. Traditional network reconfiguration modeling methods are not always effective at ensuring accurate topology decisions, often facing operational complexity and low computational efficiency. Although Big-M-based methods [14] improve modeling accuracy through linearization, their high computational complexity can burden resource-constrained distribution networks [15]. The virtual network coupling mechanism provides an alternative by constructing a virtual topology to simplify the enforcement of radiality constraints. Reference [16] introduces a virtual network-based configuration strategy that reduces computational complexity through topological coupling, promotes fairness, and maximizes system benefits. By integrating individual incentives with efficient modeling [17], virtual network coupling enables effective network reconfiguration operations.
Flexibility resource planning in distribution networks still encounters significant challenges, especially beyond fundamental resource allocation mechanisms. Existing research often focuses on planning a single type of resource, neglecting the complexities introduced by integrating large shares of renewable energy and ESSs [18]. These factors can lead to increased system volatility, negatively impacting grid stability and introducing economic risks. Reference [19] proposes a CVaR-based multi-objective distributed scheduling model that accounts for distribution network constraints and uncertainty. Additionally, Reference [20] develops a bi-level energy management framework to coordinate energy transactions among multiple consumers, using CVaR to estimate potential losses. However, relying on a single risk measure may be inadequate for balancing risk control for extreme events with the operational flexibility of the system [21].
Bi-level optimization models are widely used in distribution network planning as they effectively address the coupling between planning and operation. The upper-level planning decisions focus on long-term investment returns, while the lower-level operational decisions target short-term operational optimization; these levels interact and constrain each other [22]. However, existing bi-level optimization models often suffer from low computational efficiency when tackling large-scale problems, especially when complex constraints such as network reconfiguration are incorporated [23]. Intelligent optimization algorithms, including PSO and SA, have shown strong performance in solving complex optimization tasks [24]. Bio-inspired optimization algorithms, such as ant lion optimization, have demonstrated effectiveness in power system applications, particularly for load frequency control in multi-area interconnected systems [25]. Nonetheless, individual algorithms typically face limitations such as slow convergence or susceptibility to local optima [26]. Therefore, developing efficient hybrid optimization algorithms is crucial for addressing large-scale distribution network flexibility resource planning problems.
Furthermore, existing research underscores the need to enhance flexibility resource planning in distribution networks, particularly regarding system resilience, risk management, and multi-resource coordination. This study proposes a coordinated planning approach for diverse flexibility resources in distribution networks, explicitly considering network reconfiguration and fault risks. A CVaR mechanism integrated with a virtual network coupling modeling method is employed to quantify and manage risks. Additionally, a bi-level optimization framework is developed to minimize both investment and operational costs as well as risk exposure, and a hybrid SA-PSO algorithm is applied for distributed computation, ensuring high computational efficiency and robust optimization performance.
To further evaluate the proposed method, Table 1 presents a comparative analysis of existing studies in terms of resource types, risk modeling, network reconfiguration, optimization frameworks, and solution method.
The main contributions of this study are as follows:
  • A virtual network coupling modeling method has been implemented to address topological constraints during network reconfiguration. In the planning stage, this method effectively resolves radiality constraints, facilitates truthful topology optimization, and improves operational efficiency. Moreover, accurate topology modeling contributes to the stable operation of the distribution network.
  • A CVaR-based risk quantification framework has been established to manage uncertainties arising from extreme weather and fault risks. By integrating CVaR into the bi-level optimization model, an effective balance between investment costs and operational risks is achieved. Compared to traditional deterministic methods, this approach handles uncertainties more effectively, thereby enhancing system robustness and economic efficiency.
  • A coordinated planning model for multiple flexibility resources has been developed to enable the integrated configuration of micro gas turbines, ESSs, intelligent soft switches, and other resources. Through a bi-level optimization framework that coordinates planning and operational decisions, and with the aid of a hybrid SA-PSO algorithm, the solution performance is significantly improved. Compared with single-resource configuration methods, this approach markedly enhances overall system benefits and operational resilience.
The remainder of this paper is structured as follows. Section 2 presents the system model and details the modeling methods for various types of flexibility resources. Section 3 outlines the distribution network flexibility resource planning strategy that accounts for network reconfiguration and fault risks. Section 4 describes the distributed algorithm used to solve the problem. Section 5 evaluates the proposed strategy, and Section 6 concludes the findings of this study.

2. Modeling Methods for Multi-Type Flexibility Resources

Flexibility resources are key means for power systems to address the variability of renewable energy and the uncertainty of loads. Through proper configuration and coordinated optimization, they can effectively improve system flexibility, reliability, and economic performance. This section introduces the flexibility resources present on the generation, network, load, and storage sides of the power system, analyzes their primary regulation mechanisms, and establishes the corresponding mathematical models.

2.1. Microturbine Model

A MT features fast start-up and shutdown capabilities, allowing it to swiftly respond to sudden changes in power demand within a short time frame. Its strong load-following capability enables quick adjustments in output power to meet grid requirements and accommodate load fluctuations. In the event of grid frequency deviations or sudden disturbances, the microturbine can react promptly, effectively maintaining grid stability.
The MT model is described by the followed equations:
y i , t , s MT z i , t , s MT = u i , t , s MT u i , t 1 , s MT ( t { 2 , , T } ) y i , t , s MT z i , t , s MT = u i , t , s MT I S i MT ( t { 1 } ) y i , t , s MT + z i , t , s MT 1 P i , t , s MT P i MT , max u i , t , s MT P i , t , s MT P i MT , min u i , t , s MT P i , t , s MT ( P i I S + R U i ) u i , t , s MT ( t { 1 } ) P i , t , s MT ( P i I S R D i ) u i , t , s MT ( t { 1 } ) P i , t , s MT P i , t 1 , s MT ( 2 u i , t 1 , s MT u i , t , s MT ) P i SU , max + ( 1 + u i , t 1 , s MT u i , t , s MT ) R U i ( t { 2 , , T } ) P i , t 1 , s MT P i , t , s MT ( 2 u i , t 1 , s MT u i , t , s MT ) P i SD , max + ( 1 u i , t 1 , s MT + u i , t , s MT ) R D i ( t { 2 , , T } )
where i denotes the distribution network bus number to which the microturbine is connected; u i , t , s MT is a binary variable indicating whether the microturbine is online (1) or offline (0); y i , t , s MT and z i , t , s MT are binary variables representing the start-up and shutdown states, respectively; I S i MT indicates the initial state of the microturbine; P i I S denotes its initial output power; R U i and R D i represent its upward and downward ramp rates; P i SU , max and P i SD , max denote the maximum upward and downward ramping power, respectively.

2.2. Soft Open Point Model

A SOP is a flexible distribution device based on power electronics, widely used in modern distribution networks. It enables flexible control of power flows, precise voltage regulation, and efficient integration of distributed energy resources [27]. By replacing traditional mechanical switches with power electronics, the SOP provides faster and more flexible control capabilities, thereby enhancing the reliability, economic performance, and flexibility of the distribution network. By coordinating multiple types of flexibility resources, the SOP allows flexible control of active power transmission between two feeders, supports flexible switching among various connection modes, enables different topological configurations of bus flexibility resources, and provides reactive power support. The SOP model is described by the following equations:
P i , t , s SOP + P j , t , s SOP + P i j , t , s soploss = 0 P i j , t , s soploss = A i SOP P i , t , s SOP + A j SOP P j , t , s SOP μ i S i j SOP Q i , t , s SOP μ i S i j SOP μ j S i j SOP Q j , t , s SOP μ j S i j SOP ( P i , t , s SOP ) 2 + ( Q i , t , s SOP ) 2 ( S i j SOP ) 2 ( P j , t , s SOP ) 2 + ( Q j , t , s SOP ) 2 ( S i j SOP ) 2
where i and j denote the distribution network bus numbers connected at both ends of the SOP; P i , t , s SOP , P j , t , s SOP and Q i , t , s SOP , Q j , t , s SOP represent the active and reactive power injected by the two SOP converters, respectively; S i j SOP and P i j , t , s soploss denote the converter capacity at both ends of the SOP and the active power transmission loss of the SOP, respectively; A i SOP , A j SOP are the loss coefficients of the SOP converters; μ i , μ j denote the absolute values of the sine of the power factor angles.

2.3. On-Load Tap Changer Model

An OLTC is a device capable of real-time voltage regulation while operating under load conditions. By adjusting the transformer turns ratio, it stabilizes the voltage level, ensuring that the voltage at the user side remains within an acceptable range [28]. Although OLTCs have the potential to regulate voltage dynamically, traditional devices are limited by their mechanical structure, which restricts their switching frequency. This may hinder their ability to respond effectively to fast renewable generation fluctuations. Therefore, OLTCs are typically more suited to slow voltage variations or are used in conjunction with other faster-acting devices for comprehensive voltage control. The OLTC model can be represented by the following equations:
V i , t , s 2 V m , t , s 2 = 2 ( P i j , t , s r i j + Q i j , t , s x i j ) ( r i j 2 + x i j 2 ) I i j , t , s 2 V m , t , s 2 = k i j , t , s 2 V j , t , s 2 k i j , t , s = 1 + K i j , t , s Δ k OLTC K i j , t , s Z K i j max K i j , t , s K i j max K i j Z
where r i j and x i j denote the resistance and reactance of branch ij; P i j , t , s and Q i j , t , s represent the active and reactive power flows through the branch; V i , t , s denotes the voltage at bus i; I i j , t , s denotes the current flowing through the branch; k i j , t , s denotes the tap ratio of the OLTC; K i j , t , s and K i j max represent the tap position and its maximum value; Δ k OLTC is the unit step size for OLTC adjustment.

2.4. Capacitor Bank Model

A CB provides reactive power by switching capacitor units, thereby regulating voltage and power factor to stabilize grid operation. Its fast response capability makes it an effective flexibility resource that mitigates voltage fluctuations, reduces losses, and supports the integration of renewable energy sources. When coordinated with other flexibility resources, the capacitor bank optimizes grid operation, improving system stability and economic performance. The CB model is described by the following equations:
Q i , t , s CB = N i , t , s CB × Q CB N i , t , s CB N i CB , max
where i denotes the distribution network bus number where the CB is connected; Q i , t , s CB represents the reactive power compensation capacity of the capacitor bank; Q CB denotes the reactive power compensation capacity of a single capacitor unit; N i , t , s CB indicates the number of capacitors switched in; N i CB , max represents the total number of capacitors available for switching.

2.5. Demand Response Model

DR is an important strategy by which users, while satisfying their own electricity requirements, actively adjust their consumption behavior in response to price signals or cooperate with power system dispatch under incentive policies [29]. This enhances system flexibility and ensures secure, stable, and economical grid operation. By flexibly regulating loads, demand response effectively addresses supply-demand fluctuations and the uncertainty of renewable energy output, playing a crucial role in promoting renewable energy integration and improving system operational efficiency.

2.5.1. Price-Based Demand Response

Price-based demand response, currently the predominant response mode, regulates loads by establishing a linkage between price signals and user consumption behavior [30]. Its core mechanism is that power companies implement differentiated pricing strategies based on the time-varying characteristics of the load, motivating users to economically optimize their electricity usage periods, thereby promoting peak-valley load shifting. In practice, differentiated pricing schemes such as time-of-use pricing (the main approach at present), real-time pricing, and critical peak pricing are commonly used. Among these, time-of-use pricing is the most widely adopted due to its simplicity in implementation. The price-based demand response is described by the following equations:
ξ i = Δ P i , t , s Δ ρ i , t , s = P i , t , s cur P i , t , s load ρ i , t , s cur ρ i , t , s ρ i , t , s cur = ρ peak t T peak ρ valley t T valley ρ flat t T flat t = 1 T P i , t , s cur = t = 1 T P i , t , s load ρ i , t , s cur , min ρ i , t , s cur ρ i , t , s cur , max t = 1 T P i , t , s cur ρ i , t , s cur t = 1 T P i , t , s cur = t = 1 T P i , t , s load ρ i , t , s t = 1 T P i , t , s load
where i denotes the bus number where demand response is applied; ξ i is the price elasticity coefficient at bus i; Δ P i , t , s represents the change in electricity demand before and after DR implementation; Δ ρ i , t , s denotes the change in electricity price before and after DR implementation; P i , t , s load and P i , t , s cur represent the load before and after DR implementation; ρ i , t , s and ρ i , t , s cur represent the electricity price before and after DR implementation; ρ peak , ρ valley , ρ flat and T peak , T valley , T flat denote the time-of-use electricity prices and their corresponding time period sets; ρ i , t , s cur , min and ρ i , t , s cur , max denote the lower and upper limits of the electricity price after DR implementation; T is the total number of divided time intervals.

2.5.2. Incentive-Based Demand Response

Incentive-based demand response achieves load pattern optimization through contractual economic incentives [31]. Its operational framework consists of three key stages: first, establishing rights and obligations via bilateral agreements; second, executing predetermined load control schemes under abnormal operating conditions; and third, implementing differentiated economic settlements based on performance, including positive incentives and penalties for non-compliance. Typical implementation modes include direct load control, interruptible load management, and demand-side bidding. This market-oriented response model significantly increases user participation through diversified incentives, providing essential support for the secure operation of the power system. The incentive-based demand response is described by the following equations:
0 y i , t , s cut P i , t , s cut P i cut , max t [ t cut , start , t cut , end ] t = 1 N t y i , t , s cut = t cut , max t [ t cut , start , t cut , end ] 0 y i , t , s train P i , t , s train P i train , max t [ t train , start , t train , end ] 0 y i , t , s traout P i , t , s traout P i traout , max t [ t traout , start , t traout , end ] t = 1 N t y i , t , s train P i , t , s train Δ t = t = 1 N t y i , t , s traout P i , t , s traout Δ t 0 y i , t , s train + y i , t , s traout 1
where i denotes the bus number where demand response is applied; N t denotes one demand response cycle period; P i , t , s cut and P i cut , max represent the reducible load amount and its maximum limit; P i , t , s train , P i , t , s traout , P i train , max and P i traout , max denote the amounts of shiftable load transferred in and out, and their respective maximum values; y i , t , s cut is a binary variable indicating whether the reducible load is reduced; y i , t , s train and P i , t , s traout are binary variables indicating whether the shiftable load is transferred in or out; t cut , start and t cut , end represent the start and end times of load reduction; t train , start , t train , end , t traout , start and t traout , end represent the start and end times for load shifting in and out, respectively; t cut , max denotes the maximum duration of load reduction.

2.6. Energy Storage System Model

An ESS can perform peak shaving, valley filling, and load smoothing. It also enhances system operational stability, adjusts frequency, and compensates for load fluctuations [32]. In particular, the integration of storage technology and renewable energy can significantly increase the utilization efficiency of renewables. With the continuous rise in renewable energy penetration, the growing complexity of power systems, and the increasing demand for flexibility, the flexibility contribution of storage will become even more prominent, providing crucial support for developing an efficient, low-carbon, and intelligent modern power system. The ESS model is described by the following equations:
0 P i , t , s ch β i , t , s ch P i ch , max 0 P i , t , s dis β i , t , s dis P i dis , max 0 β i , t , s ch + β i , t , s dis 1 E i , t , s ESS = E i , t 1 , s ESS + η i ch P i , t , s ch P i , t , s dis η i dis E i ESS , min E i , t , s ESS E i ESS , max S O C i , t , s ESS = E i , t , s ESS / E i ESS S O C i ESS , min S O C i , t , s ESS S O C i ESS , max E i , 0 , s ESS = E i ESS S O C i , 0 , s ESS
where i denotes the distribution network bus where the ESS is connected; P i , t , s ch and P i , t , s dis represent the charging and discharging power; P i ch , max and P i dis , max represent the maximum charging and discharging power; β i , t , s ch and β i , t , s dis are binary variables indicating the charging and discharging states; η i ch and η i dis denote the charging and discharging efficiencies; E i , t , s ESS , E i ESS , min and E i ESS , max represent the storage energy level and its lower and upper limits; S O C i , t , s ESS , S O C i ESS , min and S O C i ESS , max denote the state of charge and its lower and upper limits; E i , 0 , t ESS and S O C i , 0 , t ESS represent the initial energy level and the initial state of charge.

3. Planning Method for Power System Flexibility Resources Considering Network Reconfiguration and Fault Risk

Distribution network reconfiguration optimizes power system operation by adjusting the network topology, modifying switch states, and redistributing loads. Its primary objectives are to reduce network losses, enhance supply reliability, improve voltage quality, and balance load distribution, thereby prolonging equipment lifespan and boosting overall system efficiency.
In terms of flexibility, network reconfiguration enables rapid adaptation to load fluctuations and the uncertainties inherent in renewable energy sources. By optimizing the topological configuration, it mitigates the impact of distributed energy resources on the grid. Particularly during faults, it can rapidly isolate faulted sections and restore power supply, significantly enhancing the system’s disturbance resistance and recovery capability. Additionally, reconfiguration helps balance load distribution, prevent local overloading, and optimize resource allocation, thereby further improving the grid’s operational flexibility and stability. Consequently, distribution network reconfiguration is not only an essential means to enhance system economy and reliability but also a key technology for strengthening grid flexibility and meeting the diverse demands of future power systems. While the unit models developed in Section 2 focus on flexibility resource characteristics, this chapter integrates network reconfiguration to optimize system operation under both normal and fault conditions, achieving a more effective allocation of flexibility resources.

3.1. Virtual Network Coupling-Based Reconfiguration

Based on graph theory, the topology of a distribution network can be represented as an undirected graph G = (V,E), where the bus set V corresponds to electrical buses and the edge set E defines the branch connections [33]. A branch fault can cause the undirected graph to split into multiple independent connected subgraphs, known as “islands.” An island is an independent connected region formed by mutually connected buses, and the number of islands indicates the extent of network partitioning. Specifically, an “islanded microgrid” refers to a subnet that remains internally connected after being disconnected from the main grid. When distributed generation exists within an islanded region, it can sustain the supply of critical loads through an off-grid operating mode. In extreme cases, if a bus loses all its adjacent connections, it becomes an isolated bus, representing the minimal connected unit in a separated power network topology. Figure 1 illustrates the undirected graph of a distribution network and its subgraphs.
A fundamental constraint in distribution network topology reconfiguration optimization is maintaining the radial operational characteristic. Common radial constraint models for distribution networks, such as the “L-1” condition, the spanning tree model, and the virtual network model, must satisfy the following topological conditions:
  • The network topology must not contain closed loops.
  • All buses must remain connected to the power source.
These constraints ensure that when the network is divided into multiple connected subgraphs, each subgraph still forms a tree structure connected to the power source, thereby providing independent power supply capability and eliminating the risk of unintended islanding.
This study employs a virtual network coupling modeling method, wherein a virtual topological network is constructed to be isomorphic to the actual power grid. Virtual load parameters (source bus = 0, load bus = 1) are used to define the network connectivity criteria, and the Big-M method is applied to transform nonlinear constraints into a mixed-integer linear form. Synchronization between the virtual and actual network topologies is ensured through binary branch state variables, which embed the actual network connectivity requirements within the optimization model while reducing the computational dimension and complexity compared to traditional approaches. The connectivity constraint of the virtual network model is expressed as follows:
y i , t , s j Θ i H j i , t , s j ψ i H i j , t , s M ( 1 y i , t , s ) y i , t , s
M α i j , t , s H i j , t , s M α i j , t , s
where y i , t , s is a 0/1 variable representing the bus type: when y i , t , s = 0 , bus i is a source bus at time t; otherwise, y i , t , s = 1 indicates a load bus. H i j , t , s denotes the power transferred from bus; ψ i and Θ i are the sets of upstream and downstream branch buses associated with bus, respectively; M is a sufficiently large number, equal to the maximum branch transmission capacity in the network. Furthermore, since each load bus outputs a unit value, the maximum output of a source bus in a system with N buses can be set to N, thus M = N . (9) defines the branch transmission capacity constraint in the virtual network model: when α i j , t , s = 1 , indicating that branch ij is connected, the power transferred from bus i to bus j, H i j , t , s is bounded within ±N. Conversely, when α i j , t , s = 0 , meaning that branch ij is disconnected, the power transfer H i j , t , s is zero. Via employing the large number M to limit the branch transmission capacity within the virtual network while coupling the virtual and actual network topologies through the branch connection state α i j , t , s .
To elaborate on the implementation of the virtual network coupling method, we clarify that the virtual power flow variable H i j , t , s represents the directional flow of a unit virtual load, which propagates from source buses (assigned value 0) to load buses (assigned value 1) in the virtual network. The binary variable α i j , t , s = 0 indicates whether branch ij is active. When α i j , t , s = 1 , the corresponding virtual power flow H i j , t , s is allowed within the upper and lower bounds defined by the Big-M formulation. This coupling ensures that power can only propagate through connected branches, thereby enforcing topological connectivity.
Furthermore, the radial operation constraint is guaranteed by ensuring that each connected island contains exactly one source bus and forms a tree-like structure. This is implemented by constraining the number of connected components (islands) to equal the number of source buses, and by avoiding the formation of cycles in the virtual network. These logical conditions, embedded in the virtual network topology, enable a tractable and linearizable way to enforce radial operation without the need for complex combinatorial cycle elimination constraints.
In a radial distribution network topology, when the system operates under steady-state conditions with a single-source supply configuration, the number of islands is strictly equal to the number of source buses in the system.
i j = 1 N B α i j , t , s = N N S
where N , N B and N S represent the number of buses, branches, and source buses in the distribution network, respectively.
Given that the unit models in this study focus on flexibility resources and network reconfiguration, multi-resource integration leads to dynamic changes in the number of islands due to network topology reconfiguration. Therefore, the partitioning mechanism of the source bus set must be redefined to satisfy the radial constraint. Specifically, the system’s source bus set Ω S is divided into a fixed source bus set Ω SUB (main grid substation buses) and a variable source bus set Ω DG (distributed generation buses). Substation buses serve as the system’s fixed sources, while distributed generation buses switch their status between grid-connected and islanded operation modes. Through the optimization process, these buses are modeled either as source buses or as equivalent load buses. It is assumed that each island contains exactly one source bus, ensuring that the number of islands matches the number of source buses. Therefore, the number of system islands is strictly equivalent to the number of activated source buses. Accordingly, the radial logic constraint of the virtual network model can be expressed as:
i j = 1 N B α i j , t , s = N i Ω S ( 1 y i , t , s )
y i , t , s = 0 , i Ω SUB y i , t , s 0 , i Ω DG y i , t , s = 1 , i Ω S
In addition, to mitigate the switching losses caused by excessively frequent reconfiguration, Equation (13) imposes a limit on the number of times a switch can be reconfigured:
t = 2 T α i j , t , s α i j , t 1 , s + α i j , 1 , s α i j , 0 , s N i j cg
where α i j , 0 , s represents the initial state of branch ij, and N i j cg denotes the maximum allowable number of reconfigurations for branch ij.
Furthermore, for branches equipped with a SOP, it is necessary to ensure that network reconfiguration does not compromise the SOP’s power flow regulation function. Accordingly, the following additional constraint is imposed:
α i j SOP + α i j , t , s 1
where α i j SOP is a binary variable indicating whether branch ij is equipped with an SOP.

3.2. CVaR-Based Fault Risk Quantification and Planning

To quantitatively analyze the impact of faults induced by extreme weather on the investment decisions of distribution networks, it is necessary to adopt an appropriate method to measure the associated risks [34]. CVaR, as a risk measure for evaluating potential losses under extreme conditions, has gradually become an important paradigm in risk measurement due to its advantages and practical value in risk management. Compared with the traditional VaR, CVaR not only characterizes the maximum potential loss threshold at a specified confidence level but also quantifies the conditional expected loss exceeding this threshold [35], thereby providing a comprehensive characterization of the tail risk distribution. Therefore, it is more suitable for assessing extreme risks.
C CVaR , β = 1 1 β f ( x , y ) C VaR , β ( x ) f ( x , y ) ρ ( y ) d y
where, β denotes the confidence level; C CVaR , β is the Conditional Value at Risk; C VaR , β ( x ) is the Value at Risk; f ( x , y ) represents the loss function; x denotes the decision variables and y the random variables; and ρ ( y ) is the probability density function of y.
Since the analytical expression of C VaR , β ( x ) is difficult to obtain directly, a transformation function F β ( x , α ) derived to compute CVaR as follows [36]:
F β ( x , α ) = α + 1 1 β ( max f ( x , y ) α , 0 ) ρ ( y ) d y
where, α represents the VaR value.
Furthermore, the transformation function F β ( x , α ) can be estimated using the following estimator:
F ˜ β ( x , α ) = α + 1 q ( 1 β ) k = 1 q ( max f ( x , y k ) α , 0 )
C CVaR , β = min F ˜ β ( x , α )
where y k denotes the k-th realization of the random failure variable y, and C CVaR , β represents the final estimated value.
In this chapter, the CVaR theory is incorporated into a coordinated planning framework for diverse flexibility resources. The upper-level problem addresses the planning of multiple flexibility resources in a distribution network, aiming to minimize the annual investment and operation costs by optimizing the siting and sizing of resources such as ESSs, SOPs, and MTs. The configuration scheme determined at the planning stage is then provided as input to the lower-level problem within the framework. The lower-level problem formulates the optimal operation of the distribution network. It coordinates demand response, ESS charging and discharging, and the dispatch of MTs and SOPs to derive an optimal operation strategy across multiple representative scenarios. This strategy enhances economic efficiency, ensures system security, reduces wind and photovoltaic curtailment, and lowers both carbon emissions and network losses. The resulting optimal operation strategy is subsequently fed back to the upper-level problem. This iterative process continues until an equilibrium solution is reached.
The framework of the bi-level planning model is illustrated in Figure 2. Specifically, the planning layer quantifies the operational scheduling risk posed by extreme weather by minimizing the total investment and operation costs of MTs, ESSs, and SOPs along with the CVaR of the operational costs, thereby fully accounting for its impact on planning outcomes. At the operation layer, multiple uncertainties—such as source-load output fluctuations, line faults, and equipment failures—are addressed by coordinating measures including network reconfiguration, demand-side response, and ESS charge-discharge operations, ensuring alignment with the upper-level planning decisions.
  • Planning Layer
The planning layer addresses the optimal siting and sizing of MTs, SOPs, and ESSs within the distribution network. The objective is to minimize the sum of their equivalent annualized planning costs and the CVaR of the operation and maintenance costs, as expressed below:
C 1 = min { C MT , inv + C ESS , inv + C SOP , inv + N D ( C 2 + L C CVaR ) }
where C 1 denotes the annual overall economic index, comprising the equivalent annual planning costs of MTs ( C MT , inv ), ESSs ( C ESS , inv ) and SOP ( C SOP , inv ), together with the objective function value of the operation layer ( C 2 )
C MT , inv = r ( 1 + r ) y MT ( 1 + r ) y MT 1 i Ω MT c MT , inv P i MT C ESS , inv = r ( 1 + r ) y ESS ( 1 + r ) y ESS 1 i Ω ESS c ESS , inv E i ESS C SOP , inv = r ( 1 + r ) y SOP ( 1 + r ) y SOP 1 i j Ω SOP c SOP , inv S i j SOP
where r represents the discount rate; y MT , y ESS and y SOP denote the service lifespans of the MTs, ESSs, and SOPs, respectively. Ω MT , Ω ESS and Ω SOP denote the sets of installation sites for each type of resource. c MT , inv , c ESS , inv , c SOP , inv along with P i MT , E i ESS and S i j SOP indicate the unit capacity investment costs and the installed capacities of MTs, ESSs, and SOPs, respectively.
In Equation (19) C CVaR represents the CVaR of the daily integrated operation and maintenance costs of the distribution network. The risk preference coefficient L reflects the investor’s degree of risk aversion: a higher L indicates stronger risk aversion, implying that the investor is more likely to increase investments to enhance the resilience of the distribution network and mitigate risks caused by extreme weather, thereby avoiding potential losses. In contrast, a lower L suggests greater risk tolerance, indicating a willingness to accept higher risks in exchange for reduced investment. In this paper, the confidence level β is set to 0.95, which is a commonly adopted standard in risk management for power systems. This value reflects a balanced trade-off between risk conservatism and investment economy, as it captures the most critical 5% of tail events while maintaining computational tractability. The calculation of C CVaR is defined as follows:
C CVaR = min ( C VaR + 1 1 β s = 1 S * p s Z s ) s . t . Z s 0 Z s C O & M s C VaR C O & M s = C MT , ope s + C ESS , ope s + C SOP , ope s + C netloss s + C soploss s + C cur s + C buy s + C C O 2 s + C loadloss s + C switch s
Resource allocation must comply with capacity and quantity constraints for the planned units, formulated as follows:
0 P i M T P i M T , max 0 E i E S S E i E S S , max 0 S i j S O P S i j S O P , max
P i M T = m i M T p i M T E i E S S = m i E S S e i E S S S i j S O P = m i S O P s i j S O P
where P i MT , max , E i ESS , max and S i j SOP , max denote the maximum installable capacities of MTs, ESSs, and SOPs at the selected sites, respectively. m i M T , m i E S S and m i S O P indicate the maximum allowable number of MTs, ESSs, and SOPs at the selected sites, which must be non-negative integers. p i M T , e i E S S and s i j S O P represent the unit installation capacities of MTs, ESSs, and SOPs at the corresponding sites.
2.
Operation Layer
The objective function of the operation layer seeks to minimize the expected total operation and maintenance costs across all representative scenarios while accounting for fault risks. The operation and maintenance costs under each scenario comprise the operation and maintenance expenses of MTs, ESSs, and SOPs; network losses and SOP losses; wind and PV curtailment penalties; carbon emission costs; and, additionally, the loss-of-load penalties and switch operation costs newly incorporated in this study. The operation layer objective function is defined in Equation (24):
C 2 = min { C MT , ope + C ESS , ope + C SOP , ope + C netloss + C soploss + C cur + C buy + C C O 2 + C loadloss + C switch }
where C 2 denotes the economic performance index of the operation layer, comprising the operation and maintenance costs of MTs ( C MT , ope ), ESSs ( C ESS , ope ) and SOPs ( C SOP , ope ); network loss cost ( C netloss ), SOP loss cost ( C soploss ), wind and PV curtailment penalty cost ( C cur ), power purchase cost ( C buy ), and carbon trading cost ( C C O 2 ).
C MT , ope = s = 1 S p s t = 1 T i Ω MT c MT , ope P i , t , s MT C ESS , ope = s = 1 S p s t = 1 T i Ω ESS c ESS , ope ( P i , t , s ch + P i , t , s dis ) C SOP , ope = i j Ω SOP c SOP , ope S i j SOP C netloss = s = 1 S p s t = 1 T i j Ω L c netloss r i j I i j , t , s 2 C soploss = s = 1 S p s t = 1 T i j Ω SOP c soploss P i j , t , s soploss C cur = s = 1 S p s t = 1 T ( i Ω PV c cur , pv P i , t , s pv , cur + i Ω WIND c cur , wind P i , t , s wind , cur ) C cur = s = 1 S p s t = 1 T ( i Ω PV c cur , pv P i , t , s pv , cur + i Ω WIND c cur , wind P i , t , s wind , cur ) C buy = s = 1 S p s t = 1 T i Ω SUB ρ t P i , t , s buy C C O 2 = s = 1 S p s t = 1 T c C O 2 ( i Ω SUB κ 1 P i , t , s buy + i Ω MT κ 2 P i , t , s MT ) C loadloss = s = 1 S * p s t = 1 T ( c loadloss I i Ω N I P i , t , s loadloss + c loadloss II i Ω N II P i , t , s loadloss + c loadloss III i Ω N III P i , t , s loadloss ) C switch = s = 1 S * p s ( ( t = 2 T i j Ω L c switch ( α i j , t , s α i j , t 1 , s ) + i j Ω L α i j , 1 , s α i j , 0 , s )
where, S and T denote the sets of scenarios and time periods; p s is the probability of scenario s; c MT , ope and c ESS , ope are the unit operation and maintenance cost coefficients for MTs and ESSs, while the investment cost of ESS is annualized based on its service lifespan, the degradation-related operational costs are not explicitly modeled in this study. Future work will incorporate lifecycle-aware cost modeling, including battery degradation and replacement; c SOP , ope is the annual operation and maintenance cost coefficient for SOPs; c netloss and c soploss are the unit cost coefficients for network losses and SOP losses; c cur , pv and c cur , wind are the unit penalty coefficients for wind and PV curtailment; ρ t is the time-of-use electricity price; and c C O 2 is the unit cost for carbon emission treatment. κ 1 and κ 2 represent the indirect unit carbon emission factor for purchased electricity and the direct unit carbon emission factor for MTs; C loadloss denotes the loss-of-load penalty under scenario s and C switch denotes the switch operation cost under scenario s; Ω N I , Ω N II and Ω N III are the sets of buses for first-class, second-class and third-class loads, respectively; c loadloss I , c loadloss II and c loadloss III are the corresponding unit loss-of-load penalty coefficients; P i , t , s loadloss represents the amount of load loss; and c switch is the unit cost for a single switch operation.
In the operation of a distribution network system, fundamental power flow constraints must be satisfied. To ensure the rationality and effectiveness of coordinated optimal scheduling, the operational states of various active and reactive power control devices must also be comprehensively considered. This study primarily accounts for the distribution network’s power flow constraints, the operational constraints of PV and wind power units, MTs, SOPs, and ESSs, as well as demand response constraints and constraints related to active and reactive control devices such as OLTCs and CBs. In addition, carbon emissions and wind and PV curtailment are thoroughly addressed. By optimizing system operation strategies to reduce carbon emissions and curtailment, the system’s economic performance can be improved while significantly enhancing its environmental benefits.
Within the operation layer constraints, it is further necessary to incorporate branch power flow constraints resulting from network reconfiguration. By introducing binary variables to indicate whether each branch is connected or disconnected, an extended DistFlow model suitable for dynamic reconfiguration is formulated, as shown in Equations (26)–(29):
P i , t , s = j = F ( i ) α i j , t , s P i j , t , s k = T ( i ) α k i , t , s ( P k i , t , s l k i , t , s r k i )
Q i , t , s = j = F ( i ) α i j , t , s Q i j , t , s k = T ( i ) α i j , t , s ( Q k i , t , s l k i , t , s x k i )
v i , t , s v j , t , s = 2 ( P i j , t , s r i j + Q i j , t , s x i j ) ( r i j 2 + x i j 2 ) l i j , t , s , α i j , t , s = 1
P i j , t , s 2 + Q i j , t , s 2 = l i j , t , s v i , t , s , α i j , t , s = 1
where, P i , t , s and Q i , t , s denote the active and reactive power injections at bus i; F(i) represents the set of downstream buses connected by branches originating from bus i; T(i) represents the set of upstream buses connected by branches ending at bus i; P i j , t , s and Q i j , t , s denote the active and reactive power flows on branch i-j from bus i to bus j; l k i , t , s is the square of the current magnitude on branch k-i; r i j and x i j denote the resistance and reactance of branch k-i; and v i , t , s represents the square of the voltage magnitude at bus i.
Furthermore, bus voltages in the distribution network must satisfy specified upper and lower bounds, and, due to line transmission capacity limits, branch currents must also remain within allowable ranges:
v i min v i , t , s v i max
l i j , t , s l i j max
where, v i max and v i min denote the maximum and minimum voltage magnitudes at bus i, and l i j max indicates the maximum allowable current through branch ij.
Since Equations (28) and (29) are applicable only to closed branches, this paper introduces large constants M 1 , M 2 and M 3 to derive Equation (32), which ensures that when a branch is open, the branch current, active power, and reactive power are all zero. Accordingly, Equations (33)–(36) are obtained:
α i j , t , s M 1 P i j , t , s α i j , t , s M 1 α i j , t , s M 2 Q i j , t , s α i j , t , s M 2 α i j , t , s M 3 l i j , t , s α i j , t , s M 3
P i , t , s = j = F ( i ) P i j , t , s k = T ( i ) ( P k i , t , s l k i , t , s r k i )
Q i , t , s = j = F ( i ) Q i j , t , s k = T ( i ) ( Q k i , t , s l k i , t , s x k i )
v i , t , s v j , t , s = 2 ( P i j , t , s r i j + Q i j , t , s x i j ) ( r i j 2 + x i j 2 ) l i j , t , s , α i j , t , s = 1
P i j , t , s 2 + Q i j , t , s 2 = l i j , t , s v i , t , s
When α i j , t , s = 0 , both sides of Equation (36) become zero, so the constraint remains valid. Therefore, Equation (36) is no longer restricted to closed branches and can be rewritten as (37):
2 P i j , t , s 2 Q i j , t , s l i j , t , s v i , t , s 2 l i j , t , s + v i , t , s
However, Equation (35) still applies only when the branch is closed and cannot be satisfied for an open branch. Since α i j , t , s is a binary variable, Equation (35) remains nonlinear. To overcome this limitation, a virtual voltage v i , t , s i j is introduced for branch ij connected to bus i, defined as follows:
0 v i , t , s i j α i j , t , s M 4
( 1 α i j , t , s ) + v i , t , s v i , t , s i j v i , t , s
where, M 4 is a large constant. Equations (38) and (39) indicate that when the branch is closed ( α i j , t , s = 1 ), the virtual voltage on branch ij equals the terminal voltage; when the branch is open ( α i j , t , s = 0 ), the virtual voltage on branch ij equals zero. Consequently, Equation (35) can be linearized and expressed as:
v i , t , s i j v j , t , s i j = 2 ( P i j , t , s r i j + Q i j , t , s x i j ) ( r i j 2 + x i j 2 ) l i j , t , s
In a distribution network with high renewable energy penetration, the operational constraints for PV and wind power generation are formulated as follows:
0 P i , t , s pv τ i , t , s pv P i pv ( i Ω PV )
0 P i , t , s wind τ i , t , s wind P i wind ( i Ω WIND )
Q i , t , s pv = P i , t , s pv tan φ i pv ( i Ω PV )
Q i , t , s wind = P i , t , s wind tan φ i wind ( i Ω WIND )
P i , t , s pv , cur = τ i , t , s pv P i pv P i , t , s pv ( i Ω PV )
P i , t , s wind , cur = τ i , t , s wind P i wind P i , t , s wind ( i Ω WIND )
where τ i , t , s pv and τ i , t , s wind denote the output coefficients for PV and wind power, respectively; P i pv and P i wind are the installed capacities of PV and wind power; φ i pv and φ i wind are the power factor angles of PV and wind power; P i , t , s pv , cur and P i , t , s wind , cur represent the curtailed power of PV and wind power. The operational constraints for various flexible resources in the distribution network, including MTs, ESSs, SOP, demand response, OLTC, and CB, remain consistent with the descriptions provided in Section 2. Finally, the power balance constraint is given by:
P i , t , s = i Ω PV P i , t , s pv + i Ω WIND P i , t , s wind + i Ω MT P i , t , s MT + i j Ω SOP ( P i , t , s SOP + P i , t , s soploss ) + i Ω ESS ( P i , t , s dis P i , t , s ch ) + i Ω SUB P i , t , s buy P i , t , s cur
Q i , t , s = i Ω PV Q i , t , s pv + i Ω WIND Q i , t , s wind + i j Ω SOP Q i , t , s SOP + i Ω CB Q i , t , s CB Q i , t , s cur
where, P i , t , s cur denotes the load after demand response, and Q i , t , s CB denotes the reactive power compensation capacity provided by CBs.

4. Model Solution

The bi-level planning model developed in this study employs an iterative solution strategy. Although exact solution methods such as Benders decomposition are commonly used for bi-level optimization problems [37], their applicability in this study is limited by the complex combinatorial nature of the upper-level problem, which includes multiple integer decision variables related to the siting, sizing, and topology configuration of flexibility resources. These characteristics introduce significant non-convexities and hinder the convergence performance of decomposition-based algorithms, especially for large-scale distribution networks [38]. In contrast, the proposed hybrid SA-PSO algorithm strikes a balance between computational efficiency and solution quality. It effectively handles high-dimensional, non-convex, and mixed-integer search spaces while maintaining robust global search capabilities. Therefore, SA-PSO is selected for the upper-level planning problem, while the lower-level convex operational subproblem is solved exactly via conic programming to ensure optimality within each scenario.
In the upper-level model, the siting and sizing of MTs, ESSs, and SOP are determined using a SA-PSO hybrid algorithm, which provides an optimized configuration scheme and verifies its convergence. Based on the configuration scheme obtained from the upper level, the lower-level model performs multi-scenario operational optimization through conic programming, and the operating strategies for each scenario are fed back to the upper-level model to achieve coordinated optimization. By means of iterative interaction between the two levels, coordinated decision-making for both planning and operation is realized. The iterative process of the bi-level planning model is described in detail below, and its flowchart is presented in Figure 3.
Step 1: Initialize the parameters by inputting the distribution network data and distributed generation parameters. Initialize the parameters of the SA-PSO algorithm by generating the initial positions and velocities of the particle swarm and setting the initial temperature and cooling rate. Set the iteration count to k = 0.
Step 2: Generate representative source-load joint time-series scenarios, these scenarios serve as inputs for the lower-level model.
Step 3: At the current temperature, input the particles into the lower-level model, which is relaxed using second-order cone programming (SOCP). According to the objective function and constraints, solve for the optimal operational strategy for each scenario.
Step 4: Based on the output data from the lower-level model and the current temperature, calculate the fitness value of each particle.
Step 5: Update each particle’s individual best solution and the current global best solution.
Step 6: Update the velocity and position of each particle according to the rules of the particle swarm optimization algorithm.
Step 7: Calculate the fitness of the particle swarm at the new positions f x i k + 1 , y i k + 1 and determine the acceptance probability P under the current temperature. If the fitness difference f x i k + 1 , y i k + 1 < f x i k , y i k , the new position is accepted; if f x i k + 1 , y i k + 1 f x i k , y i k , the new position is accepted with probability P.
Step 8: Reduce the temperature according to the cooling schedule and increment the iteration count, k = k + 1.
Step 9: If the convergence criterion is met, output the final optimal result; otherwise, repeat Steps 3 to 8 until convergence is achieved.
Algorithm 1 illustrates the SA–PSO hybrid algorithm designed to solve the bi-level flexibility resource planning problem. It initializes particle positions and velocities, evaluates fitness by embedding the lower-level SOCP model, and updates positions using PSO rules. A simulated annealing mechanism is integrated to enhance global search capability. The process iterates until convergence, yielding the optimal siting and sizing of MTs, ESSs, and SOPs.
Algorithm 1: SA-PSO for Solving the Bi-Level Flexibility Resource Planning Model
Input:
    -
Population size N
    -
Maximum iterations MaxIter
    -
Initial temperature T0, cooling rate α
    -
Particle positions and velocities initialization
    -
Lower-level problem model (solved via conic programming)
Output:
    -
Optimal siting and sizing of MTs, ESSs, SOPs
1: Initialize particle positions x i , velocities v i , personal best p b e s t i , and global best g b e s t
2: Set current temperature T T 0 , iteration k 0
3: while k < MaxIter do
4:    for each particle i = 1 to N do
5:       Input current particle x i into the lower-level model
6:       Solve lower-level operation problem via SOCP to get cost f
7:       Evaluate fitness of particle i using upper-level objective
8:       Update p b e s t i and g b e s t if needed
9:    end for
10:    for each particle i = 1 to N do
11:      Update velocity v i using PSO update rule
12:      Update position x i + 1 x i + v i
13:      Calculate Δ f = f n e w f o l d
14:      if Δ f 0 then
15:         Accept new solution
16:      else
17:         Accept with probability P = exp ( Δ F / T )
18:      end if
19:    end for
20:     T α × T //Simulated annealing cooling
21:     k k + 1
22: end while
23: Return optimal solution g b e s t

5. Case Study

5.1. Parameter Settings

In this chapter, simulation analyses are conducted using an improved IEEE 33-bus distribution network. The topology of the IEEE 33-bus system is illustrated in Figure 4, with a nominal voltage level of 12.66 kV.
To thoroughly evaluate the impacts of distributed generation integration, the system is configured with three wind turbine generators and three PV systems. The basic parameters of these units are provided in Table 2. To generate representative source–load time-series scenarios, historical wind speed, solar irradiance, and load data are first analyzed. The marginal distributions of wind speed, solar irradiance, and load demand are modeled using the Weibull, Beta, and Gaussian distributions, respectively, with parameters estimated via the maximum likelihood method. A joint probability distribution is then constructed by coupling these marginal distributions using a Copula function, capturing the dependency among the variables. Based on this joint distribution, a large number of correlated source–load time series are generated through Monte Carlo sampling. Subsequently, K-means clustering is applied to group the generated scenarios based on normalized hourly output profiles, and representative scenarios are selected for further analysis. The resulting representative scenarios are illustrated in Figure 5.
The goal of the bi-level planning model is to determine the optimal siting and sizing of three MTs, three ESSs, and two SOPs. The candidate buses for MT placement are {5, 10, 16, 18, 28}, while the candidate buses for ESS installation are {7, 9, 17, 22, 25, 32}. Considering geographical constraints, the candidate positions for SOPs are located at tie switches (marked by red dashed lines). Each MT has a planning capacity of 100 kW, each ESS has a planning capacity of 100 kWh, and each SOP has a planning capacity of 100 kVA. A capacitor bank with switchable units is installed at bus 33, with each unit providing 0.15 MVar of reactive power compensation and up to five units connectable in parallel. An OLTC is installed at bus 1, with a voltage regulation range of ±8 × 1.25%.
The system employs a time-of-use electricity pricing scheme for purchasing electricity from the upstream grid: peak periods are defined as 12:00–15:00 and 19:00–23:00; normal periods as 07:00–11:00 and 16:00–18:00; and off-peak periods as 00:00–06:00.
In the solution process of the bi-level planning model for this case study, the upper-level SA-PSO hybrid optimization algorithm is implemented using MATLAB scripts, while the lower-level model is solved through the cone programming solver Mosek 10.0, accessed via the YALMIP toolbox in MATLAB R2020b.
Furthermore, the loads at the buses are classified into three categories: First-class load buses include buses 13, 15, 21, 24, and 31, with a unit load shedding penalty of 5 CNY/kWh; Second-class load buses include buses 8, 12, 25, 27, and 33, with a unit load shedding penalty of 3 CNY/kWh; and all other buses are designated as Third-class load buses, with a unit load shedding penalty of 2 CNY/kWh. The cost of each switching operation is set at 15 CNY per operation. In this study, a typhoon is selected as the representative extreme weather event affecting the operation of the distribution network. The typhoon’s impact area is illustrated by the blue striped region in Figure 4. Four fault scenarios are considered under typhoon conditions:
Fault Type 1: The typhoon causes the PV unit at bus 17 to disconnect.
Fault Type 2: The typhoon causes the wind turbine at bus 25 to disconnect.
Fault Type 3: The typhoon causes a single line fault on line 24–25.
Fault Type 4: The typhoon causes two simultaneous line faults on lines 12–13 and 6–26.
To ensure the practical solvability of the proposed bi-level planning model, the lower-level operational subproblem is solved using SOCP with the commercial solver MOSEK, accessed through the YALMIP toolbox in MATLAB R2020b. The solver is run with default tolerance settings, and a relative optimality gap of 1 × 10−4 is used to balance accuracy and computational speed.
For the upper-level SA–PSO algorithm, the population size is set to 50, and the maximum number of iterations is 500. The initial temperature for the simulated annealing process is 1000, with a cooling coefficient of 0.95. In the PSO component, the inertia weight linearly decreases from 0.9 to 0.4, and standard update rules are adopted for velocity and position adjustments.
All simulations are carried out on a desktop computer with an Intel Core i7-12700 CPU, 32 GB RAM, and Windows 11 (64-bit) operating system.

5.2. Impact Analysis of Coordinated Planning of Multiple Flexible Resources

To validate the effectiveness of coordinated planning for multiple flexible resources, four schemes are established for comparative analysis:
Scheme 1: Planning includes only micro gas turbines and energy storage systems; SOP planning and demand response are excluded.
Scheme 2: Planning includes micro gas turbines, energy storage systems, and demand response; SOP planning is excluded.
Scheme 3: Planning includes micro gas turbines, energy storage systems, and SOP; demand response is excluded.
Scheme 4: Planning includes micro gas turbines, energy storage systems, and SOP, along with demand response.
Table 3 and Table 4 present the configuration results and cost distributions for the different schemes, respectively. Firstly, a comparison of the annual total system costs reveals that Scheme 4, which comprehensively accounts for flexibility resources across generation, grid, load, and storage sectors, achieves the lowest system configuration cost. In contrast, Scheme 1, which considers flexibility only on the generation and storage sides, results in the highest configuration cost. Specifically, the total costs of Schemes 1–3 are 41.6%, 3.7%, and 33.4% higher than those of Scheme 4, respectively, demonstrating the advantages of coordinated planning of diverse flexibility resources. Furthermore, a comparison between Schemes 4 and Scheme 3 shows that Scheme 4 additionally incorporates demand response. This inclusion enables users to adjust their electricity demand rationally in response to appropriate incentives. When consumption behavior becomes more rational—by reducing demand during periods of insufficient supply capacity and increasing it when supply is adequate, thereby smoothing the load demand curve—the required capacities of resources such as MT, ESS, and SOP, as well as additional electricity purchase costs, are significantly reduced.
Next, a comparison between Scheme 4 and Scheme 2 shows that Scheme 4 additionally incorporates the SOP. The SOP is capable of rapid and continuous adjustment, serving to optimize power flows across distribution lines. The benefits of SOP adjustment manifest in two ways: first, it directly coordinates active power between ports, thereby reducing network loss costs resulting from long-distance power transmission; second, it indirectly contributes to reductions in the required capacity of MT and additional electricity purchase costs. Overall, SOP planning reduces the need for additional generation output and minimizes power transmission losses, effectively regulating power flow both at the source and along the transmission path.
Finally, comparing the total costs of Schemes 2–4 indicates that, relative to SOP, demand response yields a greater reduction in annual total cost. This is because demand response directly targets load demand, producing a more immediate effect: by adjusting load patterns, it fundamentally modifies the system’s electricity consumption intensity across both temporal and spatial dimensions. In contrast, the SOP primarily functions to optimize power flow and mitigate network losses, exerting a comparatively indirect influence; hence, its impact is less pronounced than that of demand response.
In conclusion, fully accounting for the coordinated planning of flexibility resources can significantly lower total system costs, further validating the effectiveness and superiority of multi-faceted flexibility resource coordination.

5.3. Analysis of System Operation Results Under Multiple Flexibility Resource Deployment

Furthermore, several representative scenarios are selected to analyze the system’s operational performance under the optimal configuration of multiple flexibility resources. The overall system load and various output sources are aggregated to evaluate the overall supply–demand balance.
Figure 6 shows the system operation results for Typical Scenario 1. During 01:00–07:00, when there is no photovoltaic generation, the system load is met by wind power and MT output. From 08:00–18:00, with sufficient wind and photovoltaic generation, the MT ceases operation. To mitigate penalties associated with curtailment of wind and solar power, the energy storage system charges during this period, while the SOP also operates to enable large-scale active power flow transfers. Between 19:00–24:00, as renewable output gradually decreases, the MT resumes operation, and the energy storage system discharges the electricity stored during the day to supply the high evening peak load. Owing to the coordinated operation of renewable energy, the MT, and the energy storage system, Typical Scenario 1 does not require additional electricity purchases to maintain the system’s supply–demand balance. As a result, the associated carbon emission costs and network losses are relatively low.
Figure 7 shows the system operation results for Typical Scenario 2. Compared with Typical Scenario 1, the average daily load in Typical Scenario 2 is higher. Although photovoltaic generation remains relatively high during the daytime, the significant reduction in wind power output means that during the nighttime period from 00:00 to 06:00, relying solely on MT output is insufficient to meet demand. Therefore, additional electricity purchases are required to maintain the supply–demand balance. Moreover, because the MT operates at a high output level throughout the entire day, the system’s carbon emission costs and network losses are relatively higher.
Figure 8 shows the system operation results for Typical Scenario 3. Compared with Typical Scenarios 1 and 2, the load in Typical Scenario 3 becomes significantly smoother due to the implementation of demand response. However, owing to low renewable generation levels and the limited ramping capability of the MT, additional electricity still needs to be purchased from external sources at 01:00 during the night to maintain balance. The MT ma in slightly increased carbon emission costs and network losses, although these remain much lower than those in Typical Scenario 2.
The associated carbon emission costs and network losses for all scenarios are summarized in Table 5.
To further analyze the peak-shaving and valley-filling effects of demand response and energy storage, Figure 9 illustrates the load curve changes after demand response regulation and energy storage charging/discharging actions. When the energy storage system charges, it acts as a load, shifting the corresponding points on the load curve upward; when discharging, it acts as a power source, shifting these points downward. As observed from the figure, the peak-valley difference significantly decreases under the effect of demand response, resulting in a smoother load curve. Moreover, when incorporating energy storage charging and discharging actions (blue curve) on top of the demand-response adjusted load curve (red curve), the peak-valley difference is further reduced.
The data presented in Table 6 provide a more intuitive perspective: the original load curve has a peak-valley difference of 2225 kW, corresponding to a peak-valley difference ratio as high as 74.5%. After considering demand response actions, the peak load decreases from the original 2988 kW to 2199 kW, a reduction of 26.4%. Simultaneously, the valley load increases accordingly, ultimately decreasing the peak-valley difference ratio by 14.9%. This highlights the prominent role of demand response in peak shaving and valley filling. Furthermore, after incorporating the influence of energy storage charging and discharging, the peak-valley difference and its corresponding ratio continue to decrease by an additional 270 kW and 5.6%, respectively. Considering the limited allocation of energy storage resources (only connected at three buses), it is foreseeable that a more widely distributed and abundant deployment of energy storage resources would yield even greater reductions in the system’s peak-valley difference.

5.4. Comparison of Planning Outcomes

The planning models based on risk neutrality and CVaR were solved separately, and the resulting configuration plans and costs for the two methods are presented in Table 7.
A comparative analysis shows that, compared with the conventional risk-neutral planning model, the CVaR-based model yields significantly larger capacities for various flexibility resources. Specifically, the total capacity of the ESS increases by 25.9%, the total MT capacity increases by 71.4%, and the total SOP capacity increases by 25%. This is because, although the operating cost under contingency scenarios is substantially higher than under normal conditions, the low probability of occurrence diminishes its impact on the annual overall planning cost. As a result, the risk-neutral model primarily satisfies normal operating conditions, leading to more risk-taking configurations and consequently larger losses under contingencies. By contrast, the CVaR-based model amplifies the influence of such low-probability, high-impact events, resulting in a more resilient configuration plan with correspondingly higher resource capacities and planning costs. Moreover, the increased capacity of flexibility resources provides greater regulation capability, which reduces excessive external electricity purchases and load shedding penalty costs during operation, thereby lowering the overall operating cost.
Additionally, Table 8 presents the distribution of system operating costs under several normal and contingency scenarios for both planning models. A comparison indicates that the CVaR-based planning model consistently reduces operating costs across all scenarios, with this effect being particularly pronounced in contingency conditions. Specifically, in typical scenarios, the incorporation of CVaR amplifies the influence of contingency scenarios on flexibility resource allocation. The resulting increase in resource investment lowers the previously high costs associated with electricity purchases and load shedding under the original risk-neutral planning model, reducing total costs by 36.1%, 15.4%, and 38.5%, respectively.
Fault Scenario 3 builds upon the generation and load profiles of Typical Scenario 3 by additionally considering a single line outage between buses 24 and 25. However, timely network reconfiguration optimizes the system topology, significantly mitigating the additional operational costs that could arise from the outage, resulting in similar cost distributions for both scenarios. In Typical Scenario 3, low wind and solar generation throughout the day combined with high load demand inevitably compel the system to rely on external electricity purchases and to shed some non-critical loads. Under the CVaR-based planning approach, however, the enhanced resource allocation further reduces these costs, leading to a lower overall operating cost.
Fault Scenarios 1, 2, and 4 involve, respectively, the disconnection of PV units, wind turbines, and multiple simultaneous line outages. Although these scenarios share the same generation and load profiles as Typical Scenario 3, the impacts of the faults are far more severe. Under the traditional risk-neutral planning model, the system’s limited regulation capability results in a sharp increase in load shedding and external electricity purchases, causing significant economic losses. In contrast, the configuration plan derived from the CVaR-based planning method substantially narrows the cost gap between contingency and normal operating conditions. This demonstrates that the proposed approach effectively mitigates the impact of contingencies on system operations and enhances overall system resilience.

5.5. Parameter Analysis of the CVaR Model

This study further investigates how the decision-maker’s risk attitude influences the planning of multiple flexibility resources by varying the risk preference coefficient L. The specific results are presented in Table 9. The findings show that as the value of L increases, the system’s total investment cost increases accordingly. This is because a higher L indicates a stronger risk-averse tendency. To ensure reliable power supply to critical loads under contingency conditions, risk-averse decision-making leads to larger capacities of flexibility resources such as energy storage systems and microturbines, thereby enhancing the system’s emergency backup capability.
As illustrated in Figure 10, a clear trade-off emerges between investment cost and annual total cost as the risk preference coefficient L increases. Initially, small increments in investment lead to noticeable reductions in annual total cost, reflecting high marginal benefit. However, beyond L = 1, further investment results in diminishing returns, as annual cost reduction plateaus while investment cost rises steeply. This trend highlights the importance of selecting an appropriate risk preference level to achieve cost-effective planning without overinvestment.
Figure 11 presents the efficient frontier between system investment cost and CVaR. When the decision-maker exhibits a risk-seeking tendency (i.e., a low L), the marginal investment cost required to improve system resilience remains relatively low, and the investment cost rises gradually as the risk level decreases. Conversely, when the decision-maker becomes more risk-averse (i.e., a high L), the investment cost required to achieve the same level of resilience improvement increases significantly, which is reflected in the steeper slope of the curve.

5.6. Performance Analysis of the Algorithm

This section compares the proposed method with conventional PSO, SA, and the GA. All algorithms adopt the same population size of 50 and a maximum of 500 iterations. For the SA-PSO algorithm, the initial temperature is set at 1000 with a cooling coefficient of 0.95; for the PSO algorithm, the inertia weight decreases linearly from 0.9 to 0.4; and for the GA, the crossover probability and mutation probability are set at 0.8 and 0.1, respectively.
As shown in Table 10, the SA-PSO algorithm achieves the best performance in terms of solution optimality, producing a minimum objective function value of 778,456 CNY, which represents improvements of 4.2%, 0.9%, and 5.8% over the PSO, SA, and GA algorithms, respectively. In terms of algorithm stability, the SA-PSO algorithm yields the smallest standard deviation (2156), indicating strong robustness. Although the PSO algorithm offers a slight advantage in computation time, the SA-PSO algorithm converges within just 152 generations, exhibiting a convergence rate significantly faster than those of the other algorithms.
As shown in Table 11, we tested the impact of different Big-M values on model performance. When M = N, 2 N, or 0.7 N, the model remains feasible with similar objective values and acceptable computation times. In contrast, setting M = 0.5 N leads to constraint violations and solution failure. These results confirm that M = N offers a good balance between feasibility and efficiency, and is thus adopted in this study.
To evaluate the scalability and computational efficiency of the proposed SA-PSO algorithm, additional experiments were conducted on distribution networks with varying bus sizes. As shown in Table 12, the network sizes range from 33 to 150 buses, and the corresponding objective values, average computation times, and convergence iterations are reported.
The results indicate that the SA-PSO algorithm maintains a good balance between solution quality and computational burden as the network size increases. Specifically, the objective function value grows proportionally with system complexity, while the computation time increases moderately, from 45.2 s for the 33-bus system to 265.4 s for the 150-bus system. Moreover, the number of iterations required for convergence increases steadily but remains within a reasonable range, demonstrating the algorithm’s stability and robustness under larger-scale scenarios.

5.7. Voltage Quality Analysis

The integration of photovoltaic and wind power in distribution networks increases the risk of voltage violations, making it difficult to maintain voltage quality. Therefore, this section analyzes the impact of coordinated operation of multiple flexibility resources on voltage quality. Figure 12 illustrates the voltage profiles under the same operating scenario for the four different configuration schemes.
Through a comparative analysis of the system voltage profiles under the same scenario, it can be observed that although the voltages of all schemes remain within the allowable range, the voltage fluctuations at critical buses and during peak load periods vary significantly in both amplitude and frequency. Scheme 1, which relies solely on the regulation effects of ESS, OLTC, and CB, exhibits relatively stable voltages at most buses, but some buses still show significant voltage fluctuations during periods of large supply-demand imbalance.
Scheme 2 and Scheme 3 further incorporate DR and SOP, respectively. DR adjusts power demand through dynamic load shifting, thereby improving the load balance and smoothing power flows to mitigate voltage variations. SOP enables fast and continuous power flow regulation, providing both active and reactive power support to enhance voltage levels. Compared with Scheme 1, both approaches effectively reduce the magnitude and frequency of voltage oscillations, thus improving overall voltage quality. Scheme 4, which integrates both DR and SOP, achieves the best performance. Most buses maintain voltage within an extremely narrow fluctuation range, indicating superior voltage quality.

6. Conclusions

This paper develops a comprehensive planning and stability enhancement strategy for distribution networks with high renewable energy penetration, emphasizing the coordinated deployment of diverse flexibility resources. By systematically modeling generation-side micro gas turbines, network-side smart soft open points and on-load tap changers, load-side demand response, and distributed energy storage systems, the proposed approach exploits multiple flexibility channels to mitigate renewable variability and enhance network operational resilience. To address uncertainties and extreme weather-induced faults, a risk-coupled network reconfiguration method based on CVaR is integrated within a bi-level planning model, ensuring an economic balance between investment and operational risks. The hybrid SA-PSO and conic programming solution enables tractable optimization for realistic system scales.
The following conclusions can be drawn from the case studies:
  • By introducing the virtual network coupling modeling method to handle topological constraints in network reconfiguration, the proposed approach significantly improves computational efficiency while ensuring radial operation requirements. This method effectively resolves the complexity challenges in traditional network reconfiguration modeling and provides rapid topology adjustment capabilities for fault isolation and power restoration, enhancing both the accuracy of topological decision-making and the overall system operational flexibility.
  • The proposed CVaR-based risk quantification framework offers a comprehensive approach to managing extreme weather uncertainties and fault risks by incorporating conditional value-at-risk into the bi-level optimization model. By tuning risk preference parameters, system planners can effectively balance investment costs and operational risks under uncertain conditions, improving system robustness and economic performance while enhancing the system’s resilience against extreme events.
  • The coordinated multi-type flexibility resource planning model significantly increases system operational efficiency and resilience. By integrating microturbines, energy storage systems, and soft open points through the bi-level optimization framework combined with the SA-PSO hybrid algorithm, the proposed method achieves superior overall benefits compared to single-resource configuration approaches, demonstrating substantial improvements in both system reliability and economic viability while contributing to the sustainable development of modern power systems.
To further improve the applicability of the proposed model, it is worth noting that while the current fault scenarios are representative of typical renewable energy disturbances, future work can extend the framework to incorporate more complex failure mechanisms, such as cascading outages and large-scale fault propagation. Additionally, future research may explore reinforcement learning or mixed-integer SOCP to further improve the model’s scalability and adaptability in complex operational environments.

Author Contributions

Conceptualization H.H.; writing-original draft, X.J. and Y.C.; methodology, Y.C.; writing—review and editing, X.J. and X.L.; supervision and investigation, S.L.; visualization, B.Y.; funding acquisition, H.H. All authors have read and agreed to the published version of the manuscript.

Funding

This work is supported in part by the Major Research Special Project on Science and Technology of Jiangxi Province (No. 20223AAE02011), and in part by the National Natural Science Foundation of China (No. 52307090).

Data Availability Statement

Data are contained within the article.

Conflicts of Interest

Author Xuanyao Luo and Sheng Liu were employed by Power China Jiangxi Electric Power Engineering CO., LTD. The remaining authors declare that the research was conducted in the absence of any commercial or financial relationships that could be construed as a potential conflict of interest.

Abbreviation

CVaRConditional Value-at-Risk P i , t , s train / P i , t , s traout Shiftable load transferred in and out
SA-PSOSimulated Annealing–Particle Swarm Optimization y i , t , s cut Whether load is reduced
PVPhotovoltaic y i , t , s train / y i , t , s trainout Whether load is shifted in/out
PSOParticle Swarm Optimization P i , t , s ch / P i , t , s dis Charging and discharging power
SASimulated Annealing β i , t , s ch / β i , t , s dis Binary about charging/discharging state
MTMicroturbine E i , t , s ESS Energy level of ESS
SOPSoft Open Point S O C i , t , s ESS State of charge of ESS
OLTCOn-Load Tap ChangerParameters
CBCapacitor Bank I S i M T Initial state of microturbine
DRDemand Response P i I S Initial output power of microturbine
VaRValue at Risk R U i / R D i Upward/Downward ramp rates
SOCPSecond-Order Cone Programming P i S U , m a x / P i S D , m a x Maximum upward/downward ramping power
ESSEnergy Storage System S i j SOP Converter capacity of the SOP
Indices A i SOP / A j SOP Loss coefficients of SOP converters
i/jIndex of distribution network bus μ i / μ j Absolute values of sine of power factor angles
tIndex of time r i j / x i j Resistance and reactance of branch ij
sIndex of scenario K i j max Maximum tap position of the OLTC
Variables Δ k OLTC Tap adjustment step size for OLTC
u i , t , s M T On/off status Q CB Reactive power compensation of a single capacitor unit
y i , t , s MT / z i , t , s MT microturbine start-up/shutdown N i CB , max Maximum number of capacitor units available at bus i
P i , t , s SOP / Q i , t , s SOP Active/reactive power injected by SOP ρ i , t , s cur , min / ρ i , t , s cur , max Time-of-use electricity prices
P i j , t , s soploss Active power loss of the SOP ρ peak ρ valley ρ flat Cooling load
P i j , t , s / Q i j , t , s Active and reactive power flow on branch ij T peak T valley T flat Time periods for TOU prices
V i , t , s Voltage magnitude at bus i N t DR cycle period
I i j , t , s Current on branch ij P i cut , max Maximum reducible load
K i j , t , s Tap position of OLTC at time t, scenario s P i train , max / P i traout , max Maximum load shift-in/out
Q i , t , s CB Reactive power compensation of CB at bus i t cut , start / t cut , end Start/end times of load reduction
N i , t , s CB Number of capacitor units switched in at bus i t train , start / t train , end Start/end times of load shift-in
Δ P i , t , s Change in demand after DR t traout , start / t traout , end Start/end times of load shift-out
Δ ρ i , t , s Change in electricity price after DR t cut , max Maximum reduction duration
P i , t , s load / P i , t , s cur Load before/after DR implementation P i ch , max / P i dis , max Max charging/discharging power
ρ i , t , s / ρ i , t , s cur Electricity price before/after DR η i ch / η i dis Charging/discharging efficiency
P i , t , s cut Reducible load amount E i ESS , min / E i ESS , max Min/max energy storage level

References

  1. Wan, Y.; Kober, T.; Schildhauer, T.; Schmidt, T.J.; McKenna, R.; Densing, M. Conditions for Profitable Operation of P2X Energy Hubs to Meet Local Demand with Energy Market Access. Adv. Appl. Energy 2023, 10, 100127. [Google Scholar] [CrossRef]
  2. Wei, Z.; Xu, H.; Chen, S.; Sun, G.; Zhou, Y. Learning-Aided Distributionally Robust Optimization of DC Distribution Network with Buildings to the Grid. Sustain. Cities Soc. 2024, 113, 105649. [Google Scholar] [CrossRef]
  3. Kumpalavalee, S.; Suwanasri, T.; Suwanasri, C.; Phadungthin, R. Risk Assessment Framework for Power Circuit Breakers Based on Condition, Replacement, and Criticality Indices. Energies 2025, 18, 3298. [Google Scholar] [CrossRef]
  4. Huang, H.; Sun, G.; Chen, S.; Wei, Z.; Zang, H. Peer-to-Peer Energy Trading of Hydrogen-Producing Prosumers in Power Distribution Network. Sustain. Energy Technol. Assess. 2025, 75, 104221. [Google Scholar] [CrossRef]
  5. Wang, D.; Wen, Y.; Zhang, J.; Chen, Q.; Gu, Y.; Chen, X.; Tang, Z. Potential Solution to Wheat Straw-to-Methanol for Marine Fuel under Carbon Emission Restrictions: A Comparative Energy, Exergy, Economic, and Environmental Analysis. Appl. Energy 2025, 397, 126338. [Google Scholar] [CrossRef]
  6. Sun, G.; Wang, Q.; Chen, S.; Wei, Z.; Zang, H. Look-Ahead Dispatch of Power Systems Based on Linear Alternating Current Optimal Power Flow Framework with Nonlinear Frequency Constraints Using Physics-Informed Neural Networks. J. Mod. Power Syst. Clean Energy 2024, 13, 778–790. [Google Scholar] [CrossRef]
  7. Wang, J.; El Kontar, R.; Jin, X.; King, J. Decarbonizing All-Electric Communities via Carbon-Responsive Control of behind-the-Meter Resources. Adv. Appl. Energy 2023, 10, 100139. [Google Scholar] [CrossRef]
  8. Wu, C.; Wei, Z.; Jiang, X.; Huang, Y.; Fan, D. Optimization Decomposition of Monthly Contracts for Integrated Energy Service Provider Considering Spot Market Bidding Equilibria. Electronics 2024, 13, 1945. [Google Scholar] [CrossRef]
  9. Wang, Q.; Zhang, X.; Xu, D. Source-Load Scenario Generation Based on Weakly Supervised Adversarial Learning and Its Data-Driven Application in Energy Storage Capacity Sizing. IEEE Trans. Sustain. Energy 2023, 14, 1918–1932. [Google Scholar] [CrossRef]
  10. Zhao, C.; Li, X. Microgrid Optimal Energy Scheduling Considering Neural Network Based Battery Degradation. IEEE Trans. Power Syst. 2024, 39, 1594–1606. [Google Scholar] [CrossRef]
  11. Sun, G.; Wang, Q.; Chen, S.; Li, Q.; Zhang, N.; Wei, Z.; Zang, H. Using Machine Learning to Achieve Highly Efficient Solutions of Frequency-Constrained Unit Commitment Models. Energy 2025, 328, 136223. [Google Scholar] [CrossRef]
  12. Zeng, Y.; Qiu, Y.; Zhu, J.; Chen, S.; Zang, T.; Zhou, B.; He, G.; Ji, X. Planning of Off-Grid Renewable Power to Ammonia Systems with Heterogeneous Flexibility: A Multistakeholder Equilibrium Perspective. IEEE Trans. Power Syst. 2025. early access. [Google Scholar] [CrossRef]
  13. Putratama, M.A.; Rigo-Mariani, R.; Mustika, A.D.; Debusschere, V.; Pachurka, A.; Besanger, Y. A Three-Stage Strategy with Settlement for an Energy Community Management under Grid Constraints. IEEE Trans. Smart Grid 2023, 14, 1505–1514. [Google Scholar] [CrossRef]
  14. Li, G.; Li, Q.; Liu, Y.; Liu, H.; Song, W.; Ding, R. A Cooperative Stackelberg Game Based Energy Management Considering Price Discrimination and Risk Assessment. Int. J. Electr. Power Energy Syst. 2022, 135, 107461. [Google Scholar] [CrossRef]
  15. Liu, J.; Tang, Z.; Liu, Y.; Zhou, Y.; Zeng, P.P.; Wu, Q. Region-Inspired Distributed Optimal Dispatch of Flexibility Providers in Coordinated Transmission-Distribution Framework. Energy 2025, 319, 134985. [Google Scholar] [CrossRef]
  16. Zhou, M.; Chen, S.; Huang, K.; Liang, J.; Fu, M.; Sun, G. Coordination of Medium-Voltage Distribution Networks and Microgrids Based on an Aggregate Flexibility Region Approach. Sustain. Energy Grids Netw. 2024, 39, 101485. [Google Scholar] [CrossRef]
  17. Wu, Y.; Lin, Z.; Chen, Z.; Chen, R.; Chen, Y. Vickrey-Clark-Groves-Based Method for Eradicating Deceptive Behaviors in Demand Response Transactions. J. Mod. Power Syst. Clean Energy 2024, 12, 1260–1271. [Google Scholar] [CrossRef]
  18. Zhang, L.; Zhang, H.; Li, F.; Sun, B. Bi-Level Optimal Design of Integrated Energy System with Synergy of Renewables, Conversion, Storage, and Demand. IEEE Trans. Ind. Appl. 2025, 61, 2170–2181. [Google Scholar] [CrossRef]
  19. Zhang, Q.; Leng, S.; Ma, X.; Liu, Q.; Wang, X.; Liang, B.; Liu, Y.; Yang, J. CVaR-Constrained Policy Optimization for Safe Reinforcement Learning. IEEE Trans. Neural Netw. Learn. Syst. 2025, 36, 830–841. [Google Scholar] [CrossRef]
  20. Han, H.; Jiang, X.; Zhang, S.; Wu, C.; Cao, S.; Zang, H.; Sun, G.; Wei, Z. A Risk-Based Scheduling Optimization Strategy with Explainability Enhanced Multi-Scenario Photovoltaic Forecasting. Electr. Power Syst. Res. 2025, 246, 111729. [Google Scholar] [CrossRef]
  21. Belles-Sampera, J.; Guillén, M.; Santolino, M. Beyond Value-at-risk: GlueVaR Distortion Risk Measures. Risk Anal. 2014, 34, 121–134. [Google Scholar] [CrossRef]
  22. Xiong, L.; Goyal, A.; Bhattacharya, K.; Tang, Y.; Dong, Z.; Qian, F.; Thummalacherla, V.B. DRL-Based Distributed Coordination of ISO and DSOs in Bi-Level Electricity Markets. IEEE Trans. Ind. Inf. 2025, 21, 6422–6432. [Google Scholar] [CrossRef]
  23. Chen, W.; Sun, H.; Peng, C.; Zhou, H.; Xu, S. Distributed Optimization for EVs Integrated Power System Considering Flexible Ramping Requirement. Int. J. Electr. Power Energy Syst. 2024, 160, 110104. [Google Scholar] [CrossRef]
  24. Wu, C.; Zhou, Y.; Wu, J. Two-Layer Data-Driven Robust Scheduling for Industrial Heat Loads. J. Mod. Power Syst. Clean Energy 2024, 13, 265–275. [Google Scholar] [CrossRef]
  25. Kouba, N.; Menaa, M.; Tehrani, K.; Boudour, M. Optimal Tuning for Load Frequency Control Using Ant Lion Algorithm in Multi-Area Interconnected Power System. Intell. Autom. Soft Comput. 2019, 25, 279–294. [Google Scholar] [CrossRef]
  26. Qiu, D.; Dong, Z.; Ruan, G.; Zhong, H.; Strbac, G.; Kang, C. Strategic Retail Pricing and Demand Bidding of Retailers in Electricity Market: A Data-Driven Chance-Constrained Programming. Adv. Appl. Energy 2022, 7, 100100. [Google Scholar] [CrossRef]
  27. Ji, H.; Jian, J.; Yu, H.; Ji, J.; Wei, M.; Zhang, X.; Li, P.; Yan, J.; Wang, C. Peer-to-Peer Electricity Trading of Interconnected Flexible Distribution Networks Based on Distributed Ledger. IEEE Trans. Ind. Inf. 2022, 18, 5949–5960. [Google Scholar] [CrossRef]
  28. Han, H.; Yu, L.; Zhou, Y.; Zang, H.; Cao, Y.; Chen, S.; Sun, G.; Wei, Z. Two-Stage Robust Co-Optimization of Energy and Reserve Scheduling for Resilient Distribution Systems Considering Line Reinforcement. Energy 2025, 316, 134600. [Google Scholar] [CrossRef]
  29. Chen, S.; Conejo, A.J.; Wei, Z. Gas-Power Coordination: From Day-Ahead Scheduling to Actual Operation. IEEE Trans. Power Syst. 2022, 37, 1532–1542. [Google Scholar] [CrossRef]
  30. Ji, D.; Wei, Z.; Zhou, Y.; Chen, S.; Sun, G.; Zang, H. Distributionally Robust Co-Optimization of Energy and Reserve Dispatch for Integrated Electricity-Gas-Heating Systems. Sustain. Energy Technol. Assess. 2025, 73, 104125. [Google Scholar] [CrossRef]
  31. Chu, Y.; Wei, Z.; Sun, G.; Zang, H.; Chen, S.; Zhou, Y. Optimal Home Energy Management Strategy: A Reinforcement Learning Method with Actor-Critic Using Kronecker-Factored Trust Region. Electr. Power Syst. Res. 2022, 212, 108617. [Google Scholar] [CrossRef]
  32. Li, Y.; Li, Z. A Novel Risk-Averse Multi-Energy Management for Effective Offering Strategy of Integrated Energy Production Units in a Real-Time Electricity Market. Appl. Energy 2025, 377, 124380. [Google Scholar] [CrossRef]
  33. Chen, S.; Zhu, L.; Wei, Z.; Sun, G.; Zhou, Y. Application of a Graph Convolutional Network for Predicting the Feasible Operating Regions of Power to Hydrogen Facilities in Integrated Electricity and Hydrogen-Gas Systems. Energy 2025, 326, 136107. [Google Scholar] [CrossRef]
  34. Wynn, S.L.L.; Boonraksa, T.; Boonraksa, P.; Pinthurat, W.; Marungsri, B. Decentralized Energy Management System in Microgrid Considering Uncertainty and Demand Response. Electronics 2023, 12, 237. [Google Scholar] [CrossRef]
  35. Wang, X.; Zhu, Y.; Tang, P. Uncertain Mean-CVaR Model for Portfolio Selection with Transaction Cost and Investors’ Preferences. N. Am. J. Econ. Financ. 2024, 69, 102028. [Google Scholar] [CrossRef]
  36. Zhang, Y.; Li, J.; Ji, X.; Ye, P.; Yu, D.; Zhang, B. Optimal Dispatching of Electric-heat-hydrogen Integrated Energy System Based on Stackelberg Game. Energy Convers. Econ. 2023, 4, 267–275. [Google Scholar] [CrossRef]
  37. Sun, Y.; Guo, Y.; Zhang, Q.; Jia, Y. Berth Allocation and Energy Scheduling for All-Electric Ships in Seaport Microgrid: A Stackelberg Game Approach. Energy 2025, 322, 135640. [Google Scholar] [CrossRef]
  38. Chen, Y.; Zhu, J.; Dong, H.; Zeng, C.; Pan, Z. Knowledge-Augmented Population-Based Deep Reinforcement Learning for Real-Time Network-Constrained Economic Dispatch of Large-Scale Power Grid. IEEE Trans. Power Syst. 2025. early access. [Google Scholar] [CrossRef]
Figure 1. Schematic diagram of undirected graph and its subgraph of distribution network.
Figure 1. Schematic diagram of undirected graph and its subgraph of distribution network.
Energies 18 04139 g001
Figure 2. Framework of the bi-level planning model.
Figure 2. Framework of the bi-level planning model.
Energies 18 04139 g002
Figure 3. The iterative solution process of the bi-layer model.
Figure 3. The iterative solution process of the bi-layer model.
Energies 18 04139 g003
Figure 4. IEEE 33-Bus Network Topology with Load Classes and Typhoon Area.
Figure 4. IEEE 33-Bus Network Topology with Load Classes and Typhoon Area.
Energies 18 04139 g004
Figure 5. Representative load and renewable output profiles.
Figure 5. Representative load and renewable output profiles.
Energies 18 04139 g005
Figure 6. The operational status of Typical Scenario 1.
Figure 6. The operational status of Typical Scenario 1.
Energies 18 04139 g006
Figure 7. The operational status of Typical Scenario 2.
Figure 7. The operational status of Typical Scenario 2.
Energies 18 04139 g007
Figure 8. The operational status of Typical Scenario 3.
Figure 8. The operational status of Typical Scenario 3.
Energies 18 04139 g008
Figure 9. The effects of peak-cutting and valley-filling.
Figure 9. The effects of peak-cutting and valley-filling.
Energies 18 04139 g009
Figure 10. Investment vs. annual total cost under varying risk levels.
Figure 10. Investment vs. annual total cost under varying risk levels.
Energies 18 04139 g010
Figure 11. Efficient frontier curves of investment cost and CVaR.
Figure 11. Efficient frontier curves of investment cost and CVaR.
Energies 18 04139 g011
Figure 12. Voltage profiles under four flexibility resource configuration schemes.
Figure 12. Voltage profiles under four flexibility resource configuration schemes.
Energies 18 04139 g012
Table 1. Comparison of Related Studies on Flexibility Resource Planning.
Table 1. Comparison of Related Studies on Flexibility Resource Planning.
ReferenceResource TypesRisk ModelNetwork ReconfigurationOptimizationSolution Method
[11]ESS, DRNoNoCoordinated PlanningMIP
[12]ESS, DR, SOPNoYesThree-stage dispatch under constraintsHeuristic
[13]ESSNoBig-M linearizationDeterministic OptimizationMILP
[15]ESSNoVirtual NetworkGraph-based Topology OptimizationMILP
[16]ESS, DRNoYesIncentive-integrated ModelingGame-based
[17]ESSNoNoBasic PlanningMIP
[18]ESSCVaRNoMulti-objective SchedulingStochastic Programming
[19]DRCVaRNoBi-level Energy ManagementMixed Integer
[20]ESSVaRNoRisk-constrained OptimizationMILP
[21]ESS, DRNoNoClassical Bi-levelMILP
[22]ESSNoYesBi-level (with topology)MILP
This paperMT, ESS, SOP, DRCVaRVirtual Network CouplingBi-level (Planning + Operation)SA–PSO + SOCP
Table 2. The parameters of DGs.
Table 2. The parameters of DGs.
ParameterWind TurbinesPV Systems
Access Location9253271722
Capacity (kW)400400400400400400
Table 3. Comparison of planning results under different schemes.
Table 3. Comparison of planning results under different schemes.
Scheme Configuration Object
MT/kW (Location) ESS/kWh (Location) SOP/kVA (Location)
1800 (5), 800 (10), 300 (18)500 (9), 700 (22), 500 (25)/
2300 (10), 300 (18), 500 (28)700 (9), 300 (17), 400 (22)/
3700 (5), 800 (10), 400 (28)600 (17), 600 (22), 600 (25)300 (9–15), 300 (25–29)
4500 (5), 300 (16), 500 (28)200 (7), 800 (17), 400 (22)200 (9–15), 100 (12–22)
Table 4. Comparison of cost distribution results under different schemes.
Table 4. Comparison of cost distribution results under different schemes.
SchemeCost Distribution (CNY)
MTESSSOPPower
Purchase
Wind & Solar
Curtailment
Network
Loss
SOP
Loss
Carbon
Emission
O&M
Cost
Annual
Total
1415,192193,355/237,65912,977159,748/13,43370,4461,102,810
2240,374165,733/203,7814791125,236/12,51255,046807,473
3415,192202,56365,557170,739031,52671,17813,50668,3821,038,643
4284,079165,73332,778167,609032,93528,60212,28254,438778,456
Table 5. The main operating costs in different scenarios.
Table 5. The main operating costs in different scenarios.
Scenario NumberOperating Cost (CNY)
Network Loss
Cost
SOP Loss CostPower Purchase
Cost
Carbon
Emission
Typical Scenario 160187017
Typical Scenario 223930297593
Typical Scenario 368128628
Table 6. Analysis of peak-cutting and valley-filling effect.
Table 6. Analysis of peak-cutting and valley-filling effect.
CategoryPeak Load (kW)Valley Load (kW)Peak-Valley Difference (kW)Peak-Valley Ratio
Original Load Curve298876322250.745
After DR219988813110.596
After ESS + DR192988810410.540
Table 7. The results obtained by solving different models.
Table 7. The results obtained by solving different models.
MethodConfiguration Scheme Capacity (Location)Total Planning Cost (CNY)Total Operating Cost (CNY)Total Cost (CNY)
Risk-neutralESS: 400 (9), 1400 (25), 900 (32)
MT: 300 (5), 600 (10), 500 (18)
SOP: 200 (12–22), 200 (18–33)
483,805353,386837,191
CVaRESS: 1000 (22), 500 (25), 1900 (32)
MT: 700 (5), 800 (10), 900 (28)
SOP: 200 (9–15), 300 (12–22)
738,626274,1581,012,784
Table 8. Scenario comparison of different models.
Table 8. Scenario comparison of different models.
MethodRisk-NeutralCVaR
Cost Distribution (CNY)Load SheddingExternal PurchaseOther CostsTotal CostLoad SheddingExternal PurchaseOther CostsTotal Cost
Typical Scenario 10089589500572572
Typical Scenario 275069076500647647
Typical Scenario 32254218820806522159452618904010
Fault Scenario 14821209719778896192062720744621
Fault Scenario 25023272519929740241576321995377
Fault Scenario 32366232822896983169458519604239
Fault Scenario 45255259320589907209382322765192
Table 9. Comparison of results under different risk preference parameters.
Table 9. Comparison of results under different risk preference parameters.
LInvestment Cost (CNY)Annual Total Cost (CNY)CVaR (CNY)
0.01619,139902,9483,191,488
0.05625,077933,7822,711,396
0.1639,662952,6332,135,347
0.2648,312979,9012,054,545
0.5697,351992,7681,913,240
1738,6261,012,7841,853,854
2782,1951,064,9741,838,959
3837,4591,144,0301,831,561
Table 10. Performance Evaluation of Algorithms.
Table 10. Performance Evaluation of Algorithms.
AlgorithmBest Solution (CNY)Average Solution (CNY)Standard DeviationAverage Computation Time (s)Convergence Iterations
SA-PSO778,456780,832215645.2152
PSO812,347817,529428738.7245
SA785,692791,276382552.8298
GA823,571832,184596741.3320
Table 11. Computational Effects of Different Big-M.
Table 11. Computational Effects of Different Big-M.
MSolution Time (S)Average Solution (CNY)Constraint Violation
N45.2778,456No
2 N47.6778,460No
0.5 NError-Yes
0.7 N46.3778,457No
Table 12. Performance of the SA-PSO Algorithm under Different Network Sizes.
Table 12. Performance of the SA-PSO Algorithm under Different Network Sizes.
Network SizeObjective ValueComputation TimeConvergence Iterations
33778,45645.2152
691,083,92098.7214
1181,626,370183.5289
1501,975,280265.4327
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

Han, H.; Jiang, X.; Cao, Y.; Luo, X.; Liu, S.; Yang, B. Flexibility Resource Planning and Stability Optimization Methods for Power Systems with High Penetration of Renewable Energy. Energies 2025, 18, 4139. https://doi.org/10.3390/en18154139

AMA Style

Han H, Jiang X, Cao Y, Luo X, Liu S, Yang B. Flexibility Resource Planning and Stability Optimization Methods for Power Systems with High Penetration of Renewable Energy. Energies. 2025; 18(15):4139. https://doi.org/10.3390/en18154139

Chicago/Turabian Style

Han, Haiteng, Xiangchen Jiang, Yang Cao, Xuanyao Luo, Sheng Liu, and Bei Yang. 2025. "Flexibility Resource Planning and Stability Optimization Methods for Power Systems with High Penetration of Renewable Energy" Energies 18, no. 15: 4139. https://doi.org/10.3390/en18154139

APA Style

Han, H., Jiang, X., Cao, Y., Luo, X., Liu, S., & Yang, B. (2025). Flexibility Resource Planning and Stability Optimization Methods for Power Systems with High Penetration of Renewable Energy. Energies, 18(15), 4139. https://doi.org/10.3390/en18154139

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

Article Metrics

Back to TopTop