Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Next Article in Journal
The Future of Nuclear Energy: Key Chemical Aspects of Systems for Developing Generation III+, Generation IV, and Small Modular Reactors
Previous Article in Journal
Analysis of Kazakhstan Oil Shale Deposits in Accordance with Resource Estimation Practices for Consideration of Potential Shale Oil Reserves
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

Real-Time Power System Optimization Under Typhoon Weather Using the Smart “Predict, Then Optimize” Framework

School of Science and Engineering, The Chinese University of Hong Kong, Shenzhen 518172, China
*
Author to whom correspondence should be addressed.
Energies 2025, 18(3), 615; https://doi.org/10.3390/en18030615
Submission received: 12 December 2024 / Revised: 22 January 2025 / Accepted: 27 January 2025 / Published: 29 January 2025

Abstract

:
With the increase of extreme weather events caused by global climate change, the issue of power system resilience has become more and more important. Traditional power system management methods cannot cope with dynamic real-time changes, and it is difficult to effectively predict and respond to potential failures caused by extreme weather. To this end, this paper proposes a real-time power system optimization method based on the Smart “Predict, then Optimize” (SPO) framework. The SPO method first uses the Transformer model to predict, in real time, the future line damage states and then dynamically adjusts the optimization strategy based on the prediction results. This method can efficaciously enhance the prediction accuracy of faulty lines under extreme weather conditions and optimize generation scheduling, load management, as well as EV battery scheduling to minimize the system cost. This study proposes a solution based on the SPO loss function, artificial intelligence prediction model, and bi-level optimization model to address the dynamic optimization of power systems under extreme conditions, significantly enhancing the system’s response to extreme weather events. The experimental results demonstrate that the SPO method can optimize system operation in real time, significantly reducing load shedding and total system cost during typhoon weather, which not only improves the system’s economic efficiency but also effectively enhances power system resilience.

1. Introduction

With the intensification of global climate change, extreme weather such as storms, freezing rain and strong winds occur frequently, posing severe challenges to the stability and reliability of the power system [1]. Especially in typhoon weather, wind loads significantly increases the risk of transmission line failures, which may have a serious impact on large-scale users [2,3]. In 2012, Hurricane Sandy caused severe damage to the power system in several coastal states, leaving more than 8.5 million customers without power, lasting for weeks or even months in some areas [4,5]. However, the traditional power system management methods are difficult to deal with these complex fluctuations and extreme conditions, which is easy to cause chain failures or large-scale power outages, and cannot effectively predict and mitigate potential problems [6,7].
In typhoon disasters, serious accidents often occur in power grids due to transmission line damage probability. Analysis and prediction of transmission lines damage probability are of great significance for disaster prevention and reduction [8]. In recent years, in order to improve the resilience of power systems under extreme weather, many optimization techniques have emerged. Based on the predicted loss state of the power system line, the load loss can be effectively reduced and the stability of the power system can be improved by scheduling generator start–stop, energy storage, EV charging and discharging in advance. However, more accurate predictions do not necessarily lead to better decisions [9,10]. Machine learning methods are often designed to minimize prediction errors, regardless of how the predicted results are used in subsequent optimization problems [11]. Reference [12] proposes a decision-oriented SPO loss function and SPO framework, which can improve the prediction model and make it better meet the system objectives under the condition of similar accuracy.
Due to the limited data of historical extreme events [13], a probability formula for calculating the relationship between wind speed and line damage was proposed in the literature [14,15] to generate a vulnerability curve for measuring the impact of typhoons on transmission or distribution networks. Based on the above theories, this paper conducted Monte Carlo simulation to generate a large amount of training data, including wind speed, the angle between the line and the direction around the typhoon, and the distance between the line and the typhoon center [16]. In addition, the Transformer model is used to predict the line state, the long-distance dependencies and global features in the time series are extracted by the encoder, and the sequential relationship between time steps is captured by the position encoding. The model inputs multiple variables at each time step as a whole, uses the self-attention mechanism to model the complex relationship between variables and time steps, and finally realizes classification prediction through the fully connected layer [17].
This paper proposes a bi-level optimization model based on SPO framework to solve the upper problems. The SPO method first predicts the real-time line damage state through the Transformer model, and then makes optimization decisions based on the prediction results, thereby dynamically scheduling power system resources to reduce load reduction as much as possible [18,19]. At the same time, the upper model aims to minimize the total cost of the power system, while the lower model aims to maximize the economic profit of EV owners [20,21].
The main contributions of this paper are summarized as follows:
  • The combination of SPO framework and reinforcement learning: The SPO framework is combined with reinforcement learning for the first time, and the scheduling error is reduced through the policy gradient optimization method, which improves the accuracy of fault protection and cost control.
  • Design of bi-level optimization structure: A bi-level structure including upper and lower optimization is proposed. In the upper layer, the optimal scheduling decision was generated according to the predicted line state to minimize the total system cost. The lower layer aims at the Electric Vehicle (EV) energy storage system to maximize the economic benefits of EV owners.
  • Transformer model is applied to power system resilience analysis: Due to the randomness and timing characteristics of the outage process in extreme weather, this paper uses Transformer model for fault prediction, and simulates it by Monte Carlo Simulation (MCS) method. Combined with SPO loss function, the decision optimization is successfully realized.
