Microgrid control system based on visual logic programming

By adopting visual logic programming and modular function library in the microgrid control system, users can easily build personalized control strategies, and real-time execution and adjustment through automated deployment and dynamic adaptation modules, solving the problems of high development costs, long cycles and difficulty in adapting to changes in external variables, improving the flexibility and adaptability of microgrid control.

CN120033848APending Publication Date: 2025-05-23STATE GRID FUJIAN ELECTRIC POWER CO LTD SHISHI POWER SUPPLY CO
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202510179708.6
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-02-19
Publication Date
2025-05-23

AI Technical Summary

Technical Problem

Traditional microgrid control strategies have high development costs and long cycles, making them difficult to adapt to changes in external variables, cannot meet the needs of dynamic control of microgrids, low user satisfaction, and operation and maintenance management units are difficult to cope with changes in the external environment.

Method used

The microgrid control system based on visual logic programming is adopted, including a microgrid controller, logic strategy design interface, modular function library, policy simulation and verification module, automated deployment mechanism and dynamic adaptation module. Through the graphical programming environment and modular function library, users can easily build personalized control strategies and achieve real-time execution and adjustment through automated deployment and dynamic adaptation modules.

Benefits of technology

It lowers the development threshold and cycle of control strategies, improves the flexibility and adaptability of microgrid control, realizes real-time execution and dynamic adjustment of strategies, and improves user satisfaction and operation and maintenance management efficiency.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120033848A_ABST
    Figure CN120033848A_ABST
Patent Text Reader

Abstract

The invention relates to a micro-grid control system based on visual logic programming, and the system comprises a micro-grid controller which is used for collecting the operation parameters of all terminal equipment in a micro-grid; the logic strategy design interface provides a graphical visual programming environment and is used for constructing a personalized control strategy; the modular function library is integrated in a logic strategy design interface and supports a user to combine in a dragging and nesting mode; the strategy simulation and verification module is used for performing simulation operation and verification on the control strategy before strategy deployment; the automatic deployment mechanism is used for converting the control strategy into an executable code and automatically deploying the executable code to a micro-grid controller to realize real-time execution of the strategy; the dynamic adaptation module monitors external variables and system parameters in real time and dynamically adjusts a control strategy according to an adjustment rule; and the terminal equipment element module is used for a user to select terminal equipment elements. According to the system, the development threshold of a control strategy is reduced, the development period is shortened, and the flexibility and adaptability of micro-grid control are improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of microgrid control, and in particular to a microgrid control system based on visual logic programming. Background Art

[0002] With the widespread application of distributed energy and renewable energy, microgrids have received more and more attention as a flexible and efficient power system solution. However, during the construction and operation of microgrids, due to the different operating conditions of different devices, traditional control strategies need to be developed separately for the current status of different devices. This method not only has high development costs and long cycles, but also has difficulty adapting to changes in external variables and cannot meet the needs of dynamic control of microgrids. In addition, frequent strategy programming and updates have reduced user satisfaction, and it is difficult for operation and maintenance management units to respond to changes in the external environment in a timely manner. Summary of the invention

[0003] The purpose of the present invention is to provide a microgrid control system based on visual logic programming, which lowers the development threshold of control strategies, shortens the development cycle, and improves the flexibility and adaptability of microgrid control.

[0004] In order to achieve the above object, the technical solution adopted by the present invention is: a microgrid control system based on visual logic programming, comprising:

[0005] Microgrid controller, used to collect the operating parameters of each terminal device in the microgrid and communicate with other modules;

[0006] The logic strategy design interface provides a graphical visual programming environment for users to build logical relationships based on terminal equipment elements by selecting parameters and functional modules, and to build personalized control strategies using logical statements and in accordance with the set logical framework.

[0007] The modular function library is integrated into the logic strategy design interface, including preset logic judgment, mathematical operation, and control instruction function modules, which support users to combine by dragging and dropping and nesting;

[0008] Strategy simulation and verification module, which simulates and verifies user-defined control strategies before strategy deployment;

[0009] The automated deployment mechanism converts the verified control strategy into executable code and automatically deploys it to the microgrid controller to achieve real-time execution of the strategy.

