Alternating current weak power grid real-time dynamic simulator based on end-to-end intelligent control

Through the real-time dynamic simulator of AC weak power grid based on end-to-end intelligent control, the inverter control and filter circuits are used to simulate the PCC point voltage of the power grid, which solves the problem of neglecting the influence of grid line impedance in the existing technology and achieves high penetration of new energy. High-precision simulation of weak power grids improves grid stability.

CN118605355AActive Publication Date: 2024-09-06ZHEJIANG UNIV +1
View PDF 5 Cites 0 Cited by

Patent Information

Application Number
CN202411073898.5
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Priority Date
2024-04-01
Filing Date
2024-08-07
Publication Date
2024-09-06
Estimated Expiration
2044-08-07

AI Technical Summary

Technical Problem

Existing power grid simulation technology cannot effectively simulate the characteristics of weak power grids under high penetration rates of new energy. In particular, it ignores the influence of power grid line impedance, resulting in large differences between simulation results and actual power grids, and cannot meet the development needs of new power systems.

Method used

A real-time dynamic simulator of AC weak power grid based on end-to-end intelligent control is used to drive the inverter control through real-time data to simulate the PCC point voltage of the power grid to achieve high-precision and high-dynamic simulation of the weak power grid. The simulator includes a converter module and a main control module. It uses an inverter control unit, a filter circuit unit and a characteristic encoding-decoding module to generate a PWM modulation signal to adjust the working state of the inverter circuit and simulate the voltage characteristics of the power grid.

Benefits of technology

It achieves high-precision and high-dynamic simulation of weak power grids, which can truly reflect the working status of the power grid, improve stability problems such as system oscillation, and meet the needs of new power systems.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118605355A
    Figure CN118605355A
Patent Text Reader

Abstract

The invention relates to the technical field of power grid simulators, and particularly discloses an alternating-current weak power grid real-time dynamic simulator based on end-to-end intelligent control, which realizes real-time dynamic simulation and control on a power grid based on real-time data of a power grid working state. Specifically, the alternating-current weak power grid real-time dynamic simulator based on end-to-end intelligent control derives voltage supply in an ideal state based on dynamic change of a power grid load, and then performs power grid inversion control based on the difference between the ideal voltage supply and the actual voltage state of the power grid. Therefore, the power grid simulator is controlled to simulate the actual power grid PCC point voltage, so that high-precision and high-dynamic simulation of the weak power grid is realized.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the technical field of power grid simulators, and more specifically, to a real-time dynamic simulator of an AC weak power grid based on end-to-end intelligent control. Background Art

[0002] In recent years, with the increase in the penetration rate of new energy, the stability problems of the power system caused by the interaction between new energy grid-connected equipment and the power grid have become increasingly serious. Specifically, new energy power generation systems, mainly photovoltaic and wind power, are mostly distributed in remote places such as deserts and islands. They are usually connected to the grid through long-distance transmission and distribution lines. At this time, the system line impedance often changes the impedance characteristics of the power grid, making the power grid present weak grid characteristics, affecting the working performance of the grid-connected equipment, and then causing stability problems such as system oscillation. Therefore, the grid adaptability test of new energy grid-connected equipment before it is put into operation has attracted more and more attention in the industry.

[0003] Most of the existing research on power grid simulation technology regards the power grid as an infinite strong power grid and ignores the influence of power grid impedance. Very few scholars have considered the existence of power grid line impedance, but they only regard the power grid line as inductive or resistive-inductive.

[0004] For example, in a Chinese patent (publication number CN116819210A), a control method, a control device and a power grid simulator are disclosed. In this prior art, an improved voltage and current dual closed-loop control strategy is used to control the converter in the power grid simulator, and the difference between the power grid environment simulated by the power grid simulator and the actual power grid is reduced by simulating the frequency fluctuation characteristics of the resistive and inductive impedance equivalent and synchronous power supply. However, this prior art only considers the influence of the resistive and inductive impedance at the base frequency, which is not only different from the current actual power grid situation, but also cannot meet the development needs of the new power system.

[0005] Therefore, in order to simulate the characteristics of weak power grids under high penetration of new energy more realistically and accurately, a more optimized real-time dynamic simulator of AC weak power grid is expected. Summary of the invention

[0006] In order to solve the above-mentioned technical problems, the present application is proposed. An embodiment of the present application provides an AC weak power grid real-time dynamic simulator based on end-to-end intelligent control, which realizes real-time dynamic simulation and control of the power grid based on real-time data of the working status of the power grid. Specifically, the AC weak power grid real-time dynamic simulator based on end-to-end intelligent control derives the voltage supply under the ideal state based on the dynamic changes of the power grid load, and then performs grid inverter control based on the difference between the ideal voltage supply and the actual voltage state of the power grid, so as to control the power grid simulator to simulate the actual power grid PCC point voltage, thereby realizing high-precision and high-dynamic simulation of the weak power grid.

[0007] Accordingly, according to one aspect of the present application, there is provided a real-time dynamic simulator for an AC weak power grid based on end-to-end intelligent control, comprising: a converter module and a main control module for controlling the converter module; the converter module comprises an inverter circuit unit and a filter circuit unit, the main control module comprises an inverter control unit, the inverter control unit is electrically connected to the inverter circuit unit, wherein the inverter control unit is used to generate a PWM modulation signal based on a PCC point real-time current value and a PCC point real-time voltage value of a common coupling point and a capacitor current value of a filter circuit unit, and the PWM modulation signal is used to adjust the working state of the inverter circuit unit; Among them, the inverter control unit includes: a data receiving unit, used to receive the time series of the real-time current value of the PCC point, the time series of the real-time voltage value of the PCC point and the time series of the capacitor current value; a feature encoding-decoding module, used to perform feature encoding and decoding on the time series of the real-time current value of the PCC point, the time series of the real-time voltage value of the PCC point and the time series of the capacitor current value to obtain a final voltage modulation signal; a signal demodulation unit, used to generate the PWM modulation signal based on the comparison between the final voltage modulation signal and the carrier signal.

[0008] In the above-mentioned AC weak power grid real-time dynamic simulator based on end-to-end intelligent control, the feature encoding-decoding module includes: a sequence encoding unit, which is used to extract the PCC point real-time current time series associated implicit feature vector, the PCC point real-time voltage time series associated implicit feature vector and the capacitor current time series associated implicit feature vector from the time series of the PCC point real-time current value, the time series of the PCC point real-time voltage value and the time series of the capacitor current value; a feature multimodal fusion unit, which is used to fuse the capacitor current time series associated implicit feature vector and the PCC point real-time current time series associated implicit feature vector to obtain a multimodal time series representation vector of the power grid state; a feature multimodal fusion unit, which is used to fuse the capacitor current time series associated implicit feature vector and the PCC point real-time current time series associated implicit feature vector to obtain a multimodal time series representation vector of the power grid state; a feature multimodal A decoding unit is used to input the multimodal timing characterization vector of the power grid state into a PCC point reference voltage inference device based on a decoder to obtain an implicit reasoning feature vector associated with the PCC point reference voltage timing; a power grid state evaluation unit is used to input the implicit reasoning feature vector associated with the PCC point reference voltage timing and the implicit feature vector associated with the PCC point real-time voltage timing into a differential measurement network to obtain a differential feature vector; a decoding unit is used to input the differential feature vector into a modulation signal generator based on a decoder to obtain a final voltage modulation signal; a signal demodulation unit is used to generate the PWM modulation signal based on a comparison between the final voltage modulation signal and a carrier signal.

[0009] In the above-mentioned real-time dynamic simulator of AC weak power grid based on end-to-end intelligent control, the inverter control unit includes: a first data receiving unit, used to receive the time series of the real-time current value of the PCC point, the time series of the real-time voltage value of the PCC point and the time series of the capacitor current value; a sequence encoding unit, used to extract the implicit feature vector of the PCC point real-time current time series association, the implicit feature vector of the PCC point real-time voltage time series association and the implicit feature vector of the capacitor current time series association from the time series of the real-time current value of the PCC point, the time series of the real-time voltage value of the PCC point and the time series of the capacitor current value; a feature multimodal fusion unit, used to fuse the implicit feature vector of the capacitor current time series association and the implicit feature vector of the PCC point real-time current time series association The invention relates to a power grid state multimodal timing characterization vector, a characteristic multimodal decoding unit, which is used to input the power grid state multimodal timing characterization vector into a PCC point reference voltage inference device based on a decoder to obtain a PCC point reference voltage timing-related implicit reasoning feature vector; a power grid state evaluation unit, which is used to input the PCC point reference voltage timing-related implicit reasoning feature vector and the PCC point real-time voltage timing-related implicit feature vector into a differential measurement network to obtain a differential feature vector; a decoding unit, which is used to input the differential feature vector into a modulation signal generator based on a decoder to obtain a voltage final modulation signal; and a signal demodulation unit, which is used to generate the PWM modulation signal based on a comparison between the voltage final modulation signal and a carrier signal.