The remainder of this paper is organized as follows: Section 2 introduces the Line Failure Probability Model; Section 3 outlines the Framework and Feedback Adjustment Mechanism; Section 4 presents the objectives and constraints; Section 5 discusses the case studies; and Section 6 provides the conclusions.

2. Line Failure Probability Model

In extreme weather conditions, such as winter storms, factors such as damage to power system lines and power flow shifts may lead to grid line failures, thereby causing changes in system states. The operating status of power grid lines under winter storm conditions can be expressed by the following formula:
u l , i , t F = 1 , line is operating normally 0 , line is in failure
where u l , i , t F indicates the operational state of power grid line l at time t; 1 indicates normal operation, and 0 indicates a fault.
As the winter storm develops and moves, it impacts transmission lines along its path, resulting in sequential and random changes in the system state over time. By discretizing the continuous changes of the system state, the fault evolution process can be simulated. Moreover, since the system state depends only on the previous state, the state transition process can be regarded as a discrete-time Markov process. The transition probability between two adjacent time periods can be expressed as
P r ( u l , i , t F , u l , i , t + 1 F ) = j Ω t + 1 F P r ( u l , j , t F , u l , j , t + 1 F ) , i Ω t F
where u l , i , t F represents the system’s state at time period t; Ω t + 1 F is the set of grid lines that may fail in period t + 1 , and Ω t F represents the set of system states at time t; P r ( u l , j , t F , u l , j , t + 1 F ) denotes the probability of a grid line’s state transitioning from u l , j , t F to u l , j , t + 1 F .
In this study, we used an IEEE 57-node power system combined with Monte Carlo simulations to generate a large dataset to simulate the effects of extreme weather on power systems. The generated data covers the wind speed distribution of the line, the failure rate, and the status of the line if it is damaged.
To predict line failure, we designed a prediction model based on Transformer. We choose the Transformer to process time series data for each line. Through a self-attention mechanism, it is able to capture global dependencies between different time steps, allowing the model to model complex time series data more efficiently. In addition, Transformer incorporates location coding to ensure that the model understands the sequential nature of the data. After processing by multi-layer encoders, the model gradually enhances the abstract understanding of the input data to generate high-level feature representations for classification.
In order to show the superiority of our SPO loss function, we compare the cross-entropy loss with the SPO loss function. Cross-entropy loss is often used to solve the class imbalance problem, which can effectively improve the classification accuracy. The SPO loss function can not only optimize the model performance but also reduce the total operating cost of the system more effectively. Specifically, the SPO approach combines forecasting with optimization to dynamically adjust the scheduling strategy of a power system, further reducing the frequency of failures and reducing operating costs.

3. Framework and Feedback Adjustment Mechanism

In this study, we use the IEEE 57-node power system and Monte Carlo simulations to generate a large dataset. These dataset models the effects of extreme weather on the power grid, including wind speed distribution, failure rates, and line damage states.
1.
Data generation.
Large data sets are generated through Monte Carlo simulations, including the wind speed distribution of the line, the failure rate, and the operating status of the line (whether it is damaged or not).
2.
Feature extraction and temporal processing.
Use Transformer to process time series data for each line, capture time dependencies, and efficiently construct sequential features to fully characterize the dynamic characteristics of the line.
3.
Classification and high-level feature representation.
A multilayer encoder is used to generate a high-level feature representation for classification.
4.
Feedback adjustment and strategy optimization (SPO and reinforcement learning).
The SPO framework is combined with reinforcement learning to adjust line failure state prediction errors and minimize operating costs due to scheduling deviations. The specific process is as follows:
  • Problem definition.
    Scheduling decisions are based on the predicted line state and the corresponding optimal cost and scheduling decisions obtained through a two-tier optimization model: c ^ T w ( c ^ ) , where c ^ represents the predicted cost vector, and w ( c ^ ) represents the optimal scheduling decision under the predicted cost. Prediction bias is measured by applying the predicted decision to the actual line state to obtain the actual cost c T w ( c ^ ) and comparing it with the true optimal cost c T w ( c ) . Based on these two values, we define the SPO loss function as δ t o t a l = c T w ( c ^ ) c T w ( c ) .
  • Reinforcement learning and policy gradient optimization.
    The total loss δ t o t a l is the difference between the predicted total cost and the actual total cost as a feedback signal in the optimization process. This allows us to quantify the impact of prediction errors on the total cost of system scheduling. The loss is then distributed according to the difference between the actual current flow and the optimal current flow for each line. A line with a large current difference will incur more losses, while a line with a zero current difference will not incur losses. This allocation method can accurately reflect the impact of each line on the system scheduling, and help optimize scheduling decisions.
    The δ of each line is converted into a reward. To minimize loss δ , reinforcement learning defines a reward as
    r e w a r d = 1 exp ( δ ) + ξ ,
    where ξ is a small constant number. To maximize this reward, we use the policy function π θ ( a | s ) to express the probability of choosing an action a in a given state s, where θ is the parameter of the policy. The parameter θ is updated using the policy gradient method to maximize the expected reward, thereby minimizing δ . The specific steps are as follows:
    -
    Prediction and action selection: for a given state s (e.g., characteristics of a line), the model outputs an action a (i.e., the predicted line state) and generates a scheduling decision.
    -
    Actual cost evaluation: the predicted decision is applied to the actual state to calculate the actual cost c T w ( c ^ ) .
    -
    Loss calculation and policy gradient update: According to the policy gradient formula,
    θ J ( θ ) = E [ Q π θ ( s , a ) θ log π θ ( a | s ) ]
    where log π θ ( a | s ) is the gradient of the action’s probability with respect to θ , and Q π θ (s, a) represents the expected cumulative discounted reward obtained by taking action a in state s and following policy π θ thereafter. This update optimizes future scheduling decisions.
