Distributed Optimal Control of Transient Stability for a Power Information Physical System

+e development of power energy structures and information communication technology has promoted the renewal of smart grid information-physical structures. At the same time, the changes in the smart grid energy structure and the vulnerability of the information network threaten the stability of the power system and uses multiagent control theory to improve the transient stability of the power grid which has strong practicability. In this paper, an optimized distributed control scheme is proposed for application to the smart grid model so that the grid system can flexibly adapt to the external operating conditions and recover to stable operating conditions after being disturbed. In this paper, an intelligent power grid information-physical network simulation system is established. According to the information exchange within the multiagent system, groups of coherent generators in the disturbed power grid in different regions are identified and controlled. Distributed control is applied to maintain the exponential frequency synchronization and phase angle aggregation of the synchronous generators to achieve transient stability. Finally, the effectiveness and rapidity of the proposed distributed optimal control scheme are verified by simulation analysis of the IEEE 39 node model.


Introduction
With the reorganization and renewal of the energy structure in recent years, the standards of smart grid systems in terms of their transient stability have been raised. A smart grid itself is based on the ultra-high-voltage UHV backbone transmission network and deeply integrates more stable information network technology to establish a strong power system network, realizing close connection and integration of the power system and information system [1]. e development of CPSs promotes the deep integration of physical power systems and power information systems. It provides a new way to realize the goal of power grid intelligence [2]. In the smart grid model, the information network dispatching centre node collects and processes the information of each physical power station and sends corresponding control instructions. Each physical power station supplies power to the information node to ensure its normal operation. rough this connection, the mutual correlated information in computing will cause a too high computational burden, resulting in poor performance of the system state. e stability and flexibility of smart grids can be effectively improved by determining an appropriate dependency on the information network and information flow. For phasor measurement units (PMUs), which are synchronous phasor measurement devices, a reasonable number of them at suitable locations can synchronously collect the corresponding parameters of the power system at the installation site and achieve the overall observability, economic and reliability goals of the system online state calculation, and system state prediction [7][8][9]. In this paper, PMUs are introduced into the optimal configuration of the power system network structure to measure the voltage vectors of some nodes, which can improve the dependence on information, providing strong initial conditions and a discrimination basis for system stability analysis, protection, and reconstruction. is is of great significance for system online state calculation and system state prediction. e traditional power grid control strategy mostly adopts a centralized scheduling method, and the dispatching centre needs to communicate with all generators and load nodes through the information network, with a high degree of communication dependence [10]. e "plug and play" technology required by the grid connection and independent operation of new energy and power components make the topological structure of the information network and physical network of the smart grid changeable [11]. e centralized control strategy has difficulty avoiding the high cost of communication facility construction. Distributed control technology can meet the flexibility requirements and provide high-efficiency control constraints [12]. In [13], a smart grid scheduling strategy considering flexible load is designed, which have better convergence and application prospect compared with the centralized scheduling strategy.
In [14,15], distributed control is used to reduce the cost of the communication network, and power distribution and frequency stability are achieved. Energy storage technology provides a new technology choice for the safe and economic operation of power grids, stabilization of power fluctuations, and distributed control [16][17][18][19]. In [16][17][18], the influence of flywheel energy storage on the power balance and stability of the power grid is studied. In [19], a fast control method for a battery energy storage system is adopted to improve the transient stability of the power grid. In [20], a distributed control method of energy storage system based on real-time wind power output regulation of energy sharing is proposed. In [21], a distributed intelligent power grid controller based on the Robust Consistency Algorithm of the second-order multiagent system is proposed. e controller is composed of a physical topology model of the network. e delay characteristics and anti-interference ability of the controller are verified by the IEEE39 node system.
In [22], the problem of cluster behavior and target consistent tracking of heterogeneous multi-inertial bodies with limited communication distance is studied. A distributed control protocol is designed to enable agents to achieve stable group behavior. In [23], a distributed observer is designed to estimate the relatively complete state of a general linear multiagent system that does not directly enter the real-time state, and it is used to track the consistency protocol, so as to achieve the overall consistency. In [24], a distributed multicluster method based on partial information exchange is designed by studying the multiobjective consistency pursuit of the multiagent system, and sufficient conditions are given to realize the dynamic goal consistency  pursuit, so that the agent can adaptively select the target for tracking. In [25], we study the problem of consistency tracking of heterogeneous interdependent group systems with fixed communication topology and propose a distributed consistency tracking control protocol, which uses local information to achieve the consistency tracking of heterogeneous interdependent group systems. In [26], a new scale consistency protocol is proposed to solve the problem of time-varying delay in nonlinear dynamics and communication networks. In this paper, based on the rules of speed consistency and group concentration of a multiagent system, the phase angle (rotor angle) aggregation and frequency consistency of power grid generators are realized by using the local and associated node information to inject power into or absorb power from generator nodes through an external energy storage device (such as a flywheel) to ensure synchronous operation of the generators and realize transient stability of the power system. In the context of transient stability, this paper integrates information and physical nodes into an agent, adopts the distributed control strategy of a "leading assisting" agent, and utilizes the information of local and other regional physical nodes and the coupling relationship of the physical network. It also realizes global information flow and stable operation of the system through the interaction of the information and physical networks and external energy storage. In this paper, the IEEE 39 node grid model is used as an example to demonstrate the effectiveness of the application of optimized distributed control in the smart grid model to maintain the stability of the system [27].