[0010] In the above-mentioned real-time dynamic simulator of AC weak power grid based on end-to-end intelligent control, the sequence encoding unit is used to: input the time series of the real-time current value of the PCC point, the time series of the real-time voltage value of the PCC point and the time series of the capacitor current value into a sequence encoder based on a bidirectional gated cyclic unit respectively to obtain the implicit feature vector associated with the real-time current timing of the PCC point, the implicit feature vector associated with the real-time voltage timing of the PCC point and the implicit feature vector associated with the capacitor current timing.

[0011] In the above-mentioned real-time dynamic simulator of AC weak power grid based on end-to-end intelligent control, the feature multimodal fusion unit is used to: input the capacitor current time series associated implicit feature vector and the PCC point real-time current time series associated implicit feature vector into the eigenvalue granularity associated mask distinguishable attention fusion module to obtain the multimodal time series representation vector of the power grid state.

[0012] In the above-mentioned AC weak power grid real-time dynamic simulator based on end-to-end intelligent control, the feature multimodal fusion unit is used to: calculate the global eigenvalue association matrix between the capacitor current timing-related implicit feature vector and the PCC point real-time current timing-related implicit feature vector; input the global eigenvalue association matrix into a learnable gating function to obtain a correlation distinguishable weight matrix; use the correlation distinguishable weight matrix as a fusion mask matrix, and respectively calculate the matrix product between the capacitor current timing-related implicit feature vector, the PCC point real-time current timing-related implicit feature vector and the fusion mask matrix to obtain a distinguished and enhanced capacitor current timing-related implicit feature vector and a distinguished and enhanced PCC point real-time current timing-related implicit feature vector; fuse the distinguished and enhanced capacitor current timing-related implicit feature vector and the distinguished and enhanced PCC point real-time current timing-related implicit feature vector to obtain the multimodal timing representation vector of the power grid state.

[0013] In the above-mentioned real-time dynamic simulator of AC weak power grid based on end-to-end intelligent control, the power grid state assessment unit is used to: perform point convolution processing on the PCC point reference voltage timing association implicit reasoning feature vector and the PCC point real-time voltage timing association implicit feature vector respectively to obtain the linear transformation PCC point reference voltage timing association implicit reasoning feature vector and the linear transformation PCC point real-time voltage timing association implicit feature vector; calculate the positional difference between the linear transformation PCC point reference voltage timing association implicit reasoning feature vector and the linear transformation PCC point real-time voltage timing association implicit feature vector to obtain the differential feature vector.

[0014] In the above-mentioned AC weak power grid real-time dynamic simulator based on end-to-end intelligent control, it also includes a training module for training the sequence encoder based on the bidirectional gated cyclic unit, the feature value granularity associated mask distinguishable attention fusion module, the decoder-based PCC point reference voltage inference device, the differential metric network and the decoder-based modulation signal generator; wherein the training module includes: a training data acquisition unit, used to acquire training data, the training data includes a time series of training PCC point real-time current values, a time series of training PCC point real-time voltage values ​​and a time series of training capacitor current values, and, a real voltage final modulation signal; a training data sequence encoding unit, used to input the time series of the training PCC point real-time current value, the time series of the training PCC point real-time voltage value and the time series of the training capacitor current value into the sequence encoder based on the bidirectional gated cycle unit to obtain the training PCC point real-time current time series associated implicit feature vector, the training PCC point real-time voltage time series associated implicit feature vector and the training capacitor current time series associated implicit feature vector; a training data multimodal feature fusion unit, used to input the training capacitor current time series associated implicit feature vector and the training PCC point real-time current time series associated implicit feature vector into the sequence encoder based on the bidirectional gated cycle unit to obtain the training PCC point real-time current time series associated implicit feature vector, the training PCC point real-time voltage time series associated implicit feature vector and the training capacitor current time series associated implicit feature vector. The feature vector is input into the feature value granularity association mask distinguishable attention fusion module to obtain a training power grid state multimodal time series representation vector; a training data multimodal feature decoding unit is used to input the training power grid state multimodal time series representation vector into the decoder-based PCC point reference voltage reasoner to obtain a training PCC point reference voltage timing association implicit reasoning feature vector; a training data differential measurement unit is used to input the training PCC point reference voltage timing association implicit reasoning feature vector and the training PCC point real-time voltage timing association implicit feature vector into the differential measurement network to obtain a training differential feature vector; a decoding loss unit, Used to input the training differential feature vector into the decoder-based modulation signal generator to obtain a decoding loss function value; a differential cross-modal loss function value calculation unit, used to calculate the differential cross-modal loss function value of the training differential feature vector; a model training unit, used to use the weighted sum of the decoding loss function value and the differential cross-modal loss function value as the loss function value to train the sequence encoder based on the bidirectional gated recurrent unit, the feature value granularity association mask distinguishable attention fusion module, the decoder-based PCC point reference voltage inference device, the differential metric network and the decoder-based modulation signal generator.

[0015] In the above-mentioned real-time dynamic simulator of AC weak power grid based on end-to-end intelligent control, the common coupling point is the connection point between the real-time dynamic simulator of AC weak power grid based on end-to-end intelligent control and the grid-connected device under test, or the common coupling point is the connection point between the real-time dynamic simulator of AC weak power grid based on end-to-end intelligent control and the transformer, and the transformer is used to be electrically connected to the grid-connected device under test.

[0016] In the above-mentioned real-time dynamic simulator of AC weak power grid based on end-to-end intelligent control, the converter module also includes a rectifier circuit unit, the main control module also includes a rectifier controller, the output end of the rectifier circuit unit is electrically connected to the inverter circuit unit, and the rectifier controller is electrically connected to the rectifier circuit unit.

[0017] Compared with the prior art, the AC weak power grid real-time dynamic simulator based on end-to-end intelligent control provided by the present application realizes real-time dynamic simulation and control of the power grid based on real-time data of the working status of the power grid. Specifically, the AC weak power grid real-time dynamic simulator based on end-to-end intelligent control derives the voltage supply under the ideal state based on the dynamic changes of the power grid load, and then performs power grid inverter control based on the difference between the ideal voltage supply and the actual voltage state of the power grid, thereby controlling the power grid simulator to simulate the actual power grid PCC point voltage, thereby realizing high-precision and high-dynamic simulation of the weak power grid. BRIEF DESCRIPTION OF THE DRAWINGS

[0018] By describing the embodiments of the present application in more detail in conjunction with the accompanying drawings, the above and other purposes, features and advantages of the present application will become more apparent. The accompanying drawings are used to provide a further understanding of the embodiments of the present application and constitute a part of the specification. Together with the embodiments of the present application, they are used to explain the present application and do not constitute a limitation of the present application. In the accompanying drawings, the same reference numerals generally represent the same components or steps.

[0019] Figure 1 Schematic diagram of the architecture of an AC weak power grid real-time dynamic simulator based on end-to-end intelligent control according to an embodiment of the present application.

[0020] Figure 2 It is a circuit diagram of a real-time dynamic simulator of an AC weak power grid based on end-to-end intelligent control according to an embodiment of the present application.

[0021] Figure 3 The figure illustrates a flow chart of a control method of an AC weak power grid real-time dynamic simulator based on end-to-end intelligent control according to an embodiment of the present application.

[0022] Figure 4 The diagram shows a schematic diagram of a π-type circuit and a T-type circuit according to an embodiment of the present application.

[0023] Figure 5 1 is the actual PCC point voltage waveform and its FFT analysis result according to the embodiment of the present application.

[0024] Figure 6 The PCC point voltage waveform and its FFT analysis result are realized according to the simulation of the embodiment of the present application.

[0025] Figure 7 It is a control block diagram of an inverter control unit in an AC weak power grid real-time dynamic simulator based on end-to-end intelligent control according to an embodiment of the present application.

[0026] Figure 8 It is a block diagram of a training module in an AC weak power grid real-time dynamic simulator based on end-to-end intelligent control according to an embodiment of the present application.

[0027] Fig. 9 The present invention is a flowchart of a control method of an inverter control unit in an AC weak power grid real-time dynamic simulator based on end-to-end intelligent control according to an embodiment of the present application. DETAILED DESCRIPTION

[0028] Below, the embodiments of the present application will be described in more detail in conjunction with the accompanying drawings, and the above and other purposes, features and advantages of the present application will become more apparent. Obviously, the described embodiments are only part of the embodiments of the present application, rather than all the embodiments of the present application, and it should be understood that the present application is not limited to the example embodiments described herein.