[0010] Dynamic adaptation module monitors external variables and system parameters in real time and dynamically adjusts control strategies according to preset adjustment rules;

[0011] The terminal device element module is used to provide terminal device elements for users to select.

[0012] Furthermore, the parameter set P formed by the microgrid controller is 1 ,p 2 ,…,p n}, where p i Indicates the real-time operating parameters of the terminal equipment, including voltage, current, active power, reactive power, battery SOC, photovoltaic power generation, equipment load rate, and time.

[0013] Furthermore, the logic strategy design interface utilizes logic statements to construct a personalized control strategy according to the logic framework of “if…then execute…until…”.

[0014] Furthermore, the workflow of the logic strategy design interface is as follows:

[0015] step1: if part

[0016] (1) The user selects a terminal device element;

[0017] (2) Select relevant parameters;

[0018] (3) construct condition C through the function modules in the modular function library;

[0019] Step 2: then part

[0020] (1) The terminal device element selected by the user for execution;

[0021] (2) Select relevant parameters;

[0022] (3) Construct action A through the function modules in the modular function library;

[0023] step3: until part

[0024] (1) The user selects a terminal device element;

[0025] (2) Select relevant parameters;

[0026] (3) Construct the end condition C′ through the function modules in the modular function library;

[0027] Step 4: Construct the control strategy S as follows:

[0028] S: If the parameter p i If condition C is met, action A is executed until parameter p i Satisfies condition C'.

[0029] Furthermore, the modular function library includes:

[0030] Logical judgment module, used to construct conditional judgment statements;

[0031] Mathematical operation module, used for numerical calculation;

[0032] A control instruction module, used for issuing control instructions;

[0033] Variable module, used to define and store intermediate calculation results or status information;

[0034] Function module, used to support user-defined functions and implement complex logic;

[0035] The time selection module includes a timing setting module and a time range setting module. The timing setting module is used to set a specific date and time of each day, and the time range setting module is used to set a start time and an end time.

[0036] Furthermore, the logic judgment module includes "greater than", "less than", "equal to", "and", and "or", which are used to construct conditional judgment statements; the mathematical operation module includes "addition", "subtraction", "multiplication", and "division", which are used for numerical calculations; the control instruction module includes "increase", "decrease", "start device", "turn off device", "adjust parameters", "charge", and "discharge", which are used to issue control instructions.

[0037] Furthermore, the workflow of the strategy simulation and verification module is as follows:

[0038] A1, receiving the control strategy S constructed by the user in the logic strategy design interface;

[0039] A2. Based on the operation principle of microgrid, establish simulation model M sim ;

[0040] A3. Operating parameters collected by the microgrid controller Simulate the actual operating environment;

[0041] A4. For each test data set, calculate the output result:

[0042]

[0043] Among them, f represents the process of the control strategy acting on the input parameters under the simulation model;