Transient Stability Control of a Smart Grid
To ensure that the power grid can quickly respond after being disturbed by information and a physical disturbance and reduce the implementation time of transient stability zone control, necessary information network reliability optimization measures are taken to reduce information redundancy and unnecessary calculation and achieve the purpose of real-time control.

Reliability Optimization of a Smart Grid Information
Network. Considering the reliability of the data processing of the information network under the influence of a single line fault in the physical network, the goal of a fully observable power network can be achieved by ensuring the optimal configuration of PMUs (synchronous vector measurement devices) with different channel capacities in the information network. Based on the configuration rule [28] of the minimum number of PMUs in the information network, the PMU optimization method to avoid scheme repetition is adopted, and the model is defined as follows: where x k is 1 or 0, which indicates whether physical grid node k has a PMU installed; A � (a ij ) is the node correlation matrix, where if the two nodes i, j are adjacent or the same, then a ij � 1and otherwise, a ij � 0; 1 is the column vector whose elements are all 1; f k � x k + l∈G x l ; and G indicates the set of all nodes connected to node k.
Considering the 39-node grid model, the node correlation matrix is as follows: e cost of installing PMU equipment at node i is as follows: e cost of equipment installation is the sum of a fixed cost and a variable cost, n ch is the number of PMU channels, indicating the number of observable adjacent lines, generally 1-5, and the variable cost is increased by 0.1 for each additional line.
According to the above constraint rules, the following formula can be obtained to realize the fully observable IEEE 39 node power network topology: To further explain the impact of the number of channels, the following variables are introduced: 1 PMU was installed on node i and made nodejobservable, en, the above formula can be rewritten to obtain the following inequalities: In the case of a single line fault in the physical network, the number of channels on the right side of the fault point at the end of the node line is accordingly changed (i.e., multiplied by 2 to ensure that each node is observed by at least two PMUs). e configuration with the lowest cost is 2, 6,8,15,16,17,20,23,25,26,29, and 35. In the distributed control framework, the sensitivity of the information nodes is considered to select the dominant generator in the area.

Smart Grid Distributed
Framework. According to the information network reliability optimization results and the multiagent system model, a distributed control framework is designed for cooperation between the generator and the external energy storage system in the smart grid. In this framework, the corresponding information and physical equipment at each generator node are combined to form an agent. Each agent represents its main properties by the physical quantities of the generator. e information equipment includes a measurement unit (PMU) and a controller, both of which perform calculations and applications related to information and data. e physical equipment also includes external energy storage equipment in addition to the generator. Only when external energy storage is needed to inject power or absorb a certain power, P L,i will the corresponding controller of the generator agent be activated.
e agents that describe the information-physical network interaction and the system model ( Figure 2). e generator participating in stability control of the physical power grid and frequency adjustment without difference is the leading generator, which is realized by the information network through selective control; the power regulation of other generators in the same zone is controlled by the information network to proportionally change with the power of the leading generator to assist in frequency regulation of the leading generator. e synchronous generators play a leading role in the physical power grid, and thus the stability of the power grid is largely a problem of keeping the interconnected generators synchronized [19]. A smart grid maintains synchronous generator frequency synchronization and phase-angle aggregation by using a distributed control framework based on the multiagent model. According to the requirements of frequency synchronization, the normalized speed corresponding to the grid frequency is selected and denoted by ω, and the generator label in the physical grid is To avoid the rapid drop of the node voltage caused by the phase angle difference of the generator terminal voltage exceeding a certain range, thus affecting the safe operation of the unit, the phase angle aggregation requires that generators i and j satisfy the following: where c is a predefined threshold, usually 5π/9.