[0029] Example 1 Figure 1 The diagram shows a circuit diagram of an AC weak power grid real-time dynamic simulator based on end-to-end intelligent control according to an embodiment of the present application. Figure 2 The figure illustrates a control block diagram of the control method of the AC weak power grid real-time dynamic simulator based on end-to-end intelligent control according to an embodiment of the present application. Figure 3 The figure illustrates a flow chart of a control method of an AC weak power grid real-time dynamic simulator based on end-to-end intelligent control according to an embodiment of the present application.

[0030] like Figure 1 As shown, the real-time dynamic simulator of AC weak power grid based on end-to-end intelligent control according to the embodiment of the present application includes a converter module and a main control module for controlling the converter module. Specifically, the converter module includes a rectifier circuit unit, an inverter circuit unit and a filter circuit unit, and the main control module includes a rectifier controller and an inverter control unit, wherein the inverter control unit is electrically connected to the inverter circuit unit, and the inverter control unit is used to control the working state of the inverter circuit unit, and the rectifier controller is electrically connected to the rectifier circuit unit, and the rectifier controller is used to control the working state of the rectifier circuit unit.

[0031] In particular, in the technical solution of the present application, the inverter control unit realizes different degrees of simulation of the AC weak power grid based on the AC power grid line impedance equivalent circuit model. The AC power grid line impedance equivalent circuit model includes a circuit type, an impedance value of the power grid line impedance equivalent circuit, an input disturbance coefficient and a current disturbance coefficient, wherein the input disturbance coefficient and the current disturbance coefficient are related to the circuit type and the impedance value of the power grid line impedance equivalent circuit. In some embodiments of the present application, the relevant parameters of the AC power grid line impedance equivalent circuit model can be directly burned or stored in the inverter control unit. In some embodiments of the present application, the AC weak power grid real-time dynamic simulator based on end-to-end intelligent control also includes a host computer communicatively connected to the main control module, and the host computer is used to set the relevant parameters of the AC power grid line impedance equivalent circuit model, including but not limited to the circuit type and the impedance value of the power grid line impedance equivalent circuit.

[0032] More specifically, if Figure 1 As shown, in the technical solution of the present application, the rectifier circuit unit is connected to the AC power grid, and its function is to convert AC power into DC power. Accordingly, the rectifier controller and the rectifier circuit unit cooperate with each other to form the rectifier link of the AC weak power grid real-time dynamic simulator based on end-to-end intelligent control. In some specific embodiments, the rectifier circuit unit can be of different types, such as a diode rectifier, a thyristor rectifier, etc.

[0033] During its operation, the rectifier circuit unit receives an AC input from an AC power grid, which is usually a sinusoidal waveform. The rectifier element (such as a diode) in the rectifier circuit unit only allows current to flow in one direction, so that during the positive half cycle of the AC, the current flows to the load through the rectifier element; and during the negative half cycle, due to the unidirectional conductivity of the rectifier element, the current cannot flow in the opposite direction. In this way, due to the rectification effect, the negative half cycle of the AC is blocked, resulting in a pulsating DC on the load, which contains a large ripple component. The rectifier controller controls the rectifier link to adjust the voltage and stability of the output DC. In a specific embodiment, the control method can be phase-controlled rectification, that is, the output voltage is adjusted by controlling the conduction angle of the thyristor.

[0034] like Figure 1As shown, in the technical solution of the present application, the inverter circuit unit is connected to the rectifier circuit unit, and the rectifier circuit unit is equivalent to the rectifier circuit unit of the real-time dynamic simulator of the AC weak power grid based on end-to-end intelligent control, which provides the inverter circuit unit with necessary DC power for the inverter process. During operation, the rectifier circuit unit needs to maintain a stable voltage level to ensure that the inverter circuit unit can receive a constant DC input, thereby ensuring the stability and reliability of the inverter process. It is worth mentioning that when performing a grid adaptability test, the rectifier circuit unit may need to adjust the output voltage according to the test requirements to simulate different grid conditions. Accordingly, the inverter circuit unit converts the power provided by the rectifier circuit unit into variable AC power to simulate the voltage output of the grid voltage. That is, the inverter circuit unit can generate an AC voltage waveform with a specific frequency and amplitude to simulate the voltage characteristics of the grid under different working conditions. Specifically, the inverter circuit unit can simulate various characteristics of the grid, including the steady-state and transient response of the voltage, and the frequency change of the grid.

[0035] It is worth mentioning that in the technical solution of the present application, the rectifier controller and the inverter control unit can work together to ensure the coordination and consistency of the rectification and inversion processes. For example, the direct current generated by the rectification link needs to provide a stable power supply for the inverter link.

[0036] In particular, if Figure 1 and Figure 2 As shown, in the technical solution of the present application, the inverter circuit unit receives the PWM modulation signal sent by the inverter control unit, and adjusts its output according to the PWM modulation signal to achieve accurate control of the simulated grid voltage. The process of the inverter control unit outputting the PWM modulation signal will be expanded in the subsequent description.

[0037] Accordingly, the output waveform generated by the inverter circuit unit may contain high-frequency harmonic components, and the filter circuit unit electrically connected to the inverter circuit unit can effectively filter out these harmonics and provide a clean voltage waveform that is closer to the actual power grid. Specifically, the filter circuit unit smoothes the pulse voltage output by the inverter circuit unit through the cooperation of its inductor and capacitor elements, reduces voltage fluctuations, and makes the output voltage more stable and smooth. At the same time, the filter circuit unit also helps to reduce the electromagnetic interference (EMI) generated by the inverter circuit unit, which is crucial for protecting the control circuit and improving the overall performance of the system.

[0038] In a specific example of the present application, the device under test is directly electrically connected to the output end of the filter circuit unit. In this specific example, the common coupling point is the connection point between the device under test and the filter circuit unit. It is worth mentioning that in other examples of the present application, a transformer can be further provided between the filter circuit unit and the device under test, and accordingly, in this specific example, the common coupling point is the connection point between the filter circuit unit and the transformer.

[0039] like Figure 2 and Figure 3 As shown, and combined with the description in the background technology section, in the technical solution of the present application, the inverter control unit is used to realize the simulation of different degrees of AC weak power grid based on the AC power grid line impedance equivalent circuit model, and the AC power grid line impedance equivalent circuit model includes the circuit type, the impedance value of the power grid line impedance equivalent circuit, the input disturbance coefficient and the current disturbance coefficient, wherein the input disturbance coefficient and the current disturbance coefficient are related to the circuit type and the impedance value of the power grid line impedance equivalent circuit. That is, the inverter control unit uses the power grid line type as an input variable to study its influence on the power grid inverter control, including the influence of the power grid line type on the current dynamic disturbance and the voltage dynamic disturbance, and then realizes the high-precision and high-dynamic simulation of the weak power grid through the composite control logic of feedforward and feedback.

[0040] like Figure 2 and Figure 3 As shown, in the technical solution of the present application, the process of the inverter control unit outputting the PWM modulation signal includes the following steps: S110, determining the dynamic disturbance component of the PCC point current based on the PCC point current value and the current disturbance coefficient collected in real time by the current sensor deployed at the common coupling point; S120, determining the dynamic disturbance component of the original input voltage based on the set original input reference voltage value of the inverter circuit unit and the input disturbance coefficient; S130, determining the PCC point reference voltage based on the original input reference voltage value, the original input voltage dynamic disturbance component and the PCC point current dynamic disturbance component; S140, determining the final modulation signal of the inverter unit voltage based on the PCC point reference voltage, the PCC point voltage value of the common coupling point and the capacitor current value of the filter circuit unit; and, S150, generating the PWM modulation signal based on the comparison between the final modulation signal of the inverter unit voltage and the carrier signal.

[0041] That is, the process of the inverter control unit outputting the PWM modulation signal first includes: setting relevant parameters of the AC power grid line impedance equivalent circuit model. In the technical solution of the present application, the AC power grid line impedance equivalent circuit model includes a circuit type, an impedance value of the power grid line impedance equivalent circuit, an input disturbance coefficient, and a current disturbance coefficient, wherein the input disturbance coefficient and the current disturbance coefficient are related to the circuit type and the impedance value of the power grid line impedance equivalent circuit.

[0042] More specifically, the applicant has found through research that in the technical solution of the present application, the circuit types include π-type circuits and T-type circuits, such as Figure 4 As shown, the impedance value of the power grid line impedance equivalent circuit includes a first impedance value, a second impedance value and a third impedance value.

[0043] When the circuit type is a π-type circuit, the input disturbance coefficient is:

[0044] in, is the first impedance value, is the third impedance value.

