A DC microgrid elastic control method and controller based on distributed sliding mode control
Through the distributed sliding mode control method, feedback linearized coordinate transformation and diffeomorphic mapping are used to calculate the distributed sliding mode control law, which solves the voltage tracking and power distribution problems of DC microgrid under actuator failure and false communication data attacks. , achieving elastic control and improved safety margin of the system.
Patent Information
- Application Number
- CN202210080770.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-01-24
- Publication Date
- 2024-09-10
- Estimated Expiration
- 2042-01-24
AI Technical Summary
Existing DC microgrid control methods fail when actuators fail and false communication data attacks occur, resulting in system instability and high consumption of computing and communication resources, making it difficult to achieve flexible control of voltage tracking and power distribution.
Using a method based on distributed sliding mode control, through feedback linearized coordinate transformation and diffeomorphic mapping, the distributed sliding mode control law is calculated, communication and computing resources are reduced, and elastic control of the DC microgrid is achieved. Specific steps include obtaining node output Voltage and current, calculate the sliding mode surface and control input, and update the switching tube duty cycle.
In the case of actuator failure and false communication data attacks, elastic control of DC bus voltage tracking and power proportional distribution is achieved, which improves the system's operational flexibility and safety margin, and reduces the consumption of communication and computing resources.
Smart Images