5.
Loss function comparison and conclusion.
The experimental results show that SPO loss combined with reinforcement learning significantly improves the efficiency of the system compared with cross-entropy loss. Compared to traditional methods, SPO losses significantly reduce total system costs through dynamic feedback and policy optimization, demonstrating strong advantages in predicting the impact of extreme weather on the grid.
The specific experimental process is shown in Figure 1 below.

4. Objective and Constraints

The objective of the upper layer problem is to minimize the total operating cost of the power system by optimizing the resource allocation and operation modes of the system. This objective function covers the costs of generation, the costs of starting and stopping generators, the costs of load reduction, the costs and benefits of energy storage system charging and discharging, and the costs of charging electric vehicles (EVs).
min t T g Ω G C G S P g , t G + C S U u g , t + C S D ( 1 u g , t ) + b Ω B C P S P b , t S + m Ω b M C m S , C P m , t S , C C m S , D P m , t S , D + q Ω b E V C t E V P q , t E V , C
The first part, t T g Ω G C G S P g , t G , describes the total generation cost of all generators over the entire scheduling period. Here, T is the set of time periods, representing the scheduling problem’s involvement in all time steps; Ω G is the set of generators, containing all generators in the system; C G S is the unit power generation cost, expressed in yuan (CNY) per kilowatt; and P g , t G is the generation power of generator g at time t, expressed in kilowatts. By weighted summing the generation power of all generators at all time periods, the total generation cost can be obtained.
The second part, t T g Ω G C S U u g , t + C S D ( 1 u g , t ) , delineates the startup and shutdown costs of generators. Herein, C S U represents the startup cost of the generator, quantified in yuan (CNY); C S D stands for the shutdown cost of the generator, likewise quantified in yuan (CNY); and u g , t constitutes a binary variable denoting the operating status of generator g at time t. If the generator is in the startup mode, then this part calculates the total startup and shutdown cost for the entire cycle by weighted summing the generator’s startup and shutdown behavior for all time periods.
The third part, t T b Ω B C P S P b , t S , represents the penalty costs for load reduction. Herein, Ω B constitutes the set of grid nodes (i.e., buses), and C P S is the penalty cost per unit load reduction, expressed in yuan (CNY) per kilowatt. P b , t S is the load reduction power at node b at time t, also expressed in units of kilowatts. The total economic loss resulting from load reduction is obtained via weighted summation of the load reduction quantities for all nodes and all time periods.
The fourth part, t T m Ω b M C m S , C P m , t S , C C m S , D P m , t S , D , delineates the cost and revenue associated with the charging and discharging of the energy storage system. Here, Ω b M constitutes the set of energy storage systems; C m S , C represents the unit charging cost of energy storage device m, measured in yuan (CNY) per kilowatt; C m S , D denotes the unit discharging revenue of energy storage device m, measured in yuan (CNY) per kilowatt; P m , t S , C is the charging power of energy storage device m at time t, measured in kilowatts; and P m , t S , D is the discharging power of energy storage device m at time t, also measured in kilowatts. By calculating the charging cost and discharging revenue of the energy storage system for all time periods, the economic impact of the energy storage system within the scheduling period can be evaluated.
The fifth part, t T q Ω b E V C t E V P q , t E V , C , is the overall cost of charging electric vehicles. Here, Ω b E V is the set of electric vehicles on bus bar b; C t E V is the unit electricity price of electric vehicles at time t, measured at yuan per kilowatt-hour; and P q , t E V , C is the charging power of electric vehicle q at time t, measured in kilowatts. The total cost of charging electric vehicles can be got through the weighted summation of the charging power of all electric vehicles during the scheduling period.
The objective function is to minimize the total operating cost of the power system by optimizing the resource allocation and operation modes in the system, balancing the economic costs related to generation, startup and shutdown, load curtailment, energy storage operation, and electric vehicle charging, and ensuring the economic efficiency and operational performance of the system.

4.1. Constraints of the Power System