[0045] When the circuit type is a T-type circuit, the input disturbance coefficient is:

[0046] in, is the first impedance value, is the third impedance value.

[0047] When the circuit type is When the circuit is of type, the current disturbance coefficient is:

[0048] in, is the first impedance value, is the third impedance value; When the circuit type is When the circuit is of type, the current disturbance coefficient is:

[0049] in, is the first impedance value, is the second impedance value, is the third impedance value.

[0050] In step S110, based on the PCC point current value collected in real time by the current sensor deployed at the common coupling point and the current disturbance coefficient, the PCC point current dynamic disturbance component is determined. When the circuit is a T-type circuit or a T-type circuit, its input disturbance coefficient is opposite. That is, the feedforward effects of different circuit types on the current dynamic disturbance are different. In the technical solution of the present application, the applicant has found that different circuit types have different effects on the current disturbance, so the circuit types are classified and the effects of the circuit types on the current disturbance, i.e., the current disturbance coefficient, are summarized based on expert knowledge.

[0051] It is worth mentioning that in the technical solution of the present application, using the first impedance value, the second impedance value and the third impedance value to simulate the AC power grid line impedance equivalent circuit is a simplified model. In actual power transmission lines, the line impedance at different frequencies is different. Using three impedance values ​​can relatively better simulate the impedance characteristics of the line at low frequency, medium frequency and high frequency, thereby more accurately reflecting the actual behavior of the line. Accordingly, in the power grid simulation, by configuring the parameter settings of the first impedance value, the second impedance value and the third impedance value, the input impedance of the line can be flexibly adjusted to simulate the electrical characteristics under different power grid conditions.

[0052] Specifically, in a specific technical solution of the present application, based on the PCC point current value and the current disturbance coefficient collected in real time by a current sensor deployed at a common coupling point, a process of determining the dynamic disturbance component of the PCC point current includes: multiplying the PCC point current value and the current disturbance coefficient to obtain the dynamic disturbance component of the PCC point current.

[0053] In step S120, the original input voltage dynamic disturbance component is determined based on the set original input reference voltage value of the inverter circuit unit and the input disturbance coefficient. In the technical solution of the present application, the original input reference voltage value of the inverter circuit unit will affect the voltage value of the PCC point, and different degrees of AC weak power grid will make the original input reference voltage value no longer appropriate, and the voltage value of the PCC point generated based on the original input reference voltage value will deviate from the actual voltage value of the PCC point. In the technical solution of the present application, the disturbance component is defined as the original input voltage dynamic disturbance component.

[0054] In particular, in the technical solution of the present application, the inventor of the present application found that different circuit types have different effects on the dynamic disturbance of the original input voltage. Therefore, in a specific example of the present application, the circuit types are classified and the influence of the circuit types on the current disturbance, i.e., the input disturbance coefficient, is summarized based on expert knowledge. It is worth mentioning that, after research, it is found that in this specific implementation scheme of the present application, The input disturbance coefficient corresponding to the circuit is The input disturbance coefficient corresponding to the type circuit is opposite.

[0055] Accordingly, in this specific example, the process of determining the dynamic disturbance component of the original input voltage based on the set original input reference voltage value and the input disturbance coefficient of the inverter circuit unit includes: multiplying the original input reference voltage value and the input disturbance coefficient to obtain the dynamic disturbance component of the original input voltage.

[0056] In step S130, the PCC point reference voltage is determined based on the original input reference voltage value, the original input voltage dynamic disturbance component and the PCC point current dynamic disturbance component. Accordingly, in this specific embodiment, the process of determining the PCC point reference voltage based on the original input reference voltage value, the original input voltage dynamic disturbance component and the PCC point current dynamic disturbance component includes: based on the original input reference voltage value, the original input voltage dynamic disturbance component and the PCC point current dynamic disturbance component, determining the PCC point reference voltage according to the following formula; Wherein, the formula is:

[0057] in, Indicates the current value of PCC point, is the input disturbance coefficient, is the current disturbance coefficient, is the original input reference voltage value.

[0058] In step S140, based on the PCC point reference voltage, the PCC point voltage value of the common coupling point and the capacitor current value of the filter circuit unit, the final modulation signal of the inverter unit voltage is determined. Specifically, this step includes: firstly calculating the difference between the PCC point reference voltage and the PCC point voltage value; then inputting the difference into a proportional resonant controller to obtain a preliminary voltage modulation signal; then subtracting the preliminary voltage modulation signal from the capacitor current value, and multiplying the obtained difference by a proportional coefficient to obtain the final modulation signal of the inverter unit voltage.

[0059] That is, in step S140, the output of the feedforward link is subtracted from the voltage sampling feedback value of the PCC point, and the difference between the two is controlled by the proportional resonant controller to obtain a preliminary voltage modulation signal. Furthermore, the preliminary voltage modulation signal is subtracted from the feedback capacitor current value (modulated by the proportional coefficient) to obtain the final modulation signal of the inverter circuit unit voltage. It should be noted that in the technical solution of the present application, the control method of the real-time dynamic simulator of the AC weak power grid based on end-to-end intelligent control includes not only a feedforward control link, but also a feedback control link. Therefore, in the technical solution of the present application, the control logic of the real-time dynamic simulator of the AC weak power grid based on end-to-end intelligent control is defined as a composite control, such as Figure 2 shown.

[0060] In step S150, the PWM modulation signal is generated based on the comparison between the final modulation signal of the inverter unit voltage and the carrier signal. It should be understood that in power grid simulation, PWM (pulse width modulation) is a key technology, which is used to generate a drive signal for controlling the inverter circuit unit to simulate the voltage waveform of the actual power grid. Specifically, PWM is a modulation technology that controls the average value of the output signal by adjusting the width of the pulse. In power grid simulation, PWM is used to control the switching state of the inverter circuit unit to adjust the effective value and waveform of the output voltage. In an embodiment of the present application, the final modulation signal is obtained by subtracting the result of multiplying the preliminary modulation signal of the voltage with the capacitor current by a proportional coefficient, and the signal reflects the voltage change required for power grid simulation. The carrier signal is usually a high-frequency square wave signal, which serves as a reference for PWM modulation.

[0061] In particular, in this specific example, the process of generating the PWM modulation signal based on the comparison between the final modulation signal of the inverter circuit unit voltage and the carrier signal includes: comparing the final modulation signal of the inverter circuit unit voltage with the carrier signal, wherein when the amplitude of the modulation signal is higher than the current level of the carrier signal, the corresponding switch of the inverter circuit unit is activated (for example, turned on), and when the final modulation signal of the inverter circuit unit voltage is lower than the carrier signal, the switch of the inverter circuit unit is turned off. That is, the switching device (such as IGBT or MOSFET) of the inverter circuit unit quickly switches according to the PWM modulation signal to generate a series of pulse voltages, and after the pulse voltage passes through the filter circuit unit, a voltage waveform close to a sine wave is obtained.

[0062] It is worth mentioning that by adjusting the duty cycle of the PWM modulation signal (i.e., the ratio of the pulse duration to the period), the effective value of the output voltage of the inverter circuit unit can be controlled, and by changing the frequency of the PWM modulation signal, the change of the grid frequency can be simulated. In other words, the high-frequency characteristics of the PWM modulation signal enable the inverter circuit unit to quickly respond to changes in the control signal, improve the dynamic performance and real-time performance of the grid simulation, and by accurately controlling the PWM modulation signal, a voltage waveform very close to the actual grid can be simulated, including fundamental and harmonic components.

[0063] In order to verify the technical solution of this application, a real-time dynamic simulator of AC weak power grid based on end-to-end intelligent control was built as shown in Figure 1. The main simulation parameters are: DC side voltage 8kV, active power P of the power grid simulator = 1MW, switching frequency of the power grid simulator 2kHz, inductance of the filter circuit unit 1mH, capacitance of the filter circuit unit 10 , the parameters of the grid line impedance equivalent circuit are: resistance =0, inductance =5mH, capacitance =2 The effectiveness of the proposed strategy is verified by comparing the actual PCC point voltage waveform with the simulated PCC point voltage waveform.

[0064] In order to verify the technical solution of this application, a real-time dynamic simulator of AC weak power grid based on end-to-end intelligent control was built as shown in Figure 1, and the equivalent parameters of a 30km transmission line in a regional power grid were used as an example for simulation. The effectiveness of the proposed strategy was verified by comparing the PCC point voltage waveform achieved by the ideal power grid simulation with the weak power grid simulation considering the power grid line impedance. Figure 5 and Figure 6 The PCC point voltage waveform and its FFT analysis results are respectively illustrated for the ideal grid simulation and the weak grid simulation considering the line impedance according to the embodiment of the present application. It can be seen that compared with the ideal grid simulation, after considering the grid line impedance, harmonics appear in the grid voltage, which fully demonstrates the simulation effect of the weak grid and illustrates the effectiveness of the grid simulation method proposed in the present application.