[0044] A5. Compare the output result with the expected result (i.e. the user's expected value) and calculate the error:

[0045]

[0046] Among them, E is the error between the output result and the expected result, and m is the number of operating parameters;

[0047] A6. When the error E is less than the set threshold ∈, the strategy verification is successful.

[0048] Furthermore, the workflow of the dynamic adaptation module is as follows:

[0049] B1, real-time acquisition of system parameters P and external variables V, the external variables including ambient temperature and ambient humidity;

[0050] B2. Modify the control strategy S according to the preset adjustment rule R to form a new strategy S':

[0051] S′=Adjust(S,P,V,R)

[0052] B3. Deploy the new strategy S' to the microgrid controller through an automated deployment mechanism.

[0053] Furthermore, the preset adjustment rule R is a set of condition-action pairs, expressed as R={(V i ,A i )}, where V i Represents the change of external variables, A i Indicates the corresponding strategy adjustment operation; when it is detected that the external variable V changes and satisfies a certain condition V i When the corresponding policy adjustment operation A is executed i , update the control strategy S.

[0054] Furthermore, the terminal equipment elements include transformers, low-voltage switches, high-voltage switches, inverters, energy storage devices, photovoltaic generator sets, wind generator sets, and reactive power compensators, which are provided for user selection in the form of equipment names and numbers.

[0055] Compared with the prior art, the present invention has the following beneficial effects: the present invention provides a microgrid control system based on visual logic programming. Through the graphical visual programming environment, the user can easily build a personalized control strategy by dragging and connecting functional modules; the strategy simulation and verification module performs simulation operation before the strategy is deployed to ensure the correctness of the strategy; the automated deployment mechanism automatically generates executable code and deploys the strategy to achieve real-time application of the strategy; the dynamic adaptation module adjusts the control strategy in real time according to the changes in external variables to improve the adaptability of the system. The system lowers the threshold for the development of control strategies, shortens the development cycle, and improves the flexibility and adaptability of microgrid control. BRIEF DESCRIPTION OF THE DRAWINGS

[0056] Figure 1 It is a schematic diagram of the interface of a microgrid control system based on visual logic programming in an embodiment of the present invention. DETAILED DESCRIPTION

[0057] The present invention will be further described below in conjunction with the accompanying drawings and embodiments.

[0058] It should be noted that the following detailed descriptions are exemplary and are intended to provide further explanation of the present application. Unless otherwise specified, all technical and scientific terms used herein have the same meanings as those commonly understood by those skilled in the art to which the present application belongs.

[0059] It should be noted that the terms used herein are only for describing specific embodiments and are not intended to limit the exemplary embodiments according to the present application. As used herein, unless the context clearly indicates otherwise, the singular form is also intended to include the plural form. In addition, it should be understood that when the terms "comprise" and / or "include" are used in this specification, it indicates the presence of features, steps, operations, devices, components and / or combinations thereof.

[0060] like Figure 1 As shown, this embodiment provides a microgrid control system based on visual logic programming, characterized in that it includes: a microgrid controller, a logic strategy design interface, a modular function library, a strategy simulation and verification module, an automated deployment mechanism, a dynamic adaptation module and a terminal device element module.

[0061] The microgrid controller is used to collect operating parameters such as voltage, current, active power, reactive power, battery capacity (SOC), photovoltaic power generation power, equipment load rate, time, etc. of each terminal device in the microgrid, and communicate with other modules.

[0062] Specifically, the parameter set P formed by the microgrid controller is 1 ,p 2 ,…,p n}, where P i It indicates the real-time operating parameters of the terminal equipment, including voltage, current, active power, reactive power, battery capacity (SOC), photovoltaic power generation power, equipment load rate, time, etc.

[0063] The logic strategy design interface provides a graphical visual programming environment. Users can build logical relationships according to terminal device elements by selecting parameters and functional modules, and use logical statements to build personalized control strategies according to the logical framework of "if... then execute... until".

[0064] Specifically, the workflow of the logic strategy design interface is performed according to the following steps.

[0065] step1: if part

[0066] (1) The user selects a terminal device element;

[0067] (2) Select relevant parameters;

[0068] (3) Construct condition C through the functional modules in the modular function library.

[0069] Step 2: then part

[0070] (1) The terminal device element selected by the user for execution;

[0071] (2) Select relevant parameters;

[0072] (3) Construct action A through the function modules in the modular function library.

[0073] step3: until part

[0074] (1) The user selects a terminal device element;

[0075] (2) Select relevant parameters;

[0076] (3) Construct the end condition C' through the function modules in the modular function library.

[0077] Step 4: Construct control strategy A as follows:

[0078] S: If the parameter p i If condition C is met, action A is executed until parameter p i Satisfies condition C'.

[0079] The modular function library is integrated into the logic strategy design interface, including preset logic judgment, mathematical operation, control instruction and other function modules, and supports users to combine them by dragging and dropping and nesting.

[0080] Specifically, the modular function library includes:

[0081] (1) Logical judgment module, including "greater than", "less than", "equal to", "and", "or", etc., used to construct conditional judgment statements.

[0082] (2) Mathematical operation module, including "addition", "subtraction", "multiplication", "division", etc., used for numerical calculations.

[0083] (3) Control command module, including "increase", "decrease", "start device", "turn off device", "adjust parameters", "charge", "discharge", etc., used to issue control commands.

[0084] (4) Variable module, used to define and store intermediate calculation results or status information.

[0085] (5) Function module, used to support user-defined functions and implement complex logic.