Figure CN114447910B
Abstract
Description
Technical Field
[0001] The present invention relates to the field of microgrid control technology, and in particular to a direct current microgrid elastic control method and a controller based on distributed sliding mode control. Background Art
[0002] As energy shortages and environmental pollution problems worsen worldwide, microgrids have attracted widespread attention from scholars around the world due to their low-carbon, environmentally friendly, and flexible characteristics. Since most distributed power sources, energy storage devices, and load units have DC characteristics, they can be directly connected to DC microgrids of appropriate voltage levels. The number of converters required is small, the economic benefits are high, and the control is relatively easy. Therefore, research on them has certain theoretical significance and engineering value.
[0003] In a DC microgrid, the DC bus voltage tracking accuracy and power distribution ratio are key control objectives. The existing mainstream solution is a distributed control method based on consistency theory. This method can eliminate the voltage deviation caused by traditional droop control and improve the power distribution effect by introducing a data communication network to ensure the consistency of the system state variables. However, the continuous development and application of modern information technology in microgrid systems in recent years has not only improved its information and intelligence level, but also introduced more information security risks. Actuator failure and false communication data attacks will make the distributed control algorithm of a single node invalid, and cause chain failures through the data communication network to cause instability of other nodes in the system. To solve such problems, one type of solution introduces a state observer to detect abnormal states, but it is only applicable to actuator failures and has a high computational cost; another type of solution configures a multi-layer communication network to provide redundant information, which can detect and resist false communication data attacks under strict assumptions, but it doubles the communication burden, and some assumptions deviate from the actual engineering situation and are not feasible. Summary of the invention
[0004] The purpose of the present invention is to address the deficiencies in the prior art and provide a DC microgrid elastic control method and controller based on distributed sliding mode control. The method occupies fewer communication resources and computing resources, and can achieve elastic control of DC bus voltage tracking and power ratio distribution when actuator failure and false communication data attack coexist, thereby improving the operating elasticity and safety margin of the DC microgrid.
[0005] The objective of the present invention is achieved through the following technical solution: A DC microgrid elastic control method based on distributed sliding mode control, comprising the following steps:
[0006] A DC microgrid elastic control method based on distributed sliding mode control, the method comprising the following steps:
[0007] 1) Obtain the output voltage V of the converter corresponding to each node i of the DC microgrid oi , inductor current I Li , output current I oi , and obtain the switch duty cycle d obtained from the last control calculation i ;
[0008] 2) Select the state variable x si =[x si1 ,x si2 ,x si3 ] T =[I Li ,V oi ,d i ] T , output variable y i =V oi +r i I Li , control input u i is the first derivative of the duty cycle Known disturbance w i =I oi , r i is the droop coefficient of the converter, and the differential homeomorphism mapping z is obtained by feedback linearization coordinate transformation i and its control error
[0009] 3) Control error based on diffeomorphic mapping Calculate the sliding surface s i , and sends the calculated data to the corresponding neighbor nodes according to the communication topology;
[0010] 4) Node i based on its own sliding surface s i And the data of neighboring nodes obtained through communication, calculate the distributed sliding mode control law v i and the corresponding control input u i The switch duty cycle of the converter corresponding to node i is updated through integral operation to achieve flexible control of the DC microgrid.
[0011] Furthermore, the converter includes a buck converter and a buck-boost converter operating in a buck mode.
[0012] Furthermore, in step 2), the differential homeomorphism mapping z obtained by the feedback linearized coordinate transformation is i The calculation formula is:
[0013]
[0014] Control Error of Diffeomorphic Mapping Specifically:
[0015]
[0016] Where L i is the inductance value in the converter, C i is the capacitance value in the converter, V Si is the voltage of the DC power input converter, For z i The control reference value, is the reference voltage of the DC bus, R load is the equivalent resistance value of the total load of the DC microgrid, and N is the number of nodes in the DC microgrid.
[0017] Furthermore, in step 3), the sliding surface s i The calculation formula is:
[0018]
[0019] Among them, the control coefficients c1>0, c2>0, 0<α1<1, α2=2α1 / (α1+1), and sgnx is the sign function.
[0020] Furthermore, in step 4), the distributed sliding mode control law v i The calculation formula is:
[0021]
[0022] Among them, the control coefficients k1>0, k2>0, a ij ≥0 is the communication weight from node j to node i, b i ≥0 is the fixed weight of node i’s self-control, N i is the set of neighbor nodes of node i.
[0023] Control input u i The calculation formula is:
[0024]
[0025] To u i An integral operation is performed to obtain the duty cycle of the switch tube of the converter corresponding to node i.
[0026] A DC microgrid elasticity controller based on distributed sliding mode control includes one or more processors for executing the DC microgrid elasticity control method based on distributed sliding mode control.
[0027] The beneficial effects of the present invention are:
[0028] 1. The control method of the present invention does not require the setting of a state observer or a multi-layer communication network, so it occupies less communication resources and computing resources, and is easy to deploy and apply in a multi-node microgrid system;
[0029] 2. The control method of the present invention can effectively resist the influence of actuator failure and false communication data attack on voltage tracking and power distribution, and improve the operation flexibility and safety margin of the DC microgrid. BRIEF DESCRIPTION OF THE DRAWINGS
[0030] Figure 1 It is the DC microgrid system architecture diagram;
[0031] Figure 2 This is a block diagram of the topological structure and control method of a single-node buck converter; the serial numbers in the figure are the serial numbers of the formulas;
[0032] Figure 3 It is the DC bus voltage waveform under the preset operating conditions;
[0033] Figure 4 It is a comparison chart of the output power of each node under the preset operating conditions. DETAILED DESCRIPTION
[0034] In order to intuitively verify the performance of the control method of the present invention, it is described below based on the accompanying drawings and specific embodiments.
[0035] The present invention provides a DC microgrid elastic control method based on distributed sliding mode control, wherein the DC microgrid includes a plurality of nodes ( Figure 1 The DC microgrid has four nodes (shown as four nodes) and a DC bus, each node is connected to the DC bus through a converter, and the method of the present invention realizes elastic control of the DC microgrid by controlling the duty cycle of the switch tube of the converter corresponding to each node in the DC microgrid. The converter can be a buck converter or a buck-boost converter running in buck mode. This embodiment takes the buck converter as an example, specifically, Figure 2 As shown, the method comprises the following steps:
[0036] 1) Obtain the output voltage V of the converter corresponding to each node i of the DC microgrid oi , inductor current I Li , output current I oi , and obtain the switch duty cycle d obtained from the last control calculation i ;
[0037] 2) Select the state variable x si =[x si1 ,x si2 ,x si3 ] T =[I Li ,Voi ,d i ] T , output variable y i =V oi +r i I Li , control input u i is the first derivative of the duty cycle Known disturbance w i =I oi , through feedback linearization coordinate transformation, we get the differential homeomorphism mapping z i and its control error
[0038] This step is based on the state space average equation of the buck converter, establishing a single-input single-output affine nonlinear system, and then obtaining it through feedback linearization coordinate transformation, specifically:
[0039] 2.1) First, establish the state space average equation of the i-node buck converter:
[0040]
[0041] Among them I Li is the inductor current in the i-node buck converter, d i is the duty cycle of the switch in the i-node buck converter, V Si is the DC power supply input voltage in the i-node buck converter, V oi is the output voltage of the buck converter at node i, I oi is the output current of the i-node buck converter, L i is the inductance value in the i-node buck converter, C i is the capacitance value in the i-node buck converter.
[0042] Select the control input u i is the first derivative of the duty cycle Based on the integral operation, the duty cycle of the switch tube is obtained:
[0043] d i =∫u i dt (2)
[0044] 2.2) Establish a single-input single-output affine nonlinear system for each node transformer:
[0045] The standard form of a single-input single-output affine nonlinear system is expressed as:
[0046]
[0047] Where the subscript i is the index, x siis the state variable of a single-input single-output affine nonlinear system, is x si The first derivative of i (x si ) is the system function, g i (x si ) is the control function, h i (x si ) is the output function.
[0048] Select the state variable x si =[x si1 ,x si2 ,x si3 ] T =[I Li ,V oi ,d i ] T , output variable y i =V oi +r i I Li , the known disturbance w i =I oi , where r i is the droop coefficient of the buck converter.
[0049] According to the definition of single-input single-output affine nonlinear system, combining equations (1), (2), and (3), we can obtain:
[0050] f i (x si )=A i x si +B i w i , g i (x si )=D i ,h i (x si )=E i x si ,
[0051] E i =[r i 1 0].
[0052] Substituting the above parameters into equation (3) we can obtain the single-input single-output affine nonlinear system of each node i converter.
[0053] 2.3) Determine the relative order of the single-input single-output affine nonlinear system and obtain the differential homeomorphism mapping z i :
[0054]
[0055] in Yes i (x si ) Along g i (x si ), Yes i (x si ) along f i (x si ), yes Along i (x si ), yes Along f i (x si ) is the Lie derivative of .
[0056] According to formula (4), the relative order is 2, so we take the differential homeomorphism mapping
[0057] In order to verify z i feasibility, assuming that the state variable corresponding to the internal dynamics is Depend on Pick Get the coordinate transformation relationship:
[0058]
[0059] Select the input so that the output is always zero, that is, z i1 =z i2 = 0, while ignoring the known disturbance w i =0, according to equations (3) and (5), we can get the zero dynamic characteristics of the system:
[0060]
[0061] yes The first-order derivative of ; it can be seen that the zero dynamics of the system is stable, so the internal dynamics are also stable, so the selected z i The feasibility of the subsequent control law can be guaranteed.
[0062] 2.4) Based on feedback linearization theory, we get z i The state space equations are:
[0063]
[0064] in, Respectively represent z i1 、z i2 The first derivative of iis the control law to be designed, which is related to the control input u i The relationship is:
[0065]
[0066] 2.5) Calculate the control error of node i
[0067]
[0068] in For z i The control reference value, is the reference voltage of the DC bus, R load is the equivalent resistance value of the total load of the DC microgrid, and N is the number of nodes in the DC microgrid.
[0069] Based on formula (7), we can get The state space equations are:
[0070]
[0071] in, Respectively The first derivative of .
[0072] 3) Control error based on diffeomorphic mapping The sliding surface of the i-node is calculated as:
[0073]
[0074] Among them, the control coefficients c1>0, c2>0, 0<α1<1, α2=2α1 / (α1+1), and sgnx is the sign function.
[0075] Finally, each node sends the calculated data to the corresponding neighbor node according to the communication topology;
[0076] 4) Node i based on its own sliding surface s i And the data of neighboring nodes obtained through communication, calculate the distributed sliding mode control law v i :
[0077]
[0078] Among them, the control coefficients k1>0, k2>0, a ij ≥0, a ij is the communication weight from node j to node i, which can be obtained through the Laplace matrix of the directed graph corresponding to the communication topology; b i is the fixed weight of node i’s self-control, which can be obtained through a fixed gain matrix; N i is the set of neighbor nodes of node i.
[0079] Based on v in formula (8) i with u i Corresponding relationship calculation control input u i Finally, based on formula (2), the switch duty cycle d of the converter corresponding to node i is calculated and updated. i , achieving flexible control of DC microgrid.
[0080] To prove the stability of the above control method, assume that the actuator fails Acting on the control law v i , and assume that the amplitude of the fault signal is bounded, and its upper bound Limit1 is a positive real number, that is, At this time, formula (10) becomes:
[0081]
[0082] Assume fake communication data attack Acts on the communication data s sent by node j to node i j , at this time the communication data received by node i is And assume that the amplitude of the attack signal is bounded, and its upper bound Limit2 is a positive real number, that is
[0083] Assume that node i has both an actuator failure and a false communication data injection attack from node j. for:
[0084]
[0085] in A combined signal of failure and attack It is easy to see that its amplitude is bounded, and its upper bound Limit3 exists and satisfies Limit3≤Limit1+k2||Lg+Gg||Limit2. Lg is the Laplace matrix of the directed graph corresponding to the communication topology, and the element in its i-th row and j-th column is a ij The opposite number of Gg is b i As the fixed gain matrix composed of the main diagonal elements, ||Lg+Gg|| is the two-norm of the matrix Lg+Gg, and its value is a positive real number.
[0086] Combining equations (11)-(14) and extending them to the entire system, the vector form is:
[0087]
[0088] in, s are the s iThe N-dimensional column vector.
[0089] Select the positive definite Lyapunov function V(s) = s T s / 2, its derivative satisfies:
[0090]
[0091] Where Lg+Gg should be a positive definite matrix, is the minimum eigenvalue of Lg+Gg. Given k1>0, k2>0, it is clear that only k1>Limit3 is needed to ensure the Lie derivative. Negative definite, according to Lyapunov's theorem, the system is stable.
[0092] According to equations (9) and (10), the output variables of each node are equal to the control target in steady state:
[0093]
[0094] Consider the line impedance between each node output and the DC bus access point When the bus voltage V bus satisfy:
[0095]
[0096] According to the volt-second balance principle, the average values of the inductor current and the output current are equal in steady state. Then, when the selected droop coefficient is much larger than the transmission line impedance, that is, When , the combined equations (17) and (18) yield:
[0097]
[0098] According to Kirchhoff's current law, the total system output current is equal to the sum of the output currents of each node:
[0099]
[0100] Combining equations (19) and (20), we can get:
[0101]
[0102] Combining equations (17), (18), and (21), we can obtain that the DC bus voltage can track the reference voltage in steady state, that is, Therefore, it can be considered that the power distribution ratio is equal to the current distribution ratio in steady state:
[0103]
[0104] in is the average output power of node i in steady state.
[0105] The above description shows that the distributed sliding mode control method proposed in the present invention can realize flexible control of DC bus voltage tracking and power ratio distribution when actuator faults and false communication data attacks coexist. The required assumption is that the amplitudes of the fault signal and the attack signal are bounded, that is, and The required parameters are And k1>Limit1+k2||Lg+Gg||Limit2.
[0106] Corresponding to the aforementioned embodiment of the DC microgrid elasticity control method based on distributed sliding mode control, the present invention also provides an embodiment of a DC microgrid elasticity controller based on distributed sliding mode control.
[0107] The DC microgrid resilience controller based on distributed sliding mode control provided in an embodiment of the present invention includes one or more processors for implementing the DC microgrid resilience control method based on distributed sliding mode control in the above embodiment.
[0108] The embodiment of the DC microgrid elastic controller based on distributed sliding mode control of the present invention can be applied to any device with data processing capability, and the any device with data processing capability can be a device or apparatus such as a computer.
[0109] The device embodiment can be implemented by software, or by hardware or a combination of software and hardware. Taking software implementation as an example, as a device in a logical sense, it is formed by the processor of any device with data processing capability in which it is located to read the corresponding computer program instructions in the non-volatile memory into the memory for execution. From the hardware level, the hardware structure of any device with data processing capability in which the DC microgrid elastic controller based on distributed sliding mode control of the present invention is located generally includes a processor, memory, network interface, and non-volatile memory. In the embodiment, any device with data processing capability in which the device is located can also include other hardware according to the actual function of the device with data processing capability, which will not be described in detail.
[0110] In order to enable those skilled in the art to better understand the present invention, a numerical simulation model of a specific embodiment is implemented in MATLAB. The model sets up a DC microgrid system consisting of 4 buck converter nodes, and its system architecture is as follows Figure 1 As shown, the topological structure and control algorithm block diagram of a single node are as follows Figure 2 shown.
[0111] Table 1 gives the main electrical parameters and control parameters of the specific embodiment.
[0112] Table 1
[0113]
[0114] In this specific embodiment, a preset operating condition including the following process is designed:
[0115] 1) Within t∈[0,0.5s], the DC microgrid starts normally to a steady state, and there is no actuator failure or false communication data attack;
[0116] 2) At t = 0.5s, the actuator of node 1 injects a constant fault signal
[0117] 3) At t = 1.0s, the load of node 3 switches from 30Ω to 20Ω;
[0118] 4) At t = 1.5s, a Sinusoidal attack signal.
[0119] Figure 3 and Figure 4 The DC bus voltage waveform diagram and the output power comparison diagram of each node under the preset operating conditions of this specific embodiment are respectively given. It can be seen that when the DC microgrid adopts the control method of the present invention, the DC bus voltage can reach the reference value after only a transient time of about 0.04s, and the output power ratio of each node reaches the inverse proportion of the droop coefficient, and actuator failure, load switching and false communication data attack will not have a significant impact on the voltage tracking accuracy and power distribution ratio.
[0120] It can be seen from the simulation experimental results of the above specific embodiments that the DC microgrid elastic control method based on distributed sliding mode control proposed in the present invention occupies less communication resources and computing resources, can effectively resist actuator failures and false communication data attacks, and realize flexible control of DC bus voltage tracking and power ratio distribution, thereby effectively improving the operating elasticity and safety margin of the DC microgrid.
Claims
1. A DC microgrid elastic control method based on distributed sliding mode control, characterized in that: The method comprises the following steps: 1) Obtain the output voltage V of the converter corresponding to each node i of the DC microgrid oi , inductor current I Li , output current I oi , and obtain the switch duty cycle d obtained from the last control calculation i ; 2) Select the state variable x si =[x si1 ,x si2 ,x si3 ] T =[I Li ,V oi ,d i ] T , output variable y i =V oi +r i I Li , control input u i is the first derivative of the duty cycle Known disturbance w i =I oi , r i is the droop coefficient of the converter, and the differential homeomorphism mapping z is obtained by feedback linearization coordinate transformation i and its control error 3) Control error based on diffeomorphic mapping Calculate the sliding surface s i , and sends the calculated data to the corresponding neighbor nodes according to the communication topology; 4) Node i based on its own sliding surface s i And the data of neighboring nodes obtained through communication, calculate the distributed sliding mode control law v i and the corresponding control input u i The switch duty cycle of the converter corresponding to node i is updated through integral operation to achieve flexible control of the DC microgrid.
2. The DC microgrid elastic control method based on distributed sliding mode control according to claim 1 is characterized by: The converter includes a buck converter and a buck-boost converter operating in a buck mode.
3. The DC microgrid elastic control method based on distributed sliding mode control according to claim 1 is characterized by: In step 2), the differential homeomorphism mapping z obtained by the feedback linearized coordinate transformation i The calculation formula is: Control Error of Diffeomorphic Mapping Specifically: Where L i is the inductance value in the converter, C i is the capacitance value in the converter, V Si is the voltage of the DC power input converter, For z i The control reference value, is the reference voltage of the DC bus, R load is the equivalent resistance value of the total load of the DC microgrid, and N is the number of nodes in the DC microgrid.
4. The DC microgrid elastic control method based on distributed sliding mode control according to claim 3 is characterized by: In the step 3), the sliding surface s i The calculation formula is: Among them, the control coefficients c1>0, c2>0, 0<α1<1, α2=2α1 / (α1+1), and sgnx is the sign function.
5. The DC microgrid elastic control method based on distributed sliding mode control according to claim 4 is characterized by: In step 4), the distributed sliding mode control law v i The calculation formula is: Among them, the control coefficients k1>0, k2>0, a ij ≥0 is the communication weight from node j to node i, b i ≥0 is the fixed weight of node i’s self-control, N i is the set of neighbor nodes of node i; Control input u i The calculation formula is: To u i An integral operation is performed to obtain the duty cycle of the switch tube of the converter corresponding to node i.
6. A DC microgrid elastic controller based on distributed sliding mode control, characterized in that: It comprises one or more processors for executing the DC microgrid elastic control method based on distributed sliding mode control as described in any one of claims 1 to 5.