[0065] Example 2 Further, according to another embodiment of the present application, a real-time dynamic simulator of an AC weak power grid based on end-to-end intelligent control is also provided. In this embodiment, the inverter control unit is used to use an end-to-end intelligent control module to generate a PWM modulation signal based on the PCC point real-time current value and PCC point real-time voltage value of the common coupling point and the capacitor current value of the filter circuit unit, and the PWM modulation signal is used to adjust the working state of the inverter circuit unit.

[0066] In the first embodiment, although the real-time dynamic simulator of the AC weak power grid based on end-to-end intelligent control classifies the circuit types and studies the input disturbance coefficient and current disturbance coefficient under different circuit types, it is considered that the use of the first impedance value, the second impedance value and the third impedance value to simulate the AC power grid line impedance equivalent circuit is itself a simplified model, and the input disturbance coefficient and the current disturbance coefficient obtained by the linear and nonlinear association of the first impedance value, the second impedance value and the third impedance value on the basis of the simplified model will also deviate from the actual situation. On the other hand, in the actual power grid simulation process, the working state of the power grid is constantly fluctuating. If there is no dynamic adjustment mechanism, it is difficult to perform real-time dynamic high-precision simulation of the power grid.

[0067] Based on this, in the second embodiment of the present application, an end-to-end model based on artificial intelligence is used to generate a PWM modulation signal based on the real-time current value and the real-time voltage value of the PCC point at the common coupling point and the capacitor current value of the filter circuit unit. That is, the input end is based on the real-time current value and the real-time voltage value of the PCC point at the common coupling point and the capacitor current value of the filter circuit unit, and the output end is the PWM modulation signal. The intermediate function mapping model is implemented by an end-to-end model based on artificial intelligence. In this way, the real-time dynamic simulator of the AC weak power grid based on end-to-end intelligent control can adaptively adjust its output based on the real-time state of the power grid to achieve real-time simulation of the power grid with high precision and high dynamic performance.

[0068] Figure 7 FIG. 1 is a control block diagram of an inverter control unit in an AC weak grid real-time dynamic simulator based on end-to-end intelligent control according to an embodiment of the present application. Figure 7As shown, the inverter control unit 100 includes: a data receiving unit 110, which is used to receive the time series of the real-time current value of the PCC point, the time series of the real-time voltage value of the PCC point, and the time series of the capacitor current value; a sequence encoding unit 120, which is used to extract the PCC point real-time current time series associated implicit feature vector, the PCC point real-time voltage time series associated implicit feature vector, and the capacitor current time series associated implicit feature vector from the time series of the real-time current value of the PCC point, the time series of the real-time voltage value of the PCC point, and the time series of the capacitor current value; a feature multimodal fusion unit 130, which is used to fuse the capacitor current time series associated implicit feature vector and the PCC point real-time current time series associated implicit feature vector to obtain the grid state. A characteristic multimodal decoding unit 140 is used to input the grid state multimodal timing representation vector into a decoder-based PCC point reference voltage inference device to obtain a PCC point reference voltage timing associated implicit reasoning feature vector; a grid state evaluation unit 150 is used to input the PCC point reference voltage timing associated implicit reasoning feature vector and the PCC point real-time voltage timing associated implicit feature vector into a differential metric network to obtain a differential feature vector; a decoding unit 160 is used to input the differential feature vector into a decoder-based modulation signal generator to obtain a voltage final modulation signal; a signal demodulation unit 170 is used to generate the PWM modulation signal based on a comparison between the voltage final modulation signal and a carrier signal.

[0069] That is, if Fig. 9As shown, according to the technical solution of the present application, the control process of the inverter control unit includes the steps of: S1100, receiving the time series of the real-time current value of the PCC point, the time series of the real-time voltage value of the PCC point and the time series of the capacitor current value; S1200, extracting the implicit feature vector of the real-time current timing association of the PCC point, the implicit feature vector of the real-time voltage timing association of the PCC point and the implicit feature vector of the capacitor current timing association from the time series of the real-time current value of the PCC point, the time series of the real-time voltage value of the PCC point and the time series of the capacitor current value; S1300, fusing the implicit feature vector of the capacitor current timing association with the implicit feature vector of the real-time current timing association of the PCC point S1400, input the multimodal timing representation vector of the power grid state into the decoder-based PCC point reference voltage inference device to obtain the PCC point reference voltage timing associated implicit reasoning feature vector; S1500, input the PCC point reference voltage timing associated implicit reasoning feature vector and the PCC point real-time voltage timing associated implicit feature vector into the differential measurement network to obtain the differential feature vector; S1600, input the differential feature vector into the decoder-based modulation signal generator to obtain the voltage final modulation signal; and, S1700, based on the comparison between the voltage final modulation signal and the carrier signal, generate the PWM modulation signal.

[0070] In the above-mentioned inverter control unit 100, the data receiving unit 110 is used to receive the time series of the real-time current value of the PCC point, the time series of the real-time voltage value of the PCC point, and the time series of the capacitor current value. It should be understood that the real-time current value of the PCC point, the real-time voltage value of the PCC point, and the capacitor current value are key parameters reflecting the real-time state of the power grid. Specifically, the real-time current value of the PCC point reflects the load change of the power grid, the real-time voltage value of the PCC point reflects the voltage stability of the power grid, and the capacitor current value reflects the ability of the filter circuit to suppress current fluctuations. Under ideal conditions, the real-time current value of the PCC point and the real-time voltage value of the PCC point follow Ohm's law, that is, the current is equal to the voltage divided by the impedance. At this time, there is a simple linear relationship between the voltage and the current, and the change in voltage will directly cause the current to change proportionally. However, in the actual power grid environment, due to the presence of various factors such as nonlinear loads and harmonic interference, the real-time voltage value and the real-time current value of the PCC point present a complex phase difference and harmonic components. Although the filter circuit can filter out some harmonics, it cannot completely eliminate their influence. Therefore, in the technical solution of the present application, it is expected to simulate the working characteristics of a weak power grid by studying the nonlinear dynamic response relationship between the real-time current value of the PCC point, the real-time voltage value of the PCC point and the capacitor current value.

[0071] In the above-mentioned inverter control unit 100, the sequence encoding unit 120 is used to extract the time series-related implicit feature vector of the real-time current value of the PCC point, the time series of the real-time voltage value of the PCC point, and the time series of the capacitor current value. That is, considering that the real-time current value of the PCC point, the real-time voltage value of the PCC point, and the capacitor current value are dynamic sequence data that change with time, therefore, in order to effectively capture their time series dynamic characteristics, in the technical solution of the present application, the time series dynamic correlation change characteristics of each parameter are further extracted from the time series of the real-time current value of the PCC point, the time series of the real-time voltage value of the PCC point, and the time series of the capacitor current value through a time series modeling method, so as to capture the dynamic change trend of the power grid state.

[0072] In a specific example of the present application, the sequence encoding unit 120 is used to: input the time series of the real-time current value of the PCC point, the time series of the real-time voltage value of the PCC point, and the time series of the capacitor current value into a sequence encoder based on a bidirectional gated recurrent unit to obtain the implicit feature vector associated with the real-time current time series of the PCC point, the implicit feature vector associated with the real-time voltage time series of the PCC point, and the implicit feature vector associated with the capacitor current time series. Specifically, the bidirectional gated recurrent unit (Bi-GRU) is an advanced sequence modeling technology that can effectively process long-term dependencies in time series data. It is mainly based on a gating mechanism to control the bidirectional flow of information, and can simultaneously consider the time context information before and after the current moment, so as to more accurately capture the dynamic change characteristics of the real-time current value of the PCC point, the real-time voltage value of the PCC point, and the capacitor current value, reflecting the complex dynamic behavior of the power grid state.

[0073] In the above-mentioned inverter control unit 100, the feature multimodal fusion unit 130 is used to fuse the implicit feature vector associated with the capacitor current time series and the implicit feature vector associated with the real-time current of the PCC point to obtain a multimodal time series characterization vector of the power grid state. It should be understood that the capacitor in the filter circuit unit absorbs harmonic current, thereby reducing the harmonic current content flowing into the PCC point, making the current waveform smoother. At this time, the change in the capacitor current value is opposite to the change trend of the real-time current value of the PCC point, which plays a role of compensation and regulation. In order to fully understand the dynamic response and compensation mechanism of the filter circuit in the weak power grid, the technical solution of the present application further performs an associated interactive fusion analysis on the implicit feature vector associated with the capacitor current time series and the implicit feature vector associated with the real-time current of the PCC point.