[0086] (6) A time selection module, including a timing setting module and a time range setting module. The timing setting module is used to set a specific date and time of each day, and the time range setting module is used to set a start time and an end time.

[0087] The strategy simulation and verification module simulates and verifies the user-defined control strategy before the strategy is deployed.

[0088] Specifically, the workflow of the strategy simulation and verification module is performed in the following steps.

[0089] Step 1: Receive the control strategy S constructed by the user in the logic strategy design interface.

[0090] Step 2: Based on the operation principle of the microgrid, establish a simulation model M sim .

[0091] Step 3: Based on the operating parameters collected by the microgrid controller Simulate the actual operating environment.

[0092] Step 4: For each test data set, calculate the output results:

[0093]

[0094] Where f represents the process of the control strategy acting on the input parameters under the simulation model. The test data set is the data collection of the simulated output electrical quantity after the operating parameters are set under the simulation model.

[0095] Step 5: Compare the output result with the expected result and calculate the error:

[0096]

[0097] Among them, E is the error between the output result and the expected result, and m is the number of running parameters.

[0098] step6: When the error E is less than the set threshold ∈, the strategy verification is successful.

[0099] The automated deployment mechanism converts the verified control strategy into executable code and automatically deploys it to the microgrid controller to achieve real-time execution of the strategy.

[0100] The dynamic adaptation module monitors external variables and system parameters in real time, and dynamically adjusts the control strategy according to preset adjustment rules.

[0101] Specifically, the workflow of the dynamic adaptation module is performed according to the following steps.

[0102] B1. Real-time acquisition of system parameters P and external variables V, the external variables including ambient temperature, ambient humidity, etc. B2. Modify the control strategy S according to the preset adjustment rule R to form a new strategy S':

[0103] S′=Adjust(S,P,V,R)

[0104] The preset adjustment rule R is a set of condition-action pairs, expressed as R = {(V i ,A i )}, where V i Represents the change of external variables, A i Indicates the corresponding strategy adjustment operation; when it is detected that the external variable V changes and satisfies a certain condition V i When the corresponding policy adjustment operation A is executed i , update the control strategy S.

[0105] B3. Deploy the new strategy S' to the microgrid controller through an automated deployment mechanism.

[0106] The terminal device element module is used to provide terminal device elements for users to select, including transformers (numbers), low-voltage switches (numbers), high-voltage switches (numbers), inverters (numbers), energy storage devices (numbers), photovoltaic generator sets (numbers), wind generator sets (numbers), reactive power compensators (numbers), etc., which are selected by users in the form of device names and numbers.

[0107] Those skilled in the art will appreciate that the embodiments of the present application may be provided as methods, systems, or computer program products. Therefore, the present application may adopt the form of a complete hardware embodiment, a complete software embodiment, or an embodiment in combination with software and hardware. Moreover, the present application may adopt the form of a computer program product implemented in one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) that include computer-usable program code.

[0108] The present application is described with reference to the flowcharts and / or block diagrams of the methods, devices (systems), and computer program products according to the embodiments of the present application. It should be understood that each process and / or box in the flowchart and / or block diagram, as well as the combination of the processes and / or boxes in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to generate a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.

[0109] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.

[0110] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.

[0111] The above is only a preferred embodiment of the present invention, and does not limit the present invention in other forms. Any technician familiar with the profession may use the above disclosed technical content to change or modify it into an equivalent embodiment with equivalent changes. However, any simple modification, equivalent change and modification made to the above embodiment according to the technical essence of the present invention without departing from the technical solution of the present invention still belongs to the protection scope of the technical solution of the present invention.

Claims

1. A microgrid control system based on visual logic programming, characterized in that: include: Microgrid controller, used to collect the operating parameters of each terminal device in the microgrid and communicate with other modules; The logic strategy design interface provides a graphical visual programming environment for users to build logical relationships based on terminal equipment elements by selecting parameters and functional modules, and to build personalized control strategies using logical statements and in accordance with the set logical framework. The modular function library is integrated into the logic strategy design interface, including preset logic judgment, mathematical operation, and control instruction function modules, which support users to combine by dragging and dropping and nesting; Strategy simulation and verification module, which simulates and verifies user-defined control strategies before strategy deployment; The automated deployment mechanism converts the verified control strategy into executable code and automatically deploys it to the microgrid controller to achieve real-time execution of the strategy. Dynamic adaptation module monitors external variables and system parameters in real time and dynamically adjusts control strategies according to preset adjustment rules; The terminal device element module is used to provide terminal device elements for users to select.