g Ω G P g , i , t G + q Ω b E V P q , i , t E V , D + m Ω b M P m , i , t S , D P m , i , t S , C + l Ω L b P l , i , t L = P b , i , t D P b , i , t S , b , i , t
u g , i , t u g , i , t + 1 + u g , i , t 0 , 1 t t T g o n , g , i , t
u g , i , t u g , i , t + 1 + u g , i , t 1 , 1 t t T g o f f , g , i , t
P g , i , t + 1 G P g , i , t G 2 u g , i , t u g , i , t + 1 P ̲ g G + 1 + u g , i , t u g , i , t + 1 R g U , g , i , t
P g , i , t G P g , i , t + 1 G 2 u g , i , t u g , i , t + 1 P ̲ g G + 1 u g , i , t + u g , i , t + 1 R g D , g , i , t
u g , i , t P ̲ g G P g , i , t G u g , i , t P ¯ g G , g , i , t
P l , i , t L B l θ b , i , t θ b , i , t M 1 u l , i , t F 0 , l , i , t
P l , i , t L B l θ b , i , t θ b , i , t + M 1 u l , i , t F 0 , l , i , t
u l , i , t F P ̲ l L P l , i , t L u l , i , t F P ¯ l L , l , i , t
P G n , i , t P D n , i , t = m = 1 N ( B n , m ) θ m , i , t
0 P b , i , t S P b , i , t D , b , i , t
θ ̲ b θ b , i , t θ ¯ b , b , i , t
Constraint (2) exhibits the power balance connection status of each node. The P b , i , t D indicates the load requirement of node b in scenario i and at time t, and P b , i , t S represents the load reduction in node b in the identical scenario and time. Ω L b and Ω b M , respectively, refer to the collection of transmission lines linked to node b and the set of associated energy storage devices. Constraint (3) establishes the minimum continuous operation time span of the generator. u g , i , t is a binary state variable of generator g at time t and in scenario i, where 1 indicates that the generator is operational, and 0 indicates that it is paused. T g o n represents the minimum period within which the generator must maintain its operation once it has initiated. Constraint (4) claims that the generator must satisfy the requirement of minimum continuous down time. T g o f f represents the minimum continuous time within which the generator must remain out of operation once it has halted. Constraints (5) and (6) govern the ramp-up and ramp-down rates of the generator. R g U and R g D , respectively, represent the maximum ramp-up and ramp-down rates of generator g, with the aim of ensuring a smooth transition in power generation. Constraint (7) constrains the output power range of the generator. P ̲ g G and P ¯ g G , respectively, signify the minimum and maximum output power limitations of generator g. Constraints (8) and (9) define the power flow and state limitations of the transmission line. B l represents the admittance value of line l, and θ b , i , t and θ b , i , t represent the voltage phase angles at the nodes connected to line l in scenario i and at time t. u l , i , t F is a binary variable utilized to represent the working status of line l, where 1 indicates the line is accessible, and 0 indicates it is inaccessible. Constraint (10) determines the power flow limit for each transmission line. The variables P ̲ l L and P ¯ l L , respectively, represent the minimum and maximum power flow limits of transmission line l. Constraint (11) ensures the power balance at each node. B n , m represents the admittance value between node n and node m, and θ m , i , t represents the voltage phase angle of node m in scenario i and at time t. Constraint (12) limits the load shedding to ensure that it does not exceed the load demand. P b , i , t S represents the load reductions, which must not exceed the load demand P b , i , t D . Constraint (13) limits the voltage phase angle range at each node. θ ̲ b and θ ¯ b represent the minimum and maximum voltage phase angles of node b, respectively.

4.2. Constraints on Energy Storage

S O C m , i , t S = S O C m , i , t 1 S + η m C P m , i , t S , C P m , i , t S , D η m D , m , i , t
S O C ̲ m S S O C m , i , t S S O C ¯ m S , m , i , t
0 P m , i , t S , C u m , i , t S , C P ¯ m S , m , i , t
0 P m , i , t S , D u m , i , t S , D P ¯ m S , m , i , t
u m , i , t S , C + u m , i , t S , D 1 , m , i , t
Constraint (14) defines the State of Charge (SOC) dynamics of an energy storage system, including the effects of charging and discharging efficiency. Constraint (15) sets the upper and lower limits of SOC. Constraint (16) limits the charging power to the allowable range and is regulated by the charging state variable. Constraint (17) restricts the discharge power to the allowable range and is controlled by the discharge state variable. Constraint (18) ensures that the energy storage device can either be charged or discharged at any given time, but not both simultaneously.

4.3. Objective and Constraints of EV