Smart Grid Control Target
Model. e information network selection coefficient h i is set as follows: h i � 1, the i − th agent contains the leading generator, 0, others. , is coefficient is used to determine the selective control behaviour of the information network with respect to the physical network and ensure timely control of the main generator agent contained in each partition.
If there is a controller that connects the physical power grid with the information network, then the oscillating equation between motors can be obtained under the constant voltage condition [29]: e transient stability problem of a smart grid is described as the control task of multiagent swarm concentration with consistent speed, and then the second-order dynamics model of multiagents is used to describe each agent as follows [30]: e controller signal is defined as u i � P L,i for agent i � 1, ..., F, which corresponds to the agent containing the main generator. Since only one main generator is selected for each partition, Falso represents the number of physical power grid zones.
Generally, h i � 1 is set for i ≤ F; otherwise, h i � 1 corresponds to other agents in the partition that assist in the adjustment, e auxiliary regulated power of the corresponding generator is P F+i � a F+i · P L,i , where a is a proportional coefficient that varies with the power of the leading generator and l ij is an element of the physical relation matrix L, which is represented as In this case, a new control quantity u i is introduced to define the controller signal u i as where B i ≥ (100 * D i ) is an element in information relation matrix B.

Smart Grid Area Division.
e main properties of each agent in the smart grid are described by the physical quantities of the generators in the physical grid. Let the state information carried by agent i at time t � k be When the time step is t � k, θ i (k) and ω i (k) are the rotor angle and speed of the i-th generator, respectively, which are physical quantities directly obtained from the PMU. S i (k) � [x i (k), v(k)] T describes the status information carried by individuals, where x i (k) and v i (k) correspond to the position and speed of the individual at time step t � k. If the distance between two individuals is less than the threshold r, then they are considered as being in each other's neighbourhood. e neighbourhood set for the i-th individual is defined as follows:  Mathematical Problems in Engineering 5 According to the similarity of the individual dynamic state quantities, the region is divided; forj ∈ N i (k), the relationship between individuals i and j in the same group meets the following requirement: whereS th (k) is the set threshold value. e following dynamic model is used: e physical dynamic quantity of the agent has been transformed into the individual state quantity in the information space, and multiple groups containing different individuals are simultaneously obtained, which are composed of agents with close physical coupling in the actual smart grid corresponding to the partition.

Smart Grid Distributed Controller.
According to formula (13), letting M i � D i + B i , the second-order system of the set containing the leading generator agent is determined as To achieve transient stability of the smart grid, the distributed control signal applied to the agent (label i � 1, 2, · · · , F) with the leading generator in each partition is as follows: where c is a constant representing the coefficient of the feedback term; ω is the expected normalized speed value. l ij is an element in the velocity matching matrix L, and the first term is the V(θ ij ) gradient, where the potential function V(θ ij ) is defined as follows: e above functions ensure that the rotor angle difference between agents is bounded.

Analysis of the Distributed Control Stability of a Smart Grid
Theorem 1. Consider a second-order system with expected values of the guidance feedback terms in kinetic equations (18) and (19). Suppose that the initial velocity does not match the expected value and that the initial energy H 0 is finite; under the action of control protocol equation (19), all agents asymptotically and uniformly converge to the corresponding reference speed, corresponding to the expected speed of the generator of ω * , and the group behaviour is consistent with global stability.
Proof. Let θ i � θ i − θ * and ω i � ω i − ω * represent the differences between the physical quantities of the agent and the expected values, respectively, then: According to equations (18), (19), and (21), the control function can be obtained as follows: e Lyapunov function is defined as the total energy of the system, that is, the sum of the total potential energy between agents and the relative potential energy and kinetic energy between the physical quantities of the agents and the expected reference quantities: Since the potential function V(θ ij ) is symmetric with respect to θ ij (i, j � 1, ..., F), e derivative of equation (23) can be obtained: Equation (22) can be substituted into equation (25) to obtain Since L is a semipositive definite Laplace matrix and c > 0, L + cI is a positive definite matrix, and thus, ω T [(L + cI)]ω > 0 and _ H < 0. erefore, the agents asymptotically stably converge to their expected reference values under control input (19).

Simulation Example
In this paper, the IEEE 39 node smart grid model is analysed as an example, which includes 19 loads and 46 lines, which are simulated by the MATLAB/Simulink platform. According to the classification of a short-circuit fault, centralized control after a fault and swarm control after a fault, the examples are divided into four scenarios. Scenario 1. Suppose at t � 0 s, a three-phase short-circuit fault occurs on disturbed line 21-22 of the power grid. Disconnect the fault line and set h i � 0 for i ∈ V, V � 1, 2, · · · , Z { }, that is, the controller connecting the information and physical networks is not activated and the information network traffic and calculation amount are minimal. e relationships between the speeds of each generator and the rotor angles are given in Figure 3. e system operation is obviously unstable, the rotor angle has an increasing difference trend, and the power network has a serious fault.