[0074] In a specific example of the present application, the feature multimodal fusion unit 130 is used to: input the capacitor current time series associated implicit feature vector and the PCC point real-time current time series associated implicit feature vector into the eigenvalue granularity associated mask distinguishable attention fusion module to obtain the multimodal time series representation vector of the power grid state. Specifically, first, the global eigenvalue association matrix between the capacitor current time series associated implicit feature vector and the PCC point real-time current time series associated implicit feature vector is calculated. Then, the global eigenvalue association matrix is ​​input into a learnable gating function to obtain a correlation distinguishable weight matrix. Secondly, using the correlation distinguishable weight matrix as a fusion mask matrix, the matrix product between the capacitor current time series associated implicit feature vector, the PCC point real-time current time series associated implicit feature vector and the fusion mask matrix is ​​calculated respectively to obtain a distinguished and enhanced capacitor current time series associated implicit feature vector and a distinguished and enhanced PCC point real-time current time series associated implicit feature vector. Furthermore, the implicit feature vector for distinguishing and strengthening the timing association of capacitor current and the implicit feature vector for distinguishing and strengthening the timing association of PCC point real-time current are fused to obtain the multi-modal timing representation vector of the power grid state.

[0075] That is, the capacitor current time series associated implicit feature vector and the PCC point real-time current time series associated implicit feature vector are processed by the following eigenvalue granularity associated mask fusion formula to obtain the multimodal time series representation vector of the power grid state, wherein the eigenvalue granularity associated mask fusion formula is specifically expressed as:

[0076]

[0077]

[0078]

[0079]

[0080] in, represents the capacitor current time series associated implicit eigenvector, represents the implicit characteristic vector associated with the real-time current sequence of the PCC point, represents the transpose of the eigenvector, represents the global eigenvalue incidence matrix, represents the exponential function operation with e as the base, represents the correlation distinguishable weight matrix, represents the matrix multiplication operation, represents the implicit feature vector of the distinguishing enhancement capacitor current timing correlation, represents the implicit characteristic vector of the real-time current timing association of the distinguishing and strengthening PCC point, Indicates cascade operation, A multimodal time series representation vector representing the power grid state.

[0081] Specifically, eigenvalue granularity association mask distinguishable attention fusion is a highly specialized feature fusion technology, which realizes the effective integration of the capacitor current time series association implicit feature vector and the PCC point real-time current time series association implicit feature vector through fine association analysis and adaptive weight allocation, so as to make full use of the information complementarity and correlation between the two and improve the ability to express the complex dynamic behavior of the power grid state. First, by calculating the global eigenvalue association matrix between the capacitor current time series association implicit feature vector and the PCC point real-time current time series association implicit feature vector, the interaction and correlation between the two are quantified, and a global relationship model between the two is established to provide a basis for subsequent adaptive weight allocation. Subsequently, the global eigenvalue association matrix is ​​input into a learnable gating function. Through the self-learning ability of the gating function, a weight matrix with distinguishable correlation between eigenvectors is learned and output, and the weights between eigenvalues ​​are adaptively adjusted to highlight important features and suppress unimportant features, so as to achieve feature selection and enhancement. Next, the obtained weight matrix is ​​used as a fusion mask matrix to perform matrix product operations with the capacitor current time series associated implicit feature vector and the PCC point real-time current time series associated implicit feature vector. Through the weighted application of the mask matrix, not only the relative importance between feature vectors is considered, but also the contribution of each element within the feature vector is considered, so that the distinguished and enhanced feature vectors emphasize their respective key information. Finally, the distinguished and enhanced capacitor current time series associated implicit feature vector and the PCC point real-time current time series associated implicit feature vector are fused through a cascade operation to integrate useful information and obtain a multimodal representation of the dynamic behavior of the power grid.

[0082] In the above-mentioned inverter control unit 100, the characteristic multimodal decoding unit 140 is used to input the multimodal timing representation vector of the power grid state into the decoder-based PCC point reference voltage inference unit to obtain the PCC point reference voltage timing-related implicit reasoning feature vector. That is, combined with the real-time information of the PCC point current and the dynamic response compensation characteristics of the filter circuit, the dynamic characteristics of the reference voltage that the PCC point should present in theory are inferred, thereby providing accurate guidance for the subsequent inverter circuit feedback control. Specifically, the decoder-based PCC point reference voltage inference unit internally integrates a deep neural network architecture, captures the complex information in the multimodal timing representation vector of the power grid state through multi-layer nonlinear transformation, learns the deep intrinsic connection between the PCC point current and the filter circuit compensation performance and voltage, deeply understands the operating state of the power grid, and infers the PCC point reference voltage timing-related implicit reasoning feature vector based on this, so as to achieve high-precision prediction of the dynamic change behavior of the power grid.

[0083] In the above-mentioned inverter control unit 100, the grid state evaluation unit 150 is used to input the implicit reasoning feature vector associated with the PCC point reference voltage timing and the implicit feature vector associated with the PCC point real-time voltage timing into the differential metric network to obtain a differential feature vector. It should be understood that the implicit reasoning feature vector associated with the PCC point reference voltage timing and the implicit feature vector associated with the PCC point real-time voltage timing represent the characteristic expressions of the ideal and actual grid voltage states in the timing dimension respectively. By introducing the differential metric network to compare and analyze the two, the deviation in the grid simulation can be revealed, which is helpful to optimize the inverter control strategy by further feedback adjustment based on the simulation deviation, and improve the accuracy and stability of the grid simulation.

[0084] Specifically, the power grid state assessment unit 150 is used to: perform point convolution processing on the PCC point reference voltage timing-associated implicit reasoning feature vector and the PCC point real-time voltage timing-associated implicit feature vector respectively to obtain the linear transformation PCC point reference voltage timing-associated implicit reasoning feature vector and the linear transformation PCC point real-time voltage timing-associated implicit feature vector; calculate the position difference between the linear transformation PCC point reference voltage timing-associated implicit reasoning feature vector and the linear transformation PCC point real-time voltage timing-associated implicit feature vector to obtain the differential feature vector. That is, firstly, the PCC point reference voltage timing-associated implicit reasoning feature vector and the PCC point real-time voltage timing-associated implicit feature vector are linearly transformed by point convolution operation, and their feature dimensions are adjusted so that the two maintain the same dimensional space, so as to obtain the difference feature between the two by position difference calculation.

[0085] In the above-mentioned inverter control unit 100, the decoding unit 160 is used to input the differential feature vector into a modulation signal generator based on a decoder to obtain a final voltage modulation signal. That is, according to the grid state simulation deviation revealed by the differential feature vector, a corresponding voltage modulation signal is generated by the decoder to adjust the output voltage of the inverter circuit, thereby achieving efficient regulation and accurate simulation of the actual grid voltage. Specifically, in the process of generating the modulation signal, the decoder parses the differential feature vector to extract key information such as voltage deviation and phase offset contained therein, and then reconstructs the information to generate a matching modulation signal.

[0086] It should be understood that before using the above neural network model, it needs to be trained. That is, in the real-time dynamic simulator of AC weak power grid based on end-to-end intelligent control of the present application, it also includes a training module for training the sequence encoder based on bidirectional gated cyclic unit, the eigenvalue granularity associated mask distinguishable attention fusion module, the decoder-based PCC point reference voltage inference device, the differential metric network and the decoder-based modulation signal generator.

[0087] Figure 8 FIG. 1 is a block diagram of a training module in an AC weak power grid real-time dynamic simulator based on end-to-end intelligent control according to an embodiment of the present application. Figure 8As shown, the training module 200 includes: a training data acquisition unit 210, which is used to acquire training data, and the training data includes a time series of real-time current values ​​of the training PCC point, a time series of real-time voltage values ​​of the training PCC point, and a time series of capacitor current values, as well as a real voltage final modulation signal; a training data sequence encoding unit 220, which is used to input the time series of real-time current values ​​of the training PCC point, the time series of real-time voltage values ​​of the training PCC point, and the time series of capacitor current values ​​into the sequence encoder based on the bidirectional gated cyclic unit to obtain the training PCC point real-time current time series associated implicit feature vector, the training PCC point real-time voltage time series associated implicit feature vector, and the training capacitor current time series associated implicit feature vector; a training data multimodal feature fusion unit 230, which is used to input the training capacitor current time series associated implicit feature vector and the training PCC point real-time current time series associated implicit feature vector into the feature value granularity associated mask distinguishable attention fusion module to obtain a training power grid state multimodal time series representation vector; a training data multimodal feature decoding unit 240, which is used to The training grid state multimodal timing representation vector is input into the decoder-based PCC point reference voltage reasoner to obtain the training PCC point reference voltage timing associated implicit reasoning feature vector; the training data differential measurement unit 250 is used to input the training PCC point reference voltage timing associated implicit reasoning feature vector and the training PCC point real-time voltage timing associated implicit feature vector into the differential measurement network to obtain the training differential feature vector; the decoding loss unit 260 is used to input the training differential feature vector into the decoder-based modulation signal generator to obtain the training differential feature vector. A decoding loss function value is obtained; a differential cross-modal loss function value calculation unit 270 is used to calculate the differential cross-modal loss function value of the training differential feature vector; a model training unit 280 is used to train the sequence encoder based on the bidirectional gated recurrent unit, the eigenvalue granularity associated mask distinguishable attention fusion module, the decoder-based PCC point reference voltage inference device, the differential metric network and the decoder-based modulation signal generator using the weighted sum of the decoding loss function value and the differential cross-modal loss function value as the loss function value.