The lower-level problem aims to maximize the discharge revenue for electric vehicle owners,
max t T q Ω E V C E V , D P q , t E V , D
s.t. S O C q , t E V = S O C q , t 1 E V + η q E V , C P q , t 1 E V , C P q , t 1 E V , D η q E V , D , q E V s , t > 0
S O C q , 0 E V = S O C q , i n i t E V , q E V s
S O C q , m i n E V S O C q , t E V S O C q , m a x E V , q E V s , t T
P q , t E V , C P q , m a x E V u q , t E V , C , q E V s , t T
P q , t E V , D P q , m a x E V u q , t E V , D , q E V s , t T
u q , t E V , C + u q , t E V , D 1 , q E V s , t T
The objective function is presented in constraint Condition (19) to maximize the total discharge benefits of electric vehicles (EVs) over the planning cycle and to maximize their economic potential. Constraint Condition (20) describes the change of state of charge (SOC) of an EV energy storage system, taking into account the effect of charge and discharge efficiency. Constraint (21) defines the initial SOC state. Constraint (22) sets the upper and lower limits of SOC. Constraints (23) and (24) limit the charging and discharging power of EV, respectively. Constraint (25) ensures that electric vehicles can only choose one operation during charging or discharging at any time, avoiding simultaneous operations.
The upper-level problem minimizes the total operating costs of the power system, while the lower-level problem maximizes the benefits for EV owners. By iteratively solving the bi-level optimization problem, the balance between the system cost and the benefit of electric vehicle owners is realized.

5. Case Studies

Due to the lack of public data sets on power grid operation under extreme typhoon conditions, this study adopts Monte Carlo simulation method to simulate the influence of typhoon on a custom radial structure 57-node power system based on the line failure probability model [22] under typhoon scenarios. The specific data generation and optimization model flow of this paper is as follows. Following the modeling methods in [22], a 24-h typhoon event is simulated to generate training and testing datasets. The study aims to minimize load loss and total system operational costs by designing a scheduling strategy that integrates prediction and optimization. In this paper, we construct a power system with a radial topology that integrates a custom-designed energy storage unit and an electric vehicle (EV) node. The key parameters of the system are adjusted according to the actual typhoon disaster scenario.
The Batts typhoon wind field model is used to calculate the real-time wind speed across transmission lines within the affected area. Combining the wind speed with the failure probability model for transmission lines, state data of the lines are generated. Using multivariate Monte Carlo simulations, key factors such as line geographic location, design wind speed, typhoon path, and distance from the typhoon center are considered to produce a large-scale, scenario-encompassing dataset.
A Transformer-based prediction model is implemented using Python. By leveraging self-attention mechanisms, the model captures temporal dependencies among input features, predicts the operational status (operational or failed) of transmission lines under typhoon conditions, and provides high-accuracy results.
Based on the prediction results, a bi-level optimization problem is solved using the Gurobi optimizer, where the upper-level model aims to minimize total system operational costs, including generation costs, load loss costs, and other related expenses, while the lower-level model focuses on maximizing the economic benefits of EV users. These two models are interconnected through shared decision variables, ensuring that the prediction results are seamlessly integrated into the optimization-based scheduling process.
In this study, the SPO framework is used to dynamically adjust the prediction model parameters by minimizing the SPO loss function using the difference between the scheduling cost caused by the prediction error and the optimal cost as feedback. This ensures that the prediction results are consistent with the optimization objective, thus improving the decision quality. In the cross-entropy method, the model only focuses on the accuracy of the predicted line state, but ignores how the prediction results affect the final scheduling decision. However, in the SPO method, the accuracy of the line state is only an intermediate link, and the ultimate goal is to reduce the system cost through effective scheduling optimization. Compared with the traditional cross-entropy loss method, the SPO framework solves the problem of the separation of the prediction and scheduling modules of the cross-entropy method in the environment without cost feedback by integrating the negative cost feedback into the prediction and optimal scheduling process. Therefore, the SPO method not only focuses on the accuracy of the line state, but also considers optimizing the decision results to better enhance the system performance.

5.1. Results Analysis

During typhoon simulations, a straight-line path is assumed for the typhoon’s motion. The real-time status of transmission lines is calculated at multiple time steps. At each time step, line statuses are provided by the prediction model, which are then used to update the scheduling plan dynamically, achieving real-time decision-making.
This section compares the performance of the Cross-Entropy Loss method and the SPO method in terms of line status prediction accuracy, total cost, and load shedding. The results show that even with similar prediction accuracy, the SPO method achieves superior cost control and load management. The SPO method effectively leverages prediction outcomes to achieve better system performance in subsequent dispatch optimizations, demonstrating its capacity to provide robust decision support under limited prediction accuracy.
We conducted a comparison between the SPO loss function as the experimental group and the cross-entropy loss function as the control group. According to Table 1 data, the accuracy rate of the experimental group was considerably higher than that of the control group even after only one training epoch. Based on the confusion matrix data of the experimental group, it was found that the accuracy rate of the experimental group typically exceeded 97%, while that of the control group was generally around 60% in the first epoch. Nevertheless, by the seventh training epoch, the accuracy rates of both groups were upper 97%.
At the same time, we chose the prediction accuracy rate data for damaged lines and made Figure 2. From the figure, it can be seen that there was a significant difference in the accuracy rate between the control group and the experimental group in the first two epochs. The accuracy rate of the control group was only about 65.7% in the first and second epochs, but it rose rapidly to 97.8% in the third epoch, reached a peak of nearly 99.7% in the fourth epoch, and declined slightly to about 98.3% in the fifth epoch. In contrast, the accuracy rate of the experimental group was as high as 97.8% in the first epoch, but was surpassed by the control group in the third epoch, and then fluctuated steadily without further improvement in the following epochs.
In conclusion, the experimental group exhibited a faster convergence rate, significantly outperformed the control group in terms of accuracy rate in the early epochs, and demonstrated more stable performance. This indicates that the optimization method of the experimental group not only possesses a higher accuracy rate, but also significantly reduces training time and has higher practicality. To sum up, the experimental group manifested faster convergence, saved training time and computing resources, and provided better real-time response capabilities in practical applications.