2. A microgrid control system based on visual logic programming according to claim 1, characterized in that: The parameter set P formed by the microgrid controller is {p1, p2, ..., p n }, where p i Indicates the real-time operating parameters of the terminal equipment, including voltage, current, active power, reactive power, battery SOC, photovoltaic power generation, equipment load rate, and time.

3. A microgrid control system based on visual logic programming according to claim 1, characterized in that: The logic strategy design interface uses logic statements to build a personalized control strategy according to the logic framework of "if...then execute...until..." 4. A microgrid control system based on visual logic programming according to claim 3, characterized in that: The workflow of the logic strategy design interface is as follows: step1: if part (1) The user selects a terminal device element; (2) Select relevant parameters; (3) construct condition C through the function modules in the modular function library; Step 2: then part (1) The terminal device element selected by the user for execution; (2) Select relevant parameters; (3) Construct action A through the function modules in the modular function library; step3: until part (1) The user selects a terminal device element; (2) Select relevant parameters; (3) Construct the end condition C' through the function modules in the modular function library; Step 4: Construct the control strategy S as follows: S: If the parameter p i If condition C is met, action A is executed until parameter p i Satisfies condition C'.

5. A microgrid control system based on visual logic programming according to claim 1, characterized in that: The modular function library includes: Logical judgment module, used to construct conditional judgment statements; Mathematical operation module, used for numerical calculation; A control instruction module, used for issuing control instructions; Variable module, used to define and store intermediate calculation results or status information; Function module, used to support user-defined functions and implement complex logic; The time selection module includes a timing setting module and a time range setting module. The timing setting module is used to set a specific date and time of each day, and the time range setting module is used to set a start time and an end time.

6. A microgrid control system based on visual logic programming according to claim 5, characterized in that: The logic judgment module includes "greater than", "less than", "equal to", "and", and "or", which are used to construct conditional judgment statements; the mathematical operation module includes "addition", "subtraction", "multiplication", and "division", which are used for numerical calculations; the control instruction module includes "increase", "decrease", "start device", "turn off device", "adjust parameters", "charge", and "discharge", which are used to issue control instructions.

7. A microgrid control system based on visual logic programming according to claim 1, characterized in that: The workflow of the strategy simulation and verification module is as follows: A1, receiving the control strategy S constructed by the user in the logic strategy design interface; A2. Based on the operation principle of microgrid, establish simulation model M sim ; A3. Operating parameters collected by the microgrid controller Simulate the actual operating environment; A4. For each test data set, calculate the output result: Among them, f represents the process of the control strategy acting on the input parameters under the simulation model; A5. Compare the output result with the expected result and calculate the error: Among them, E is the error between the output result and the expected result, and m is the number of operating parameters; A6. When the error E is less than the set threshold ∈, the strategy verification is successful.

8. A microgrid control system based on visual logic programming according to claim 1, characterized in that: The workflow of the dynamic adaptation module is as follows: B1, real-time acquisition of system parameters P and external variables V, the external variables including ambient temperature and ambient humidity; B2. Modify the control strategy S according to the preset adjustment rule R to form a new strategy S': S′=Adjust(S,P,V,R) B3. Deploy the new strategy S' to the microgrid controller through an automated deployment mechanism.

9. A microgrid control system based on visual logic programming according to claim 8, characterized in that: The preset adjustment rule R is a set of condition-action pairs, expressed as R={(V i ,A i )}, where V i Represents the change of external variables, A i Indicates the corresponding strategy adjustment operation; when it is detected that the external variable V changes and satisfies a certain condition V i When the corresponding policy adjustment operation A is executed i , update the control strategy S.

10. A microgrid control system based on visual logic programming according to claim 1, characterized in that: The terminal equipment elements include transformers, low-voltage switches, high-voltage switches, inverters, energy storage devices, photovoltaic generator sets, wind generator sets, and reactive power compensators, which are provided for user selection in the form of equipment names and numbers.