[0088] In the technical solution of the present application, the training capacitor current time series association implicit feature vector and the training PCC point real-time current time series association implicit feature vector respectively represent the local time series association features of the training capacitor current value and the training PCC point real-time current value. Considering that the training capacitor current value and the training PCC point real-time current value have time series distribution differences in the source domain, there is a more significant feature granularity difference between the training capacitor current time series association implicit feature vector and the training PCC point real-time current time series association implicit feature vector. Based on this, in the technical solution of the present application, the feature value granularity association mask can distinguish the attention fusion module to perform feature fusion on the training capacitor current timing association implicit feature vector and the training PCC point real-time current timing association implicit feature vector, which can improve the feature granularity alignment between the training capacitor current timing association implicit feature vector and the training PCC point real-time current timing association implicit feature vector, but the feature granularity difference between the two cannot be eliminated, which makes the obtained training power grid state multimodal timing representation vector relative to the source domain timing distribution of the training capacitor current value and the training PCC point real-time current value have a posterior-prior causal association missing. Subsequently, the training grid state multimodal timing representation vector is input into the decoder-based PCC point reference voltage inference device for decoding and inference, and the obtained training PCC point reference voltage timing associated implicit inference feature vector and the training PCC point real-time voltage timing associated implicit feature vector are input into the differential measurement network for differential measurement. The obtained training differential feature vector has a more significant posterior-prior causal association loss in the source domain timing distribution relative to the training capacitor current value, the training PCC point real-time current value and the training PCC point real-time voltage value, which will make the training differential feature vector have a more complex multimodal timing feature distribution, affecting the accuracy of decoding regression through the decoder-based modulation signal generator.

[0089] Based on this, in the technical solution of the present application, preferably, a new loss function is further introduced in addition to the decoding loss function, namely, a differential cross-modal loss function. The calculation of the differential cross-modal loss function value includes the following steps: calculating a differential feature semantic sum matrix and a differential feature semantic difference matrix based on the training differential feature vector, wherein the differential feature semantic sum matrix is The eigenvalue of the position is the first Eigenvalues ​​and The mean of the eigenvalues, and the first The eigenvalue of the position is the first Eigenvalues ​​and Half of the absolute value of the difference in eigenvalues; performing query matrix multiplication on the training differential feature vector with the differential feature semantic sum matrix and the differential feature semantic difference matrix respectively to obtain a differential feature semantic query sum vector and a differential feature semantic query difference vector; calculating the vector inner product of the differential feature semantic feature sum vector and the differential feature semantic query difference vector to obtain a first differential feature semantic feature loss term; performing matrix multiplication on the differential feature semantic sum matrix and the differential feature semantic difference matrix, and calculating the product matrix norm to obtain a second differential feature semantic feature loss term; and subtract the product of a predetermined weight hyperparameter and the second differential feature semantic feature loss term from the first differential feature semantic feature loss term to obtain the differential cross-modal loss function value.

[0090] That is, the differential cross-modal loss function value of the training differential feature vector is calculated using the following differential cross-modal loss function, wherein the differential cross-modal loss function is specifically expressed as:

[0091]

[0092]

[0093] in, represents the training differential feature vector, represents the training differential feature vector eigenvalues, represents the training differential feature vector eigenvalues, represents the training differential feature vector The eigenvalues ​​and The mean of the eigenvalues, is the differential feature semantics and matrix, represents the training differential feature vector The eigenvalues ​​and One-half the absolute value of the difference between the eigenvalues, is the differential feature semantic difference matrix, represents the matrix multiplication operation, is the predetermined weight hyperparameter, Represents the matrix norm, Represents the differential cross-modal loss function value.

[0094] Therefore, in the technical solution of the present application, the query composition of the detail inner product space within the training differential feature vector is performed through the structured feature representation of the short-range and long-range cross-scale detail links of the training differential feature vector, so as to approximate the low-rank independent observable composition of the linked detail composition provided by the structured detail interaction of the training differential feature vector. In this way, by training with the differential cross-modal loss function value, the distributed detail groups of the training differential feature vector can be used to decompose the details on the basis of the complexity of the details, so as to promote the decoding regression decomposition and recognition of the training differential feature vector based on the complex time series distribution feature representation, and improve the accuracy of the decoding results.

[0095] In the above-mentioned inverter control unit 100, the signal demodulation unit 170 is used to generate the PWM modulation signal based on the comparison between the final voltage modulation signal and the carrier signal. It should be understood that the PWM modulation technology controls the average value of the output voltage or current by adjusting the pulse width to achieve control of the inverter circuit. In the power grid simulation, PWM is used to control the switching state of the inverter circuit unit, thereby adjusting the effective value and waveform of the output voltage. In the process of generating the PWM modulation signal, the final voltage modulation signal (sine wave signal) is compared with the carrier signal (such as a high-frequency triangular wave or sawtooth wave) to dynamically adjust the duty cycle of the PWM signal according to the relative size of the modulation signal and the carrier signal, thereby achieving precise control of the output voltage of the inverter circuit. Specifically, when the instantaneous amplitude of the final voltage modulation signal is higher than the instantaneous amplitude of the carrier signal, a high-level pulse is output; otherwise, a low-level pulse is output. The pulse sequence of the PWM modulation signal is formed by alternating high and low levels, wherein the pulse width (i.e., the duty cycle) is proportional to the instantaneous amplitude of the final voltage modulation signal. In this way, the inverter circuit can be finely controlled to simulate a voltage waveform and dynamic characteristics that are highly similar to the actual power grid.

[0096] In summary, according to the embodiment of the present application, the real-time dynamic simulator of the AC weak power grid based on end-to-end intelligent control is explained, which realizes real-time dynamic simulation and control of the power grid based on the real-time data of the working state of the power grid. Specifically, the real-time dynamic simulator of the AC weak power grid based on end-to-end intelligent control derives the voltage supply under the ideal state based on the dynamic changes of the power grid load, and then performs grid inverter control based on the difference between the ideal voltage supply and the actual voltage state of the power grid, so as to control the power grid simulator to simulate the actual power grid PCC point voltage, thereby realizing high-precision and high-dynamic simulation of the weak power grid.

[0097] The basic principle of the present invention is described above in conjunction with specific embodiments. However, it should be pointed out that the advantages, strengths, effects, etc. mentioned in the present invention are only examples and not limitations, and it cannot be considered that these advantages, strengths, effects, etc. must be possessed by each embodiment of the present invention. In addition, the specific details of the above embodiments are only for the purpose of illustration and facilitation of understanding, rather than limitation, and the above details do not limit the present invention to being implemented by adopting the above specific details.

[0098] In the above embodiments, the description of each embodiment has its own emphasis. For parts that are not described or recorded in detail in a certain embodiment, please refer to the relevant description of other embodiments. In the several embodiments provided by the present invention, it should be understood that the disclosed system and method can be implemented in other ways. For example, the system embodiment described above is only schematic. For example, the unit division is only a logical function division, and there may be other division methods in actual implementation. The unit described as a separate component may or may not be physically separated, and the component displayed as a unit may or may not be a physical unit, that is, it may be located in one place, or it may be distributed on multiple network units.

[0099] It will be apparent to those skilled in the art that the invention is not limited to the details of the exemplary embodiments described above and that the invention can be implemented in other specific forms without departing from the spirit or essential features of the invention. Therefore, the embodiments should be considered exemplary and non-limiting in all respects, and the scope of the invention is defined by the appended claims rather than the foregoing description, and it is intended that all variations falling within the meaning and scope of the equivalent elements of the claims be included in the invention. Any reference to a figure in a claim should not be considered as limiting the claim to which it relates.

[0100] Finally, it should be noted that the above description has been given for the purpose of illustration and description. In addition, the above embodiments are only used to illustrate the technical solution of the present invention and are not intended to limit it. Although the present invention has been described in detail with reference to the preferred embodiments, it should be understood by those skilled in the art that the technical solution of the present invention can be modified or replaced by equivalents without departing from the spirit and scope of the technical solution of the present invention.