5.2. Cost Comparison

Under extreme weather conditions, even with similar accuracy in predicting grid line statuses, the SPO method still significantly reduces total system costs. The comparison is presented in Table 2.
As seen in Table 2, the total cost achieved by the experimental group after training for only one epoch is still much better than that of the control group trained for seven epochs. The total cost of the experimental group Epoch 1 decreased by 59.63% compared to the total cost of the control group Epoch 7. In addition, by increasing the number of training epochs for the experimental group, we can see that the total cost of the experimental group in Epoch 7 is further reduced by 12.35% compared to the total cost of the experimental group in Epoch 1. This shows that the SPO loss function can achieve significant results even in the first round. Although the prediction accuracy of the control group has improved greatly after seven epochs, the cost has not changed significantly, but increased slightly by 3.44%. It can be seen that the cost of the ordinary cross-entropy function may not be significantly improved after the prediction accuracy is greatly improved.
It can be seen from Figure 3 that high prediction accuracy does not necessarily directly translate into the optimal decision scheduling effect. Throughout all training rounds, the total cost of the experimental group was consistently significantly lower than that of the control group. This is due to the SPO optimization framework embedding the decision scheduling objective function directly into the prediction module, effectively integrating the prediction results with the optimization goal and significantly enhancing the effectiveness of the scheduling decision and its practical application value.

5.3. Load Shedding Comparison

The SPO approach shows superior flexibility in load management. Even in the case of similar prediction accuracy, load loss can still be greatly improved by scheduling generation units, energy storage and EV scheduling. Its load reduction is much less than that of the comparison group using the cross-entropy function, as follows.
In this study, in order to ensure the resilience of the power system under typhoon condition, I set a high unit cost of load reduction losses. The goal is to allow the system to prioritize system stability and resource allocation in the face of load reduction. At the same time, by increasing the unit cost of load reduction, the optimization model is forced to avoid large-scale load reduction when scheduling, so as to ensure the robustness of the system to the maximum extent. The optimization process is completed by Gurobi solver. The model takes into account the limit of generator climbing power, line disconnection and other system instability factors to ensure the rationality and practicability of scheduling results.
Table 3 and Figure 4 summarize the load reduction and cost changes in the experimental group compared with the control group. The total load reduction for the control group in the first cycle was 24,748.45 kW as the baseline data. In the seventh cycle, the total load reduction in the control group increased to 25,600.32 kW, which is 3.44% higher than in the first cycle.
In contrast, the experimental group had a total load reduction of 10,329.75kW in the first cycle, a reduction of 58.26% compared to the control group. In the seventh cycle, the total load reduction in the experimental group was further reduced to 9053.49 kW, 63.42% lower than that of the control group.
This shows that when the control group and the experimental group have similar prediction accuracy, the SPO method can make more effective decisions and significantly reduce load shedding by using cost as a negative feedback. By setting a higher unit cost of load reduction loss in the experimental group, the system can focus more on load reduction in the optimization process on the basis of ensuring toughness, thus achieving better scheduling results, reducing load reduction and effectively controlling the total system cost.

6. Conclusions

In this paper, a bi-level optimization model based on the SPO framework is proposed to deal with the challenges of power grid scheduling under extreme weather conditions. By combining prediction and optimization, the SPO method can rapidly respond to and optimize power system resource scheduling in the face of complex and dynamically changing extreme weather events, thereby effectively reducing load reduction and total system costs. Specifically, this paper first uses the Transformer-based prediction model to predict the real-time damage state of transmission lines in the power system, and then dynamically dispatches power grid resources through the bi-level optimization model. The upper-level model aims to minimize the overall cost of the power system, covering generation costs, load loss costs, etc., while the lower-level model focuses on maximizing the economic benefits for electric vehicle (EV) owners.
The research results show that the SPO method can not only effectively reduce the total cost and load reduction in the system on the basis of ensuring high forecasting accuracy, but also show significant advantages in cost control and load management under similar forecasting accuracy conditions. Through comparative experiments, the SPO method can realize more optimized resource allocation under the condition of limited resources and limited prediction accuracy, thus improving the system economy and enhancing the robustness and adaptability of the system. This shows that the SPO method can provide effective decision support for power grid dispatching under uncertain environments, such as extreme weather.
However, there are some limitations to this study. First, of all, the assumption of the typhoon path adopted in this paper is a straight line, without considering the complex changes of the typhoon path. In the future, a more complex typhoon path model can be introduced to improve the applicability of the model. Secondly, this study mainly focuses on the typhoon weather scenario, which can be extended to other types of extreme weather events such as heavy rain and drought in the future to enhance the universality and practicability of the model. In addition, the current bi-level optimization model adopts DC power flow constraints and does not consider the influence of reactive power on the system. Future studies could consider using AC power flow constraints and incorporate reactive power to further analyze the system’s stability.
In conclusion, this research provides an innovative solution for power grid dispatch under extreme weather conditions. By combining efficient prediction with optimization, the SPO framework not only improves the efficiency and economy of grid scheduling but also provides theoretical support and practical guidance for future responses to complex and changing extreme weather events.