Scenario 2.
Under centralized control, each node of the power grid needs to transmit information to the dispatching centre. After centralized processing, a large number of PMUs and communication lines are needed to ensure information collection and transmission. In the period before centralized control after fault removal, it is necessary to collect the state information of the whole power grid, assuming that the data can be collected and processed within the preset critical time after fault treatment under ideal conditions. When t � 0.15 s, set h i � 0 for i ∈ V, V � 1, 2, · · · , Z { }, so that all generator nodes are controlled by no difference regulation. Under ideal conditions (Figure 4), the rotor angles and speeds of the generators change with time and the system achieves a stable state in a short time. However, the system is in the state of maximum information transmission and processing. e control equipment of each generator node frequently uses external energy devices to adjust the power of the corresponding nodes. e overall energy consumption of the whole regulation process is large, and the network topology and performance of the related equipment are not fully utilized.

Scenario 3.
e flocking control method leads to a stable performance ( Figure 5). Distributed flocking control can reduce the equipment cost and improve the centralized control of information processing, the energy consumption, and the critical stability range in the 5 s of the observation period, but the fluctuation range is larger. e smart grid after using each agent to facilitate control tends to be stable for a long time. e distributed optimal control method in this paper is used to control the performance ( Figure 6). e smart grid partition identification scheme should be enabled within the preset critical time point after fault treatment to avoid more damage and improve the ability of the smart grid to restore transient stability. e distributed optimal control is applied to the agents containing the main generators, that is, setting h i � 1 for i � 1, ..., F. First, determine the smart grid partition based on the similarity of the intelligent agent dynamic characteristics; that is, the smart grid agent quantity changes corresponding to the movement trend of individuals in the information space. Next, obtain the state information of individual trajectories, described as individual motion curves in a twodimensional space. From the trend of separation of individuals in the information space, that is, the change of the    Mathematical Problems in Engineering physical quantities of each agent after the failure, it can be found which individuals are obviously far from other individuals and which movement trends are the closest. e following partitions can be obtained from the partitioning scheme of dynamic recognition of each agent: G1 { }, G2 G3 G8 G9 G10 { }, and G4 G5 G6 G7 { }. Second, on the basis of information network reliability optimization combined with the actual active power output for each agent and sensitivity weight arrangement of the node data, reasonable leading generators G1, G7, and G9 are selected for each partition, and distributed optimal control is applied to the intelligent agent with the leading generator to achieve the goal of system transient stability.
Within the critical time after the fault is cut off, partition identification and leading generator selection are completed. At t � 0.15 s, the distributed control scheme combining the information and physical networks is applied to the smart grid. e state quantities of each agent change with time ( Figure 6). e control objective is achieved for each agent in each partition, and the corresponding physical quantity converges to a certain value according to the partition. Since external energy injection could impact actual operation and lead to certain fluctuations, we quickly recover to the stable operation of the steady-state power system. e generator speeds are stable and gradually converge, and the rotor angles satisfy the requirements of the constraint and stable state. Under the conditions of information use and smaller external energy injection, the good effect of a shorter stable system recovery time, a smaller physical quantity fluctuation range, and an increased stability margin of the system are achieved.
Under the action of centralized control method, the system can resume stable operation in a short time, but the disadvantage is that the system is in the state of maximum information transmission and processing and the overall energy consumption is large. Compared with centralized control, distributed swarm control improves the disadvantages of large amount of information processing and energy consumption, but the time of system stability is prolonged. e distributed optimal control method proposed in this paper can quickly restore the stability of the system, reduce the energy consumption, and improve the stability margin of the smart grid.

Conclusions
In this paper on transient stability control of the smart grid model, the distributed multiagent control method adopted in the power grid model after reliability optimization of the information network is described. In the distributed control framework, the dynamic similarity of the physical parameters of the generators is used to form each zone, and external energy storage is used to adjust the agents in each zone. e leading generator realizes no difference adjustment, and other generators in the same zone adjust their power proportional to the adjusted power of the leading generator to achieve asymptotic stability of each zone. e simulation results in this paper verify the effectiveness of the proposed control scheme, which finally achieves transient stability and control of the smart grid model, and it has fast and stable performance compared with swarm control. e idea presented in this paper has a certain reference value for improving the transient stability of smart grids in practical projects.

Data Availability
e data used to support the findings of this study are included within the article.

Conflicts of Interest
e authors declare that they have no conflicts of interest.