Claims

1. A real-time dynamic simulator for AC weak power grid based on end-to-end intelligent control, comprising: A converter module and a main control module for controlling the converter module; the converter module includes an inverter circuit unit and a filter circuit unit, the main control module includes an inverter control unit, the inverter control unit is electrically connected to the inverter circuit unit, characterized in that the inverter control unit is used to generate a PWM modulation signal based on the PCC point real-time current value and PCC point real-time voltage value of the common coupling point and the capacitor current value of the filter circuit unit, and the PWM modulation signal is used to adjust the working state of the inverter circuit unit; Wherein, the inverter control unit comprises: A data receiving unit, used for receiving a time series of the real-time current value of the PCC point, a time series of the real-time voltage value of the PCC point and a time series of the capacitor current value; A feature encoding-decoding module, used for performing feature encoding and decoding on the time series of the real-time current value of the PCC point, the time series of the real-time voltage value of the PCC point and the time series of the capacitor current value to obtain a final voltage modulation signal; A signal demodulation unit is used to generate the PWM modulation signal based on the comparison between the voltage final modulation signal and the carrier signal.

2. The AC weak power grid real-time dynamic simulator based on end-to-end intelligent control according to claim 1 is characterized in that: The feature encoding-decoding module comprises: A sequence encoding unit, used to extract the PCC point real-time current time series associated implicit feature vector, the PCC point real-time voltage time series associated implicit feature vector and the capacitor current time series associated implicit feature vector from the time series of the PCC point real-time current value, the time series of the PCC point real-time voltage value and the time series of the capacitor current value; A feature multi-modal fusion unit, used for fusing the capacitor current time series associated implicit feature vector and the PCC point real-time current time series associated implicit feature vector to obtain a grid state multi-modal time series representation vector; A characteristic multimodal decoding unit, used for inputting the multimodal time series characterization vector of the power grid state into a decoder-based PCC point reference voltage reasoner to obtain a PCC point reference voltage time series associated implicit reasoning characteristic vector; A power grid state evaluation unit, used for inputting the PCC point reference voltage timing associated implicit reasoning feature vector and the PCC point real-time voltage timing associated implicit feature vector into a differential metric network to obtain a differential feature vector; A decoding unit, used for inputting the differential feature vector into a modulation signal generator based on a decoder to obtain a voltage final modulation signal; A signal demodulation unit is used to generate the PWM modulation signal based on the comparison between the voltage final modulation signal and the carrier signal.

3. The real-time dynamic simulator of AC weak power grid based on end-to-end intelligent control according to claim 2 is characterized in that: The sequence encoding unit is used for: The time series of the real-time current value of the PCC point, the time series of the real-time voltage value of the PCC point and the time series of the capacitor current value are respectively input into a sequence encoder based on a bidirectional gated cyclic unit to obtain an implicit feature vector associated with the timing series of the real-time current of the PCC point, an implicit feature vector associated with the timing series of the real-time voltage of the PCC point and an implicit feature vector associated with the timing series of the capacitor current.

4. The real-time dynamic simulator of AC weak power grid based on end-to-end intelligent control according to claim 3 is characterized in that: The feature multimodal fusion unit is used to: The capacitor current time series associated implicit feature vector and the PCC point real-time current time series associated implicit feature vector are input into the eigenvalue granularity associated mask distinguishable attention fusion module to obtain the grid state multimodal time series representation vector.

5. The real-time dynamic simulator of AC weak power grid based on end-to-end intelligent control according to claim 4 is characterized in that: The feature multimodal fusion unit is used to: Calculate the global eigenvalue association matrix between the capacitor current time series associated implicit eigenvector and the PCC point real-time current time series associated implicit eigenvector; Inputting the global eigenvalue association matrix into a learnable gating function to obtain a correlation distinguishable weight matrix; Using the correlation distinguishable weight matrix as a fusion mask matrix, respectively calculating the matrix product between the capacitor current time series associated implicit feature vector, the PCC point real-time current time series associated implicit feature vector and the fusion mask matrix to obtain a distinguished enhanced capacitor current time series associated implicit feature vector and a distinguished enhanced PCC point real-time current time series associated implicit feature vector; The multi-modal time series representation vector of the power grid state is obtained by fusing the implicit feature vector for distinguishing and strengthening the time series association of capacitor current and the implicit feature vector for distinguishing and strengthening the time series association of PCC point real-time current.

6. The real-time dynamic simulator of AC weak power grid based on end-to-end intelligent control according to claim 5 is characterized in that: The power grid state assessment unit is used for: Performing point convolution processing on the PCC point reference voltage timing association implicit reasoning feature vector and the PCC point real-time voltage timing association implicit feature vector respectively to obtain a linear transformation PCC point reference voltage timing association implicit reasoning feature vector and a linear transformation PCC point real-time voltage timing association implicit feature vector; The position difference between the linear transformation PCC point reference voltage timing associated implicit inference feature vector and the linear transformation PCC point real-time voltage timing associated implicit feature vector is calculated to obtain the differential feature vector.

7. The real-time dynamic simulator of AC weak power grid based on end-to-end intelligent control according to claim 6 is characterized in that: Also included is a training module for training the bidirectional gated recurrent unit-based sequence encoder, the eigenvalue granularity associative mask distinguishable attention fusion module, the decoder-based PCC point reference voltage reasoner, the differential metric network, and the decoder-based modulation signal generator; Wherein, the training module includes: A training data acquisition unit, used to acquire training data, wherein the training data includes a time series of a real-time current value of a training PCC point, a time series of a real-time voltage value of a training PCC point, and a time series of a training capacitor current value, as well as a real voltage final modulation signal; A training data sequence encoding unit, used for inputting the time series of the training PCC point real-time current value, the time series of the training PCC point real-time voltage value and the time series of the training capacitor current value into the sequence encoder based on the bidirectional gated cyclic unit respectively to obtain the training PCC point real-time current time series associated implicit feature vector, the training PCC point real-time voltage time series associated implicit feature vector and the training capacitor current time series associated implicit feature vector; A training data multimodal feature fusion unit, used for inputting the training capacitor current time series associated implicit feature vector and the training PCC point real-time current time series associated implicit feature vector into the feature value granularity associated mask distinguishable attention fusion module to obtain a training power grid state multimodal time series representation vector; A training data multimodal feature decoding unit, used for inputting the training power grid state multimodal time series characterization vector into the decoder-based PCC point reference voltage reasoner to obtain a training PCC point reference voltage time series associated implicit reasoning feature vector; A training data differential measurement unit, used for inputting the training PCC point reference voltage timing associated implicit inference feature vector and the training PCC point real-time voltage timing associated implicit feature vector into the differential measurement network to obtain a training differential feature vector; A decoding loss unit, used for inputting the training differential feature vector into the decoder-based modulation signal generator to obtain a decoding loss function value; A differential cross-modal loss function value calculation unit, used to calculate the differential cross-modal loss function value of the training differential feature vector; A model training unit is used to train the sequence encoder based on the bidirectional gated recurrent unit, the eigenvalue granularity association mask distinguishable attention fusion module, the decoder-based PCC point reference voltage inference device, the differential metric network and the decoder-based modulation signal generator by taking the weighted sum of the decoding loss function value and the differential cross-modal loss function value as the loss function value.

8. The real-time dynamic simulator of AC weak power grid based on end-to-end intelligent control according to claim 7 is characterized in that: The common coupling point is the connection point between the real-time dynamic simulator of the weak AC power grid based on end-to-end intelligent control and the grid-connected device under test, or the common coupling point is the connection point between the real-time dynamic simulator of the weak AC power grid based on end-to-end intelligent control and a transformer, and the transformer is used to be electrically connected to the grid-connected device under test.

9. The real-time dynamic simulator of AC weak power grid based on end-to-end intelligent control according to claim 8 is characterized in that: The converter module further includes a rectifier circuit unit, and the main control module further includes a rectifier controller. The output end of the rectifier circuit unit is electrically connected to the inverter circuit unit, and the rectifier controller is electrically connected to the rectifier circuit unit.

Citation Information

Patent Citations

  • Control method and control device of power grid simulator and power grid simulator

    CN116819210A

  • Inverter control method based on voltage feedforward and recombination current control

    CN105763094A

  • Energy storage bidirectional converter system for harmonic compensation and control method

    CN108683190A

  • Model predictive control of a modular multilevel converter

    US20170133845A1

  • Systems, methods and devices for control of DC / DC converters and a standalone DC microgrid using artificial neural networks

    US20190296643A1