Author Contributions

Conceptualization, methodology, software, validation, formal analysis, investigation, resources, data curation, writing—original draft preparation, writing—review and editing, visualization, supervision, project administration, and funding acquisition, all performed by H.Z. Review and guidance were provided by H.L. All authors have read and agreed to the published version of the manuscript.

Funding

This research received no external funding.

Data Availability Statement

The original contributions presented in the study are included in the article, further inquiries can be directed to the corresponding author.

Conflicts of Interest

The authors declare no conflicts of interest.

References

  1. Panteli, M.; Mancarella, P. Influence of extreme weather and climate change on the resilience of power systems: Impacts and possible mitigation strategies. Electr. Power Syst. Res. 2015, 127, 259–270. [Google Scholar] [CrossRef]
  2. Jun, G.; Feng, T.; Zelin, C.; Xianglong, L.; Wenhu, T. Vulnerability assessment for power transmission lines under typhoon weather based on a cascading failure state transition diagram. Energies 2020, 13, 3681. [Google Scholar] [CrossRef]
  3. Watson, E.B.; Etemadi, A.H. Modeling electrical grid resilience under hurricane wind conditions with increased solar and wind power generation. IEEE Trans. Power Syst. 2019, 35, 929–937. [Google Scholar] [CrossRef]
  4. Salman, A.M.; Li, Y.; Stewart, M.G. Evaluating system reliability and targeted hardening strategies of power distribution systems subjected to hurricanes. Reliab. Eng. Syst. Saf. 2015, 144, 319–333. [Google Scholar] [CrossRef]
  5. Tari, A.N.; Sepasian, M.S.; Kenari, M.T. Resilience assessment and improvement of distribution networks against extreme weather events. Int. J. Electr. Power Energy Syst. 2021, 125, 106414. [Google Scholar] [CrossRef]
  6. Chang, L.; Wu, Z. Performance and reliability of electrical power grids under cascading failures. Int. J. Electr. Power Energy Syst. 2011, 33, 1410–1419. [Google Scholar] [CrossRef]
  7. Lian, X.; Qian, T.; Li, Z.; Chen, X.; Tang, W. Resilience assessment for power system based on cascading failure graph under disturbances caused by extreme weather events. Int. J. Electr. Power Energy Syst. 2023, 145, 108616. [Google Scholar] [CrossRef]
  8. Hou, H.; Geng, H.; Huang, Y.; Wu, H.; Wu, X.; Yu, S. Damage probability assessment of transmission line-tower system under typhoon disaster, based on model-driven and data-driven views. Energies 2019, 12, 1447. [Google Scholar] [CrossRef]
  9. Yu, Q.; Li, Z.; Han, X.; Ju, P.; Shahidehpour, M. End-to-end learning for stochastic preventive dispatch of renewables-rich power systems in abnormal weather conditions. Renew. Energy 2024, 234, 121107. [Google Scholar] [CrossRef]
  10. Li, R.; Zhang, H.; Sun, M.; Teng, F.; Wan, C.; Pineda, S.; Kariniotakis, G. Decision-oriented learning for future power system decision-making under uncertainty. arXiv 2024, arXiv:2401.03680. [Google Scholar]
  11. Wahdany, D.; Schmitt, C.; Cremer, J.L. More than accuracy: End-to-end wind power forecasting that optimises the energy system. Electr. Power Syst. Res. 2023, 221, 109384. [Google Scholar] [CrossRef]
  12. Elmachtoub, A.N.; Grigas, P. Smart “predict, then optimize”. Manag. Sci. 2022, 68, 9–26. [Google Scholar] [CrossRef]
  13. Eskandarpour, R.; Khodaei, A.; Paaso, A.; Abdullah, N.M. Artificial intelligence assisted power grid hardening in response to extreme weather events. arXiv 2018, arXiv:1810.02866. [Google Scholar]
  14. Zhang, J.; Wei, J.; Li, X. Impact analysis of typhoon on cascading failure for electric power system. Electr. Power Autom. Equip. 2019, 39, 157–162. [Google Scholar]
  15. Wang, Z.; Wang, Z. A novel preventive islanding scheme of power system under extreme typhoon events. Int. J. Electr. Power Energy Syst. 2023, 147, 108857. [Google Scholar] [CrossRef]
  16. Hou, H.; Yu, S.; Wang, H.; Xu, Y.; Xiao, X.; Huang, Y.; Wu, X. A hybrid prediction model for damage warning of power transmission line under typhoon disaster. IEEE Access 2020, 8, 85038–85050. [Google Scholar] [CrossRef]
  17. Dai, Z. Transformer-xl: Attentive language models beyond a fixed-length context. arXiv 2019, arXiv:1901.02860. [Google Scholar]
  18. Javadi, E.A.; Joorabian, M.; Barati, H. A bi-level optimization framework for resilience enhancement of electricity and natural gas networks with participation of energy hubs. Int. J. Electr. Power Energy Syst. 2022, 142, 108312. [Google Scholar] [CrossRef]
  19. Fan, W.; Tan, Q.; Zhang, A.; Ju, L.; Wang, Y.; Yin, Z.; Li, X. A Bi-level optimization model of integrated energy system considering wind power uncertainty. Renewable Energy 2023, 202, 973–991. [Google Scholar] [CrossRef]
  20. Liu, W.; Fu, M.; Yang, M.; Yang, Y.; Wang, L.; Wang, R.; Zhao, T. A bi-level interval robust optimization model for service restoration in flexible distribution networks. IEEE Trans. Power Syst. 2020, 36, 1843–1855. [Google Scholar] [CrossRef]
  21. Qiu, H.; Zhao, B.; Gu, W.; Bo, R. Bi-level two-stage robust optimal scheduling for AC/DC hybrid multi-microgrids. IEEE Trans. Smart Grid 2018, 9, 5455–5466. [Google Scholar] [CrossRef]
  22. Liu, X.; Hou, K.; Jia, H.; Zhao, J.; Mili, L.; Jin, X.; Wang, D. A planning-oriented resilience assessment framework for transmission systems under typhoon disasters. IEEE Trans. Smart Grid 2020, 11, 5431–5441. [Google Scholar] [CrossRef]
Figure 1. Bi-level optimization decision process for power system based on SPO framework.
Figure 1. Bi-level optimization decision process for power system based on SPO framework.
Energies 18 00615 g001
Figure 2. Accuracy comparison between Experimental and Control groups.
Figure 2. Accuracy comparison between Experimental and Control groups.
Energies 18 00615 g002
Figure 3. Comparison of Costs between Experimental and Control groups.
Figure 3. Comparison of Costs between Experimental and Control groups.
Energies 18 00615 g003
Figure 4. Comparison of load reduction between Experimental and Control groups.
Figure 4. Comparison of load reduction between Experimental and Control groups.
Energies 18 00615 g004
Table 1. Confusion matrices for Control and Experimental groups at Epochs 1 and 4 for power grid line statuses.
Table 1. Confusion matrices for Control and Experimental groups at Epochs 1 and 4 for power grid line statuses.
Epoch 1—Control Group
Predicted
OperationalOutage
ActualOperational0.64840.3516
Outage0.34300.6570
Epoch 1—Experimental Group
Predicted
OperationalOutage
ActualOperational0.99700.0030
Outage0.02400.9760
Epoch 7—Control Group
Predicted
OperationalOutage
ActualOperational0.99330.0067
Outage0.01450.9855
Epoch 7—Experimental Group
Predicted
OperationalOutage
ActualOperational0.99780.0022
Outage0.02470.9753
Table 2. Total cost comparison across different groups and epochs.
Table 2. Total cost comparison across different groups and epochs.
Comparison ItemTotal Cost (CNY)
Epoch 1 Control Group Total Cost24,750,096.35
Epoch 7 Control Group Total Cost25,602,191.73
Epoch 1 Experimental Group Total Cost10,332,719.38
Epoch 7 Experimental Group Total Cost9,056,648.69
Table 3. Total load shedding and cost changes compared to Control group.
Table 3. Total load shedding and cost changes compared to Control group.
GroupTotal Load
Shedding (kW)
Cost Change Compared
to Control (%)
Epoch 1 Control24,748.45-
Epoch 7 Control25,600.323.44%
Epoch 1 Experimental10,329.75−58.26%
Epoch 7 Experimental9053.49−63.42%
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

Zhang, H.; Liu, H. Real-Time Power System Optimization Under Typhoon Weather Using the Smart “Predict, Then Optimize” Framework. Energies 2025, 18, 615. https://doi.org/10.3390/en18030615

AMA Style

Zhang H, Liu H. Real-Time Power System Optimization Under Typhoon Weather Using the Smart “Predict, Then Optimize” Framework. Energies. 2025; 18(3):615. https://doi.org/10.3390/en18030615

Chicago/Turabian Style

Zhang, Haoran, and Haoran Liu. 2025. "Real-Time Power System Optimization Under Typhoon Weather Using the Smart “Predict, Then Optimize” Framework" Energies 18, no. 3: 615. https://doi.org/10.3390/en18030615

APA Style

Zhang, H., & Liu, H. (2025). Real-Time Power System Optimization Under Typhoon Weather Using the Smart “Predict, Then Optimize” Framework. Energies, 18(3), 615. https://doi.org/10.3390/en18030615

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