Method and system for load frequency control of multi-microgrid considering heterogeneous charging station resources
By constructing a multi-microgrid load frequency control method, and combining deep reinforcement learning and Minkowski addition techniques, we have achieved accurate characterization of heterogeneous charging station resources and dynamic adjustment of frequency deviation, thereby improving the frequency stability and operational reliability of the multi-microgrid system.
Patent Information
- Application Number
- CN202611186037.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2026-08-06
- Publication Date
- 2026-11-20
AI Technical Summary
In multi-microgrid scenarios, the heterogeneity of electric vehicle charging station resources is difficult to characterize, extreme weather causes distortion of vehicle-grid interaction capabilities, and the frequency regulation and coordination efficiency of multiple agents is insufficient, resulting in insufficient frequency stability and operational reliability.
By constructing a multi-microgrid load frequency control method that considers heterogeneous charging station resources, and utilizing deep reinforcement learning algorithms and Minkowski addition and techniques, combined with the coordinated control of micro gas turbines, fast charging stations, and slow charging stations, dynamic adjustment of frequency deviation and accurate characterization of station-level vehicle-grid interaction boundaries are achieved.
It improves frequency stability and operational reliability in complex scenarios, solves the problems of heterogeneous electric vehicle charging station resources and vehicle-grid interaction distortion under extreme weather conditions in multi-microgrid scenarios, and improves the frequency regulation coordination efficiency of multi-agent systems.
Smart Images

Figure CN123144091A_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of electric vehicle technology, and in particular to a multi-microgrid load frequency control method and system that takes into account heterogeneous charging station resources. Background Technology
[0002] With the development of new energy grid connection and transportation electrification, multi-microgrids have become an important carrier of distributed resources. Multi-microgrids achieve power mutual assistance and frequency support through interconnection lines between sub-microgrids. However, considering the strong fluctuation characteristics of renewable energy and the low inertia of microgrids, multi-microgrids are prone to frequency deviation, making load frequency control a critical issue.
[0003] Currently, electric vehicle charging station resources in multi-microgrid scenarios involve micro gas turbines, wind power generation units, and electric vehicle charging infrastructure. However, these resources are significantly insufficient due to limitations imposed by the type of charging infrastructure, user behavior, and state of charge. These shortcomings include: First, the lack of differentiation between fast-charging and slow-charging stations in the charging infrastructure of each microgrid leads to a mismatch between frequency regulation commands and actual regulation capabilities; second, insufficient characterization of user travel time and energy demand results in an overestimation of available capacity; third, failure to consider the impact of extreme weather on the vehicle-grid interaction boundary, making it difficult to adapt to complex operating conditions; and finally, traditional cooperative control methods are insufficiently adaptable to highly nonlinear and communication-constrained scenarios, making it difficult to balance real-time performance and reliability.
[0004] Therefore, there is an urgent need to propose a method for controlling the frequency of multi-microgrid loads that takes into account heterogeneous charging station resources, user time-energy demand, and extreme weather boundary changes, and improves deep reinforcement learning algorithms to enhance frequency stability and operational reliability in complex scenarios. Summary of the Invention
[0005] The technical problem to be solved by the embodiments of the present invention is to provide a multi-microgrid load frequency control method and system that considers heterogeneous charging station resources. This method can solve the problems of difficulty in characterizing the heterogeneity of electric vehicle charging station resources in multi-microgrid scenarios, distortion of vehicle-grid interaction capabilities caused by extreme weather, and insufficient frequency regulation coordination efficiency of multiple agents, thereby improving frequency stability and operational reliability in complex scenarios.
[0006] To address the aforementioned technical problems, embodiments of the present invention provide a multi-microgrid load frequency control method considering heterogeneous charging station resources, the method comprising the following steps: S1. In multiple interconnected microgrids, periodically collect relevant operating data for each microgrid; wherein, the relevant operating data for each microgrid includes the frequency and load power of each microgrid, as well as the output power of each configured micro gas turbine, the output power of each wind turbine, the charging and discharging power of each electric vehicle charging station, and the exchange power of each interconnection line connected to adjacent microgrids within each microgrid; each microgrid's electric vehicle charging station is divided into multiple fast charging stations and / or multiple slow charging stations; S2. Based on the relevant operating data of each microgrid in the current sampling period and the previous sampling period, the frequency deviation of each microgrid in the current sampling period is calculated by using the preset multi-microgrid frequency dynamic model. S3. Determine the set of electric vehicles connected to each fast charging station and / or each slow charging station of each microgrid in the current sampling period, as well as the charging mode assigned to each connected electric vehicle. Further, combine this with the arrival time, departure time, parking duration, subsequent travel distance, expected state of charge at departure, and minimum safe state of charge threshold of each connected electric vehicle obtained from each fast charging station and / or each slow charging station in the current sampling period. Calculate the station-level vehicle-to-grid interaction boundary of each fast charging station or slow charging station connected to electric vehicles in each microgrid in the current sampling period using a pre-defined charge / discharge margin model composed of energy demand constraints, time demand constraints, and the feasible domain of charge / discharge modes. The station-level vehicle-to-grid interaction boundary includes the maximum charging power, maximum discharging power, lower equivalent energy limit, and upper equivalent energy limit. The charging modes include forced charging mode, flexible charging mode, and bidirectional interaction mode. S4. Based on the frequency deviation of each microgrid in the current sampling period, and combined with the station-level vehicle-to-grid interaction boundary of each microgrid connected to electric vehicles in the current sampling period, as well as the collaborative information markers pre-assigned based on environmental interaction in the current sampling period, the load frequency control agent trained by each microgrid obtains the adjustment commands for its micro gas turbines, fast charging stations, and / or slow charging stations in the current sampling period, so as to realize the joint power regulation of each micro gas turbine, fast charging station, and / or slow charging station in each microgrid; wherein, the load frequency control agent is a set of actions constructed based on a heuristic collaborative mechanism, including micro gas turbine adjustment commands, fast charging station adjustment commands, and slow charging station adjustment commands.
[0007] In step S2, the expression for the multi-microgrid frequency dynamic model is: ;in, For the first i The inertia parameter of a microgrid is a fixed value; For the first iFrequency deviation of each microgrid in the current sampling period; For the first i The power regulation of the micro gas turbine in the current sampling period of the microgrid is the value of the first micro gas turbine power regulation in the current sampling period. i The output power of each micro gas turbine in the current sampling period in the microgrid is obtained by summing the difference between the output power of the corresponding previous sampling period and the output power of the micro gas turbine in the current sampling period. The first sample is formed by the combination of fast charging stations and slow charging stations in the current sampling period. i The vehicle-grid interaction regulation power of a microgrid, and ; For the first i The power regulation of the fast charging station of the microgrid, its value is the power regulation of the first microgrid. i The output power of each fast charging station in the microgrid in the current sampling period is obtained by summing the difference between the output power of the corresponding previous sampling period and the output power of the current sampling period. For the first i The power regulation of the slow charging station of the microgrid, its value is the power regulation of the first... i The output power of each slow charging station in the microgrid in the current sampling period is obtained by summing the difference between the output power of the corresponding previous sampling period and the output power of the current sampling period. For the first i The change in tie-line power of each microgrid during the current sampling period, and ; In order to be with the first i A collection of adjacent microgrids connected to a single microgrid; For the first i The microgrid and the first j The synchronization coefficient of the tie lines between microgrids is a fixed value; when Time indicates the first i A microgrid sends power to the tie line when Time indicates the first i Each microgrid obtains supporting power from the tie line; For the first i The load disturbance of a microgrid in the current sampling period, its value is the load disturbance of the first microgrid. i The difference between the load power in the current sampling period and the load power in the previous sampling period in a microgrid; For the first i The wind power disturbance of a microgrid in the current sampling period, its value is the value of the first microgrid. i The output power of each wind turbine in the microgrid for the current sampling period is obtained by summing the difference between the output power of the corresponding wind turbine in the previous sampling period.
[0008] Specifically, step S3 includes: S31. The energy demand constraints in constructing the single-vehicle-level charge / discharge margin model include:
[0009]
[0010]
[0011]
[0012] in, For the first n The state of charge of an electric vehicle in the current sampling period is collected by the on-board battery management system and changes over time; and The first n The minimum and maximum state of charge allowed for an electric vehicle in the current sampling period, which are obtained from vehicle or battery parameters; For the first n The departure time of an electric vehicle in the current sampling period is determined and updated by charging reservation information, user input, navigation information, or historical travel data; For the first n The expected state of charge of an electric vehicle at the current sampling period is determined and updated by charging reservation information, user input, navigation information or historical travel data; For the first n The minimum safe state of charge threshold for an electric vehicle to reach its next destination in the current sampling period is determined and updated by charging reservation information, user input, navigation information, or historical travel data. For the first n The state of charge consumption required for an electric vehicle to complete its subsequent journey; For the first n The subsequent travel distance of an electric vehicle in the current sampling period is determined and updated by charging reservation information, user input, navigation information, or historical travel data; Energy consumption per unit distance, which is obtained from vehicle or battery parameters; Additional energy consumption due to congestion is calculated or estimated from traffic and meteorological information; The duration of congestion is calculated or estimated from traffic and weather information; Let be the battery capacity of the nth electric vehicle, which is obtained from vehicle or battery parameters; S32. The time requirement constraints in constructing the single-vehicle level charge / discharge margin model include:
[0013]
[0014]
[0015]
[0016] in, For the first n Arrival time of electric vehicles in the current sampling period; For the first n The total parking time of electric vehicles during the current sampling period; For the first n The current remaining parking time of each electric vehicle in the current sampling period; For the first n The rated charging power allowed by the charging interface connected to an electric vehicle and the vehicle charging system is determined by the smaller of the rated power of the charging pile and the allowed charging power of the vehicle. The time margin factor is preset to correspond to the current sampling period. It is used to characterize the proportion of remaining time that is still applicable to frequency modulation after deducting the time required to complete the expected charging. Its value is between (0, 1]. S33. The feasible region for the charging and discharging modes in the single-vehicle level charging and discharging margin model includes:
[0017]
[0018]
[0019] in, For the first n The feasible charge / discharge domain of a single electric vehicle participating in the forced charging mode during the current sampling period; and The first n The charging and discharging power of the electric vehicle during the current sampling period; For the first n The feasible charge / discharge domain for a single electric vehicle participating in the flexible charging mode during the current sampling period; For the first n The actual off-site state of charge of the electric vehicle during the current sampling period; For the first n The feasible charging and discharging domain of a single electric vehicle participating in the two-way interactive mode during the current sampling period; S34. The Minkowski summation is used to construct the charging station-level vehicle-to-grid interaction boundary, including the station-level feasible charging and discharging domain connected to the same fast charging station or slow charging station, and the charging station boundary parameter set extracted based on the station-level feasible charging and discharging domain. The expression for the station-level feasible charging and discharging domain is as follows:
[0020] The set of boundary parameters for the charging station is as follows:
[0021] in, For the first j The station-level feasible charging and discharging domain of each charging station in the current sampling period; For the first j The set of electric vehicles connected to a charging station during the current sampling period; For the first j The maximum charging power of each charging station in the current sampling period; For the first j The maximum discharge power of each charging station in the current sampling period; For the first j The lower limit of the equivalent energy of each charging station in the current sampling period; For the first j The upper limit of the equivalent energy of a charging station in the current sampling period; S35. Based on the set of electric vehicles connected to each fast charging station and / or each slow charging station of each microgrid in the current sampling period and the charging mode assigned to each connected electric vehicle, and further combined with the arrival time, departure time, parking duration, subsequent travel distance, expected state of charge at departure and minimum safe state of charge threshold of each connected electric vehicle obtained by each fast charging station and / or each slow charging station in the current sampling period, the station-level vehicle-grid interaction boundary of each fast charging station or each slow charging station connected to electric vehicles in each microgrid in the current sampling period is obtained by performing Minkowski summation calculation through the single-vehicle level charge and discharge margin model.
[0022] Specifically, step S4 includes: S41. Construct the state vector and action vector of the load frequency control agent as follows:
[0023]
[0024] in, For the first i The state vector of the load frequency control agent of a microgrid in the current sampling period; For the first iThe set of frequency deviations between adjacent microgrids of a microgrid in the current sampling period. For the first i A set of adjacent microgrids of a microgrid; and The first i The maximum charging power and maximum discharging power of fast charging stations in a microgrid during the current sampling period; and The first i The maximum charging power and maximum discharging power of a slow charging station in a microgrid during the current sampling period; For the first i The collaborative information tagging of individual microgrids, and ; For the first i The action vector of the load frequency control agent of a microgrid in the current sampling period; For the first i Power regulation commands for micro gas turbines in a microgrid; For the first i Power regulation commands for fast charging stations in a microgrid; For the first i Power regulation commands for slow charging stations in a microgrid; This is an environment encoding function used to map local operating status and available adjustment capabilities to shared information tags; S42. The reward function for constructing the load frequency control agent includes:
[0025]
[0026]
[0027]
[0028] in, For the first i The instantaneous reward of the load frequency control agent of a microgrid during the current sampling period; and These are incentive factors and penalty factors, both of which are preset fixed values; This is the preset frequency difference penalty coefficient; This is a penalty function based on the division of frequency deviation intervals; This is a penalty function for exceeding the limit; For the first q One frequency difference interval; For the first q The penalty weight for each frequency range interval is a fixed value; The allowable frequency difference limit threshold is a preset fixed value; This represents the total simulation duration; This represents the sampling duration for the current sampling period. For the first i The cumulative reward of the load frequency control agent of a microgrid in the current sampling period; S43. Deep Q-learning is used to update the action value of the load frequency control agent, specifically as follows: S431. Initialize training parameters; among which, initialize the action value network parameters of the load frequency control agent for each microgrid. Target network parameters Experience playback cache, shared environment information carrier, and system simulation clock; simultaneously, the sampling period is set. Training round length Discount Factor and reward function parameters; S432. Calculate the current state; where, in each sampling period... It collects local frequency deviation, frequency difference information of adjacent microgrids, tie-line power changes, current charging and discharging boundaries of fast charging stations and slow charging stations, and cooperative information marking. Thus constructing the state vector ; S433. Select the optimal action; wherein, each microgrid's load frequency control agent selects the action with the highest value from its respective action set based on its current state; i The optimal action of the load frequency control agent of a microgrid satisfies: ; For the first i A set of actions of a load frequency control agent in a microgrid; For the first i The action value function of a load frequency control agent in a microgrid; S434, Execute control and obtain feedback; wherein, the selected action This translates into actual control commands for the micro gas turbine, fast charging station, and slow charging station. After the actions are executed, new frequency deviations, tie-line power changes, charging station boundary states, and immediate rewards are obtained. Further synchronize and update collaborative information tags ; S435. Construct the target value and update the action value network; wherein, during the training process, the first... i The target value of the load frequency control agent of a microgrid is defined as follows: The corresponding loss function is And by minimizing the loss function Update Action Value Network Parameters And periodically change the action value network parameters Synchronize to target network parameters ; For the next state, For the target network, Discount factor; S436. Repeat training until convergence to obtain a trained load frequency control agent; wherein, S432 to S435 are repeated until the preset convergence conditions are met; the convergence conditions include the cumulative reward tending to stabilize, the frequency deviation remaining within the allowable range for a long time, and the training rounds reaching the set upper limit. S44. Based on the frequency deviation of each microgrid in the current sampling period, and combined with the station-level vehicle-to-grid interaction boundary of each microgrid connected to electric vehicles in the current sampling period, as well as the collaborative information markers pre-assigned based on environmental interaction in the current sampling period, the load frequency control agent trained by each microgrid obtains the adjustment instructions of each microgrid to its micro gas turbines, fast charging stations and / or slow charging stations in the current sampling period, so as to realize that each micro gas turbine, fast charging station and / or slow charging station in each microgrid can jointly perform power regulation.
[0029] Between step S3 and step S4, the method further includes the following steps: If the weather during the current sampling period is determined to be extreme weather, the station-level vehicle-to-grid interaction boundary of each fast charging station or slow charging station connected to electric vehicles during the current sampling period will be corrected.
[0030] The specific steps for correcting the station-level vehicle-to-grid interaction boundary of each fast charging station or slow charging station connected to electric vehicles in the current sampling period include: First, under extreme weather conditions, the arrival time, departure time, expected departure state of charge, and safe state of charge thresholds are corrected as follows:
[0031]
[0032]
[0033]
[0034] in, For the first time under extreme weather conditions n Arrival time of the electric vehicle after correction for the current sampling period; For the first time under extreme weather conditions n The departure time of each electric vehicle after correction for the current sampling period; For the first time under extreme weather conditions n The expected off-site state of charge of the electric vehicle after correction for the current sampling period; For the first time under extreme weather conditions n The safe state of charge threshold for electric vehicles after correction in the current sampling period; , , and These are the correction amounts for arrival time, departure time, expected departure state of charge, and safe state of charge threshold under extreme weather conditions, respectively, and are all preset fixed coefficients; Secondly, based on the corrected arrival time, departure time, expected state of charge at departure, and safe state of charge threshold under extreme weather conditions, the remaining parking time, minimum required charging time, and time margin factor for vehicles under extreme weather conditions are updated as follows:
[0035]
[0036]
[0037] in, For the first time under extreme weather conditions n The remaining parking time of each electric vehicle after the current sampling period update; For the first time under extreme weather conditions n The minimum charging time required for a vehicle after the current sampling period update; For the first time under extreme weather conditions n The time margin factor of each electric vehicle updated in the current sampling period; Finally, based on the corrected arrival time, departure time, expected state of charge at departure, and safe state of charge threshold under extreme weather conditions, and combined with the updated remaining parking time, minimum required charging time, and time margin factor under extreme weather conditions, the charging and discharging modes in the single-vehicle level charging and discharging margin model are updated. The Minkowski summation is then performed using the updated charging and discharging modes to obtain the station-level vehicle-to-grid interaction boundary of each microgrid connected to electric vehicles in the current sampling period under extreme weather conditions.
[0038] This invention also provides a multi-microgrid load frequency control system that considers heterogeneous charging station resources, including: The operation data acquisition unit is used to periodically collect relevant operation data of each microgrid in multiple interconnected microgrids. The relevant operation data of each microgrid includes the frequency and load power of each microgrid, as well as the output power of each micro gas turbine, the output power of each wind turbine, the charging and discharging power of each electric vehicle charging station, and the exchange power of each interconnection line connected to adjacent microgrids. Each microgrid's electric vehicle charging stations are divided into multiple fast charging stations and / or multiple slow charging stations. The frequency deviation calculation unit is used to calculate the frequency deviation of each microgrid in the current sampling period based on the relevant operating data of each microgrid in the current sampling period and the previous sampling period, through a preset multi-microgrid frequency dynamic model. The station-level vehicle-to-grid interaction boundary calculation unit is used to determine the set of electric vehicles connected to each fast charging station and / or each slow charging station of each microgrid in the current sampling period, as well as the charging mode assigned to each connected electric vehicle. Furthermore, it combines the arrival time, departure time, parking duration, subsequent travel distance, expected state of charge at departure, and minimum safe state of charge threshold of each connected electric vehicle obtained from each fast charging station and / or each slow charging station in the current sampling period. Through a pre-calculated single-vehicle-level charge / discharge margin model composed of energy demand constraints, time demand constraints, and the feasible domain of charge / discharge modes, the station-level vehicle-to-grid interaction boundary of each fast charging station or slow charging station connected to electric vehicles in the current sampling period is obtained. The station-level vehicle-to-grid interaction boundary includes the maximum charging power, maximum discharging power, lower equivalent energy limit, and upper equivalent energy limit; the charging modes include forced charging mode, flexible charging mode, and bidirectional interaction mode. The power command generation and adjustment unit is used to obtain the adjustment commands for each microgrid to its micro gas turbines, fast charging stations, and / or slow charging stations in the current sampling period based on the frequency deviation of each microgrid in the current sampling period, combined with the station-level vehicle-to-grid interaction boundaries of each microgrid connected to electric vehicles in the current sampling period, and the cooperative information tags pre-assigned based on environmental interaction in the current sampling period, through the pre-trained load frequency control agent of each microgrid. This enables the micro gas turbines, fast charging stations, and / or slow charging stations in each microgrid to jointly perform power regulation. The load frequency control agent is a set of actions constructed based on a heuristic cooperative mechanism, which includes micro gas turbine adjustment commands, fast charging station adjustment commands, and slow charging station adjustment commands.
[0039] The expression for the frequency dynamic model of the multi-microgrid is as follows: ;in, For the first i The inertia parameter of a microgrid is a fixed value; For the first i Frequency deviation of each microgrid in the current sampling period; For the first i The power regulation of the micro gas turbine in the current sampling period of the microgrid is the value of the first micro gas turbine power regulation in the current sampling period. i The output power of each micro gas turbine in the current sampling period in the microgrid is obtained by summing the difference between the output power of the corresponding previous sampling period and the output power of the micro gas turbine in the current sampling period. The first sample is formed by the combination of fast charging stations and slow charging stations in the current sampling period. i The vehicle-grid interaction regulation power of a microgrid, and ; For the first i The power regulation of the fast charging station of the microgrid, its value is the power regulation of the first microgrid. i The output power of each fast charging station in the microgrid in the current sampling period is obtained by summing the difference between the output power of the corresponding previous sampling period and the output power of the current sampling period. For the first i The power regulation of the slow charging station of the microgrid, its value is the power regulation of the first... i The output power of each slow charging station in the microgrid in the current sampling period is obtained by summing the difference between the output power of the corresponding previous sampling period and the output power of the current sampling period. For the first i The change in tie-line power of each microgrid during the current sampling period, and ; In order to be with the first i A collection of adjacent microgrids connected to a single microgrid; For the first i The microgrid and the first j The synchronization coefficient of the tie lines between microgrids is a fixed value; when Time indicates the first i A microgrid sends power to the tie line when Time indicates the first i Each microgrid obtains supporting power from the tie line; For the first i The load disturbance of a microgrid in the current sampling period, its value is the load disturbance of the first microgrid. i The difference between the load power in the current sampling period and the load power in the previous sampling period in a microgrid; For the first i The wind power disturbance of a microgrid in the current sampling period, its value is the value of the first microgrid. i The output power of each wind turbine in the microgrid for the current sampling period is obtained by summing the difference between the output power of the corresponding wind turbine in the previous sampling period.
[0040] Implementing the embodiments of the present invention has the following beneficial effects: 1. Compared with existing technologies that only equate electric vehicle resources to a unified energy storage unit, lacking explicit modeling of the heterogeneous characteristics of fast charging stations and slow charging stations, and lacking fine-grained characterization of user time windows and travel needs, this invention integrates the differences between fast charging stations and slow charging stations, the time-energy constraints at the electric vehicle level, and parameter correction under extreme weather conditions into the same load frequency control framework. From the resource modeling level, it improves the realism and executability of the vehicle-grid interaction frequency regulation boundary, thereby solving the problems of difficulty in characterizing the heterogeneity of electric vehicle charging station resources in multi-microgrid scenarios and the distortion of vehicle-grid interaction capabilities caused by extreme weather, and improving frequency stability and operational reliability in complex scenarios. 2. Compared with existing charging stations, which often use empirical constants or rough statistical values to represent the adjustment capabilities, and lack a system mapping from the single-vehicle feasible domain to the station-level time-varying boundary, this invention aggregates the single-vehicle charging and discharging feasible domain into the station-level charging and discharging boundary through Minkowski summation, and directly embeds this boundary into the state space and action constraints, so that the output is always within the feasible domain allowed by user needs, thereby improving the frequency stability and operational reliability in complex scenarios. 3. This invention integrates micro gas turbines, fast charging stations, and slow charging stations into a unified intelligent agent frequency regulation control system. The micro gas turbines provide basic frequency regulation capabilities, the fast charging stations handle short-term regulation with high response speeds, and the slow charging stations handle medium- to long-term slow-release regulation. Furthermore, cross-regional support between multiple microgrids is achieved through interconnect lines. This solves the problem of insufficient frequency regulation coordination efficiency among multiple intelligent agents in multi-microgrid scenarios, improving frequency stability and operational reliability in complex scenarios. Attached Figure Description
[0041] To more clearly illustrate the technical solutions in the embodiments of the present invention or the prior art, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For those skilled in the art, obtaining other drawings based on these drawings without creative effort still falls within the scope of the present invention.
[0042] Figure 1 A flowchart of a multi-microgrid load frequency control method considering heterogeneous charging station resources is provided in an embodiment of the present invention; Figure 2 A schematic diagram of station-level vehicle-to-grid interaction boundary aggregation based on Minkowski summation in a multi-microgrid load frequency control method considering heterogeneous charging station resources provided in an embodiment of the present invention: wherein, the outer frame represents multiple feasible charging and discharging domains of electric vehicles aggregating into a station-level charging and discharging boundary at the same time; Figure 3 This is a schematic diagram of a multi-microgrid load frequency control system that takes into account heterogeneous charging station resources, provided as an embodiment of the present invention. Detailed Implementation
[0043] To make the objectives, technical solutions, and advantages of the present invention clearer, the present invention will be further described in detail below with reference to the accompanying drawings.
[0044] like Figure 1 As shown in the figure, a multi-microgrid load frequency control method considering heterogeneous charging station resources is proposed in an embodiment of the present invention. The method includes the following steps: Step S1: In the specified multiple interconnected microgrids, periodically collect relevant operating data for each microgrid; wherein, the relevant operating data for each microgrid includes the frequency and load power of each microgrid, as well as the output power of each configured micro gas turbine, the output power of each wind turbine, the charging and discharging power of each electric vehicle charging station, and the exchange power of each interconnection line connected to adjacent microgrids; each microgrid's electric vehicle charging station is divided into multiple fast charging stations and / or multiple slow charging stations; The specific process involves setting a sampling period and periodically collecting relevant operational data from each of the multiple interconnected microgrids. This data includes the frequency and load power of each microgrid, as well as the output power of each micro gas turbine, wind turbine, electric vehicle charging station, and the power exchanged between each microgrid and its interconnected lines with adjacent microgrids. Each microgrid's electric vehicle charging station consists of one or more fast-charging and / or slow-charging stations, and each fast-charging or slow-charging station is equipped with multiple charging guns to accommodate multiple electric vehicles.
[0045] For example, a multi-microgrid system consisting of two microgrids can be used as an example. MG1 is a working area microgrid with a number of fast charging stations; MG2 is a residential area microgrid with a number of slow charging stations. The two microgrids exchange power through a tie line. Each microgrid is equipped with a micro gas turbine, wind power unit, load and electric vehicle charging infrastructure (i.e., multiple fast charging stations and / or multiple slow charging stations).
[0046] It should be noted that fast charging stations (FCS) have higher power levels, faster response speeds, and are suitable for short-term rapid frequency adjustment. They are usually located in work areas, commercial areas, or high-traffic parking areas. Slow charging stations (SCS) have relatively lower power levels, but are suitable for medium- to long-term energy balance and slow adjustment when vehicles are stationary. They are usually located in residential areas or long-term parking areas.
[0047] Step S2: Based on the relevant operating data of each microgrid in the current sampling period and the previous sampling period, calculate the frequency deviation of each microgrid in the current sampling period using the preset multi-microgrid frequency dynamic model. The specific process is as follows: Step S21, construct a multi-microgrid frequency dynamic model so that the frequency deviation of the microgrid is jointly determined by load disturbance, wind power disturbance, micro gas turbine regulation power, electric vehicle charging station regulation power, and tie-line power exchange.
[0048] The expression for the frequency dynamic model of the multi-microgrid is as follows: ; For the first i The inertia parameter of a microgrid is a fixed value; For the first i Frequency deviation of each microgrid in the current sampling period; For the first i The power regulation of the micro gas turbine in the current sampling period of the microgrid is the value of the first micro gas turbine power regulation in the current sampling period. i The output power of each micro gas turbine in the current sampling period in the microgrid is obtained by summing the difference between the output power of the corresponding previous sampling period and the output power of the micro gas turbine in the current sampling period. The first sample is formed by the combination of fast charging stations and slow charging stations in the current sampling period. i The vehicle-grid interaction regulation power of a microgrid, and ; For the first i The power regulation of the fast charging station of the microgrid, its value is the power regulation of the first microgrid. i The output power of each fast charging station in the microgrid in the current sampling period is obtained by summing the difference between the output power of the corresponding previous sampling period and the output power of the current sampling period. For the first i The power regulation of the slow charging station of the microgrid, its value is the power regulation of the first... i The output power of each slow charging station in the microgrid in the current sampling period is obtained by summing the difference between the output power of the corresponding previous sampling period and the output power of the current sampling period. For the first i The change in tie-line power of each microgrid during the current sampling period, and ; In order to be with the first i A collection of adjacent microgrids connected to a single microgrid; For the first i The microgrid and the first j The synchronization coefficient of the tie lines between microgrids is a fixed value; when Time indicates the first iA microgrid sends power to the tie line when Time indicates the first i Each microgrid obtains supporting power from the tie line; For the first i The load disturbance of a microgrid in the current sampling period, its value is the load disturbance of the first microgrid. i The difference between the load power in the current sampling period and the load power in the previous sampling period in a microgrid; For the first i The wind power disturbance of a microgrid in the current sampling period, its value is the value of the first microgrid. i The output power of each wind turbine in the microgrid for the current sampling period is obtained by summing the difference between the output power of the corresponding wind turbine in the previous sampling period.
[0049] Step S22: Within the current sampling period, the power change can be calculated relative to the reference value or the value of the previous sampling period, and then substituted together with the initial frequency deviation of the sampling period into the multi-microgrid frequency dynamic model. After integration, the frequency deviation of each microgrid in the current sampling period is obtained.
[0050] Step S3: Determine the set of electric vehicles connected to each fast charging station and / or each slow charging station of each microgrid in the current sampling period, as well as the charging mode assigned to each connected electric vehicle. Further, combine this with the arrival time, departure time, parking duration, subsequent travel distance, expected state of charge at departure, and minimum safe state of charge threshold of each connected electric vehicle obtained from each fast charging station and / or each slow charging station in the current sampling period. Calculate the station-level vehicle-to-grid interaction boundary of each fast charging station or slow charging station connected to electric vehicles in each microgrid in the current sampling period using a pre-defined single-vehicle-level charge / discharge margin model composed of energy demand constraints, time demand constraints, and the feasible domain of charge / discharge modes. The station-level vehicle-to-grid interaction boundary includes the maximum charging power, maximum discharging power, lower equivalent energy limit, and upper equivalent energy limit. The charging modes include forced charging mode, flexible charging mode, and bidirectional interaction mode. The specific process is as follows: Step S31, the energy demand constraints in constructing the charge / discharge margin model at the vehicle level include:
[0051]
[0052]
[0053]
[0054] in, For the first nThe state of charge of an electric vehicle in the current sampling period is collected by the on-board battery management system and changes over time; and The first n The minimum and maximum state of charge allowed for an electric vehicle in the current sampling period, which are obtained from vehicle or battery parameters; For the first n The departure time of an electric vehicle in the current sampling period is determined and updated by charging reservation information, user input, navigation information, or historical travel data; For the first n The expected state of charge of an electric vehicle at the current sampling period is determined and updated by charging reservation information, user input, navigation information or historical travel data; For the first n The minimum safe state of charge threshold for an electric vehicle to reach its next destination in the current sampling period is determined and updated by charging reservation information, user input, navigation information, or historical travel data. For the first n The state of charge consumption required for an electric vehicle to complete its subsequent journey; For the first n The subsequent travel distance of an electric vehicle in the current sampling period is determined and updated by charging reservation information, user input, navigation information, or historical travel data; Energy consumption per unit distance, which is obtained from vehicle or battery parameters; Additional energy consumption due to congestion is calculated or estimated from traffic and meteorological information; The duration of congestion is calculated or estimated from traffic and weather information; Let be the battery capacity of the nth electric vehicle, which is obtained from vehicle or battery parameters.
[0055] In one example, battery capacity is taken. =60kWh, subsequent travel distance =30km, energy consumption per unit distance =0.18kWh / km, average power added by congestion =2kW, duration of congestion =0.5h, then the energy requirement for the subsequent journey is 6.4 kWh, corresponding to the state of charge consumption. Approximately 10.7%; when using a minimum safe state of charge threshold of 20%, the expected off-site state of charge is... No less than 30.7%.
[0056] Step S32, the time requirement constraints in constructing the single-vehicle-level charge / discharge margin model include:
[0057]
[0058]
[0059]
[0060] in, For the first n Arrival time of electric vehicles in the current sampling period; For the first n The total parking time of electric vehicles during the current sampling period; For the first n The current remaining parking time of each electric vehicle in the current sampling period; For the first n The rated charging power allowed by the charging interface connected to an electric vehicle and the vehicle charging system is determined by the smaller of the rated power of the charging pile and the allowed charging power of the vehicle. The time margin factor is preset to correspond to the current sampling period. It is used to characterize the proportion of remaining time that is still applicable to frequency modulation after deducting the time required to complete the expected charging. Its value is between (0, 1).
[0061] It should be noted that the arrival time is directly collected from the vehicle access record; the departure time is obtained from the reservation information or user input; and the parking duration is calculated by subtracting the arrival time from the departure time.
[0062] In one example, the rated power range of the fast charging interface is 60–240 kW, and the rated power range of the slow charging interface is 3.3–22 kW; n Rated charging power of the vehicle Take the smaller value between the rated power of the connected charging interface and the vehicle's allowable charging power.
[0063] Step S33: The feasible region of charge / discharge modes in the single-vehicle level charge / discharge margin model includes:
[0064]
[0065]
[0066] in, For the first n The feasible charge / discharge domain of a single electric vehicle participating in the forced charging mode during the current sampling period; and The first n The charging and discharging power of the electric vehicle during the current sampling period; For the first n The feasible charge / discharge domain for a single electric vehicle participating in the flexible charging mode during the current sampling period; For the first n The actual off-site state of charge of the electric vehicle during the current sampling period; For the first n The feasible charging and discharging domain for a single electric vehicle participating in the two-way interactive mode during the current sampling period.
[0067] It should be noted that in the forced charging mode, users only accept vehicle charging and do not accept vehicle discharging; in the flexible charging mode, users are allowed to adjust the charging power without changing the departure time and without falling below the expected departure state of charge, but are not allowed to discharge; in the two-way interactive mode, users allow the vehicle to participate in two-way adjustment, which can both charge and discharge, provided that the departure state of charge constraints are met.
[0068] At this point, the time margin factor in step S32 =0, enters forced charging mode and discharge capacity is not considered; time margin factor ≥0.2, enters flexible charging mode or bidirectional participation mode, and participates in station-level capability boundary aggregation. Additionally, 0< When the value is less than 0.2, only the charging power regulation capability is retained.
[0069] Step S34: Construct a charging station-level vehicle-to-grid interaction boundary using Minkowski summation, including a station-level feasible charging and discharging domain connected to the same fast charging station or slow charging station, and a set of charging station boundary parameters extracted based on the station-level feasible charging and discharging domain. The expression for the station-level feasible charging and discharging domain is as follows:
[0070] The set of boundary parameters for the charging station is as follows:
[0071] in, For the first j The station-level feasible charging and discharging domain of each charging station in the current sampling period; For the first j The set of electric vehicles connected to a charging station during the current sampling period; For the first j The maximum charging power of each charging station in the current sampling period; For the first j The maximum discharge power of each charging station in the current sampling period; For the first j The lower limit of the equivalent energy of each charging station in the current sampling period; For the firstj The upper limit of the equivalent energy of a charging station in the current sampling period.
[0072] In one example, such as Figure 2 The diagram shown illustrates station-level vehicle-to-grid interaction boundary aggregation based on Minkowski summation. A and B represent the feasible charging and discharging domains of electric vehicles connected to the same charging station.
[0073] Step S35: Collect the set of electric vehicles connected to each fast charging station and / or each slow charging station of each microgrid in the current sampling period, as well as the charging mode assigned to each connected electric vehicle. Further, obtain the arrival time, departure time, parking duration, subsequent travel distance, expected state of charge at departure, and minimum safe state of charge threshold of each connected electric vehicle obtained from each fast charging station and / or each slow charging station in the current sampling period, and import them into the single-vehicle charge and discharge margin model for Minkowski summation calculation to obtain the station-level vehicle-grid interaction boundary of each fast charging station or each slow charging station connected to electric vehicles in each microgrid in the current sampling period.
[0074] Step S4: Based on the frequency deviation of each microgrid in the current sampling period, and combined with the station-level vehicle-to-grid interaction boundary of each microgrid connected to electric vehicles in the current sampling period, as well as the cooperative information markers pre-assigned based on environmental interaction in the current sampling period, the load frequency control agent trained by each microgrid obtains the adjustment commands for its micro gas turbines, fast charging stations, and / or slow charging stations in the current sampling period, so as to realize the joint power regulation of each micro gas turbine, fast charging station, and / or slow charging station in each microgrid; wherein, the load frequency control agent is a set of actions constructed based on a heuristic cooperative mechanism, including micro gas turbine adjustment commands, fast charging station adjustment commands, and slow charging station adjustment commands.
[0075] The specific process is as follows: Step S41, construct the state vector and action vector of the load frequency control agent.
[0076]
[0077] in, For the first i The state vector of the load frequency control agent of a microgrid in the current sampling period; For the first i The set of frequency deviations between adjacent microgrids of a microgrid in the current sampling period. For the first i A set of adjacent microgrids of a microgrid; and The first iThe maximum charging power and maximum discharging power of fast charging stations in a microgrid during the current sampling period; and The first i The maximum charging power and maximum discharging power of a slow charging station in a microgrid during the current sampling period; For the first i The collaborative information tagging of individual microgrids, and ; For the first i The action vector of the load frequency control agent of a microgrid in the current sampling period; For the first i Power regulation commands for micro gas turbines in a microgrid; For the first i Power regulation commands for fast charging stations in a microgrid; For the first i Power regulation commands for slow charging stations in a microgrid; This is an environment encoding function used to map local operating status and available adjustment capabilities to shared information tags.
[0078] It should be noted that during the execution of actions, the adjustment commands of fast charging stations and slow charging stations must satisfy their respective real-time boundary constraints. When using the sign convention of positive for discharging and negative for charging, we have:
[0079]
[0080] Furthermore, the total regulating power on the electric vehicle side satisfies: .
[0081] It should be noted that the set of shared environmental information formed by all microgrid load frequency control agents in the current sampling period can be represented as: In the next control cycle, the load frequency control agent of each microgrid reads... By acquiring collaborative information left by load frequency control agents of other microgrids, distributed and lightweight collaborative control can be achieved. This communication method can effectively reduce the burden of direct communication and improve availability in scenarios with limited communication links.
[0082] In one example, in the two microgrids MG1 and MG2, the state vectors of the load frequency control agents of the two microgrids can be further written as:
[0083] .
[0084] Step S42, constructing the reward function for the load frequency control agent includes:
[0085]
[0086]
[0087]
[0088] in, For the first i The instantaneous reward of the load frequency control agent of a microgrid during the current sampling period; and These are incentive factors and penalty factors, both of which are preset fixed values; This is the preset frequency difference penalty coefficient; This is a penalty function based on the division of frequency deviation intervals; This is a penalty function for exceeding the limit; For the first q One frequency difference interval; For the first q The penalty weight for each frequency range interval is a fixed value; The allowable frequency difference limit threshold is a preset fixed value; This represents the total simulation duration; This represents the sampling duration for the current sampling period. For the first i The cumulative reward of the load frequency control agent of a microgrid in the current sampling period.
[0089] Step S43: Update the action value of the load frequency control agent using deep Q-learning, specifically as follows: Step S431: Initialize training parameters; wherein, initialize the action value network parameters of the load frequency control agent for each microgrid. Target network parameters Experience playback cache, shared environment information carrier, and system simulation clock; simultaneously, the sampling period is set. Training round length Discount Factor and reward function parameters; Step S432: Calculate the current state; wherein, in each sampling period... It collects local frequency deviation, frequency difference information of adjacent microgrids, tie-line power changes, current charging and discharging boundaries of fast charging stations and slow charging stations, and cooperative information marking. Thus constructing the state vector ; Step S433: Select the optimal action; wherein, each microgrid's load frequency control agent selects the action with the highest action value from its respective action set based on the current state; i The optimal action of the load frequency control agent of a microgrid satisfies: ; For the first i A set of actions of a load frequency control agent in a microgrid; For the first i The action value function of a load frequency control agent in a microgrid; Step S434: Execute control and obtain feedback; wherein, the selected action This translates into actual control commands for the micro gas turbine, fast charging station, and slow charging station. After the actions are executed, new frequency deviations, tie-line power changes, charging station boundary states, and immediate rewards are obtained. Further synchronize and update collaborative information tags ; Step S435: Construct target values and update the action value network; wherein, during training, the first... i The target value of the load frequency control agent of a microgrid is defined as follows: The corresponding loss function is And by minimizing the loss function Update Action Value Network Parameters And periodically change the action value network parameters Synchronize to target network parameters ; For the next state, For the target network, Discount factor; S436. Repeat training until convergence to obtain a trained load frequency control agent; wherein, repeat steps S432 to S435 until the preset convergence conditions are met; the convergence conditions include the cumulative reward stabilizing, the frequency deviation remaining within the allowable range for a long time, and the training rounds reaching the set upper limit.
[0090] Step S44: Based on the frequency deviation of each microgrid in the current sampling period, and combined with the station-level vehicle-to-grid interaction boundary of each microgrid connected to electric vehicles in the current sampling period, as well as the collaborative information tag assigned in the current sampling period, the adjustment instructions of each microgrid to its micro gas turbines, fast charging stations and / or slow charging stations in the current sampling period are obtained through the load frequency control agent trained by each microgrid, so as to realize that each micro gas turbine, fast charging station and / or slow charging station in each microgrid can jointly perform power regulation.
[0091] It should be noted that the generation of regulation commands for the load frequency control agent of each microgrid and the joint power regulation of each micro gas turbine, each fast charging station and / or each slow charging station are achieved using conventional technical means in this field, and will not be elaborated here.
[0092] In one example, the following steps are executed sequentially for each sampling period: (1) Collect the local frequency deviation of the current microgrid, the frequency difference information of adjacent microgrids, the power change of the tie line, and the real-time boundary between fast charging stations and slow charging stations; (2) Read the collaborative information tags in the shared environment information carrier ; (3) Constructing the state vector ; (4) Call the trained action value network to output the optimal action. ; (5) Map the optimal action to the actual adjustment action commands of the micro gas turbine, fast charging station and slow charging station; (6) Update the single-vehicle feasible domain, station-level boundary and collaborative information tags of each station. Then proceed to the next sampling period.
[0093] In this embodiment of the invention, considering that the station-level boundary between fast charging stations and slow charging stations is updated in real time, it is necessary to continuously adapt to changes in vehicle access status, user needs and weather conditions.
[0094] For example, under normal weather conditions, the spatiotemporal distribution of electric vehicles in multi-microgrid systems exhibits a clear intraday migration pattern: at night, more vehicles connect to slow charging stations in residential areas, giving these stations a larger charging / discharging boundary; during the midday working hours, more vehicles connect to fast charging stations in working areas, giving these stations a stronger short-term frequency regulation capability; in the evening, vehicles flow back from working areas to residential areas, and the boundaries between the two types of stations gradually transition. Under extreme weather conditions, especially heavy rain, these patterns change: fewer vehicles connect to fast charging stations in working areas during the day, shrinking the short-term discharge boundary; the proportion of long-term parking at slow charging stations in residential areas increases, enhancing or stabilizing their medium- and long-term regulation capabilities; users increase their expected state of charge when leaving the station for safety reasons, decreasing the depth of discharge; the controller correspondingly increases the weight of micro gas turbines and tie-line support, and allocates remaining vehicle-to-grid interaction resources while meeting user needs.
[0095] Therefore, to accurately describe the impact of extreme weather such as heavy rain on vehicle-to-grid (V2G) interaction capabilities, this invention performs weather corrections on key parameters in the electric vehicle model. Thus, between steps S3 and S4, the method further includes the following steps: If the weather during the current sampling period is determined to be extreme weather, the station-level vehicle-to-grid interaction boundaries of all fast charging stations or slow charging stations connected to electric vehicles during the current sampling period will be corrected. Specific steps include: First, under extreme weather conditions, the arrival time, departure time, expected departure state of charge, and safe state of charge thresholds are corrected as follows:
[0096]
[0097]
[0098]
[0099] in, For the first time under extreme weather conditions n Arrival time of the electric vehicle after correction for the current sampling period; For the first time under extreme weather conditions n The departure time of each electric vehicle after correction for the current sampling period; For the first time under extreme weather conditions n The expected off-site state of charge of the electric vehicle after correction for the current sampling period; For the first time under extreme weather conditions n The safe state of charge threshold for electric vehicles after correction in the current sampling period; , , and These are the correction amounts for arrival time, departure time, expected departure state of charge, and safe state of charge threshold under extreme weather conditions, respectively, and are all preset fixed coefficients; Secondly, based on the corrected arrival time, departure time, expected state of charge at departure, and safe state of charge threshold under extreme weather conditions, the remaining parking time, minimum required charging time, and time margin factor for vehicles under extreme weather conditions are updated as follows:
[0100]
[0101]
[0102] in, For the first time under extreme weather conditions n The remaining parking time of each electric vehicle after the current sampling period update; For the first time under extreme weather conditions n The minimum charging time required for a vehicle after the current sampling period update; For the first time under extreme weather conditions nThe time margin factor of each electric vehicle updated in the current sampling period; Finally, based on the corrected arrival time, departure time, expected state of charge at departure, and safe state of charge threshold under extreme weather conditions, and combined with the updated remaining parking time, minimum required charging time, and time margin factor under extreme weather conditions, the charging and discharging modes in the single-vehicle level charging and discharging margin model are updated. The Minkowski summation is then performed using the updated charging and discharging modes to obtain the station-level vehicle-to-grid interaction boundary of each microgrid connected to electric vehicles in the current sampling period under extreme weather conditions.
[0103] like Figure 3 As shown in the figure, a multi-microgrid load frequency control system considering heterogeneous charging station resources is provided in an embodiment of the present invention, comprising: The operation data acquisition unit 110 is used to periodically collect relevant operation data of each microgrid in multiple interconnected microgrids. The relevant operation data of each microgrid includes the frequency and load power of each microgrid, as well as the output power of each micro gas turbine, the output power of each wind turbine, the charging and discharging power of each electric vehicle charging station, and the exchange power of each interconnection line connected to the adjacent microgrid. Each microgrid's electric vehicle charging station is divided into multiple fast charging stations and / or multiple slow charging stations. The frequency deviation calculation unit 120 is used to calculate the frequency deviation of each microgrid in the current sampling period based on the relevant operating data of each microgrid in the current sampling period and the previous sampling period, through a preset multi-microgrid frequency dynamic model. The station-level vehicle-to-grid interaction boundary calculation unit 130 is used to determine the set of electric vehicles connected to each fast charging station and / or each slow charging station of each microgrid in the current sampling period, as well as the charging mode assigned to each connected electric vehicle. Furthermore, it combines the arrival time, departure time, parking duration, subsequent travel distance, expected state of charge at departure, and minimum safe state of charge threshold of each connected electric vehicle obtained from each fast charging station and / or each slow charging station in the current sampling period. Through a pre-calculated single-vehicle-level charge / discharge margin model composed of energy demand constraints, time demand constraints, and the feasible domain of charge / discharge modes, the station-level vehicle-to-grid interaction boundary of each fast charging station or slow charging station connected to electric vehicles in the current sampling period is obtained. The station-level vehicle-to-grid interaction boundary includes the maximum charging power, maximum discharging power, lower equivalent energy limit, and upper equivalent energy limit. The charging modes include forced charging mode, flexible charging mode, and bidirectional interaction mode. The power command generation and regulation unit 140 is used to obtain the regulation commands of each microgrid to its micro gas turbines, fast charging stations and / or slow charging stations in the current sampling period based on the frequency deviation of each microgrid in the current sampling period, combined with the station-level vehicle-to-grid interaction boundaries of each microgrid connected to electric vehicles in the current sampling period, and the cooperative information tags given in advance based on environmental interaction in the current sampling period, through the load frequency control agent of each microgrid, so as to realize the joint power regulation of each micro gas turbine, fast charging station and / or slow charging station in each microgrid; wherein, the load frequency control agent is a set of actions constructed based on a heuristic cooperative mechanism, which includes micro gas turbine regulation commands, fast charging station regulation commands and slow charging station regulation commands.
[0104] The expression for the frequency dynamic model of the multi-microgrid is as follows: ;in, For the first i The inertia parameter of a microgrid is a fixed value; For the first i Frequency deviation of each microgrid in the current sampling period; For the first i The power regulation of the micro gas turbine in the current sampling period of the microgrid is the value of the first micro gas turbine power regulation in the current sampling period. i The output power of each micro gas turbine in the current sampling period in the microgrid is obtained by summing the difference between the output power of the corresponding previous sampling period and the output power of the micro gas turbine in the current sampling period. The first sample is formed by the combination of fast charging stations and slow charging stations in the current sampling period. i The vehicle-grid interaction regulation power of a microgrid, and ; For the first i The power regulation of the fast charging station of the microgrid, its value is the power regulation of the first microgrid. i The output power of each fast charging station in the microgrid in the current sampling period is obtained by summing the difference between the output power of the corresponding previous sampling period and the output power of the current sampling period. For the first i The power regulation of the slow charging station of the microgrid, its value is the power regulation of the first... i The output power of each slow charging station in the microgrid in the current sampling period is obtained by summing the difference between the output power of the corresponding previous sampling period and the output power of the current sampling period. For the first i The change in tie-line power of each microgrid during the current sampling period, and ; In order to be with the first i A collection of adjacent microgrids connected to a single microgrid; For the first i The microgrid and the first j The synchronization coefficient of the tie lines between microgrids is a fixed value; when Time indicates the first i A microgrid sends power to the tie line when Time indicates the first i Each microgrid obtains supporting power from the tie line; For the first i The load disturbance of a microgrid in the current sampling period, its value is the load disturbance of the first microgrid. i The difference between the load power in the current sampling period and the load power in the previous sampling period in a microgrid; For the first i The wind power disturbance of a microgrid in the current sampling period, its value is the value of the first microgrid. i The output power of each wind turbine in the microgrid for the current sampling period is obtained by summing the difference between the output power of the corresponding wind turbine in the previous sampling period.
[0105] Implementing the embodiments of the present invention has the following beneficial effects: 1. Compared with existing technologies that only equate electric vehicle resources to a unified energy storage unit, lacking explicit modeling of the heterogeneous characteristics of fast charging stations and slow charging stations, and lacking fine-grained characterization of user time windows and travel needs, this invention integrates the differences between fast charging stations and slow charging stations, the time-energy constraints at the electric vehicle level, and parameter correction under extreme weather conditions into the same load frequency control framework. From the resource modeling level, it improves the realism and executability of the vehicle-grid interaction frequency regulation boundary, thereby solving the problems of difficulty in characterizing the heterogeneity of electric vehicle charging station resources in multi-microgrid scenarios and the distortion of vehicle-grid interaction capabilities caused by extreme weather, and improving frequency stability and operational reliability in complex scenarios. 2. Compared with existing charging stations, which often use empirical constants or rough statistical values to represent the adjustment capabilities, and lack a system mapping from the single-vehicle feasible domain to the station-level time-varying boundary, this invention aggregates the single-vehicle charging and discharging feasible domain into the station-level charging and discharging boundary through Minkowski summation, and directly embeds this boundary into the state space and action constraints, so that the output is always within the feasible domain allowed by user needs, thereby improving the frequency stability and operational reliability in complex scenarios. 3. This invention integrates micro gas turbines, fast charging stations, and slow charging stations into a unified intelligent agent frequency regulation control system. The micro gas turbines provide basic frequency regulation capabilities, the fast charging stations handle short-term regulation with high response speeds, and the slow charging stations handle medium- to long-term slow-release regulation. Furthermore, cross-regional support between multiple microgrids is achieved through interconnect lines. This solves the problem of insufficient frequency regulation coordination efficiency among multiple intelligent agents in multi-microgrid scenarios, improving frequency stability and operational reliability in complex scenarios.
[0106] It is worth noting that the various system modules included in the above system embodiments are only divided according to functional logic, but are not limited to the above division, as long as the corresponding functions can be achieved; in addition, the specific names of each functional module are only for easy differentiation and are not used to limit the scope of protection of the present invention.
[0107] Those skilled in the art will understand that all or part of the steps in the methods of the above embodiments can be implemented by a program instructing related hardware. The program can be stored in a computer-readable storage medium, such as ROM / RAM, disk, optical disk, etc.
[0108] The above description discloses only preferred embodiments of the present invention and should not be construed as limiting the scope of the present invention. Therefore, equivalent variations made in accordance with the claims of the present invention are still within the scope of the present invention.
Claims
1. A method for frequency control of multi-microgrid loads considering heterogeneous charging station resources, characterized in that, The method includes the following steps: S1. In multiple interconnected microgrids, periodically collect relevant operating data for each microgrid; wherein, the relevant operating data for each microgrid includes the frequency and load power of each microgrid, as well as the output power of each configured micro gas turbine, the output power of each wind turbine, the charging and discharging power of each electric vehicle charging station, and the exchange power of each interconnection line connected to adjacent microgrids within each microgrid; each microgrid's electric vehicle charging station is divided into multiple fast charging stations and / or multiple slow charging stations; S2. Based on the relevant operating data of each microgrid in the current sampling period and the previous sampling period, the frequency deviation of each microgrid in the current sampling period is calculated by using the preset multi-microgrid frequency dynamic model. S3. Determine the set of electric vehicles connected to each fast charging station and / or each slow charging station of each microgrid in the current sampling period, as well as the charging mode assigned to each connected electric vehicle. Further, combine this with the arrival time, departure time, parking duration, subsequent travel distance, expected state of charge at departure, and minimum safe state of charge threshold of each connected electric vehicle obtained from each fast charging station and / or each slow charging station in the current sampling period. Calculate the station-level vehicle-to-grid interaction boundary of each fast charging station or slow charging station connected to electric vehicles in each microgrid in the current sampling period using a pre-defined charge / discharge margin model composed of energy demand constraints, time demand constraints, and the feasible domain of charge / discharge modes. The station-level vehicle-to-grid interaction boundary includes the maximum charging power, maximum discharging power, lower equivalent energy limit, and upper equivalent energy limit. The charging modes include forced charging mode, flexible charging mode, and bidirectional interaction mode. S4. Based on the frequency deviation of each microgrid in the current sampling period, and combined with the station-level vehicle-to-grid interaction boundary of each microgrid connected to electric vehicles in the current sampling period, as well as the collaborative information markers pre-assigned based on environmental interaction in the current sampling period, the load frequency control agent trained by each microgrid obtains the adjustment commands for its micro gas turbines, fast charging stations, and / or slow charging stations in the current sampling period, so as to realize the joint power regulation of each micro gas turbine, fast charging station, and / or slow charging station in each microgrid; wherein, the load frequency control agent is a set of actions constructed based on a heuristic collaborative mechanism, including micro gas turbine adjustment commands, fast charging station adjustment commands, and slow charging station adjustment commands.
2. The multi-microgrid load frequency control method considering heterogeneous charging station resources as described in claim 1, characterized in that, In step S2, the expression for the multi-microgrid frequency dynamic model is: ;in, For the first i The inertia parameter of a microgrid is a fixed value; For the first i Frequency deviation of each microgrid in the current sampling period; For the first i The power regulation of the micro gas turbine in the current sampling period of the microgrid is the value of the first micro gas turbine power regulation in the current sampling period. i The output power of each micro gas turbine in the current sampling period in the microgrid is obtained by summing the difference between the output power of the corresponding previous sampling period and the output power of the micro gas turbine in the current sampling period. The first sample is formed by the combination of fast charging stations and slow charging stations in the current sampling period. i The vehicle-grid interaction regulation power of a microgrid, and ; For the first i The power regulation of the fast charging station of the microgrid, its value is the power regulation of the first microgrid. i The output power of each fast charging station in the microgrid in the current sampling period is obtained by summing the difference between the output power of the corresponding previous sampling period and the output power of the current sampling period. For the first i The power regulation of the slow charging station of the microgrid, its value is the power regulation of the first... i The output power of each slow charging station in the microgrid in the current sampling period is obtained by summing the difference between the output power of the corresponding previous sampling period and the output power of the current sampling period. For the first i The change in tie-line power of each microgrid during the current sampling period, and ; In order to be with the first i A collection of adjacent microgrids connected to a single microgrid; For the first i The microgrid and the first j The synchronization coefficient of the tie lines between microgrids is a fixed value; when Time indicates the first i A microgrid sends power to the tie line when Time indicates the first i Each microgrid obtains supporting power from the tie line; For the first i The load disturbance of a microgrid in the current sampling period, its value is the load disturbance of the first microgrid. i The difference between the load power in the current sampling period and the load power in the previous sampling period in a microgrid; For the first i The wind power disturbance of a microgrid in the current sampling period, its value is the value of the first microgrid. i The output power of each wind turbine in the microgrid for the current sampling period is obtained by summing the difference between the output power of the corresponding wind turbine in the previous sampling period.
3. The multi-microgrid load frequency control method considering heterogeneous charging station resources as described in claim 2, characterized in that, Step S3 specifically includes: S31. The energy demand constraints in constructing the single-vehicle-level charge / discharge margin model include: in, For the first n The state of charge of an electric vehicle in the current sampling period is collected by the on-board battery management system and changes over time; and The first n The minimum and maximum state of charge allowed for an electric vehicle in the current sampling period, which are obtained from vehicle or battery parameters; For the first n The departure time of an electric vehicle in the current sampling period is determined and updated by charging reservation information, user input, navigation information, or historical travel data; For the first n The expected state of charge of an electric vehicle at the current sampling period is determined and updated by charging reservation information, user input, navigation information or historical travel data; For the first n The minimum safe state of charge threshold for an electric vehicle to reach its next destination in the current sampling period is determined and updated by charging reservation information, user input, navigation information, or historical travel data. For the first n The state of charge consumption required for an electric vehicle to complete its subsequent journey; For the first n The subsequent travel distance of an electric vehicle in the current sampling period is determined and updated by charging reservation information, user input, navigation information, or historical travel data; Energy consumption per unit distance, which is obtained from vehicle or battery parameters; Additional energy consumption due to congestion is calculated or estimated from traffic and meteorological information; The duration of congestion is calculated or estimated from traffic and weather information; Let be the battery capacity of the nth electric vehicle, which is obtained from vehicle or battery parameters; S32. The time requirement constraints in constructing the single-vehicle level charge / discharge margin model include: in, For the first n Arrival time of electric vehicles in the current sampling period; For the first n The total parking time of electric vehicles during the current sampling period; For the first n The current remaining parking time of each electric vehicle in the current sampling period; For the first n The rated charging power allowed by the charging interface connected to an electric vehicle and the vehicle charging system is determined by the smaller of the rated power of the charging pile and the allowed charging power of the vehicle. The time margin factor is preset to correspond to the current sampling period. It is used to characterize the proportion of remaining time that is still applicable to frequency modulation after deducting the time required to complete the expected charging. Its value is between (0, 1]. S33. The feasible region for the charging and discharging modes in the single-vehicle level charging and discharging margin model includes: in, For the first n The feasible charge / discharge domain of a single electric vehicle participating in the forced charging mode during the current sampling period; and The first n The charging and discharging power of the electric vehicle during the current sampling period; For the first n The feasible charge / discharge domain for a single electric vehicle participating in the flexible charging mode during the current sampling period; For the first n The actual off-site state of charge of the electric vehicle during the current sampling period; For the first n The feasible charging and discharging domain of a single electric vehicle participating in the two-way interactive mode during the current sampling period; S34. The Minkowski summation is used to construct the charging station-level vehicle-to-grid interaction boundary, including the station-level feasible charging and discharging domain connected to the same fast charging station or slow charging station, and the charging station boundary parameter set extracted based on the station-level feasible charging and discharging domain. The expression for the station-level feasible charging and discharging domain is as follows: The set of boundary parameters for the charging station is as follows: in, For the first j The station-level feasible charging and discharging domain of each charging station in the current sampling period; For the first j The set of electric vehicles connected to a charging station during the current sampling period; For the first j The maximum charging power of each charging station in the current sampling period; For the first j The maximum discharge power of each charging station in the current sampling period; For the first j The lower limit of the equivalent energy of each charging station in the current sampling period; For the first j The upper limit of the equivalent energy of a charging station in the current sampling period; S35. Based on the set of electric vehicles connected to each fast charging station and / or each slow charging station of each microgrid in the current sampling period and the charging mode assigned to each connected electric vehicle, and further combined with the arrival time, departure time, parking duration, subsequent travel distance, expected state of charge at departure and minimum safe state of charge threshold of each connected electric vehicle obtained by each fast charging station and / or each slow charging station in the current sampling period, the station-level vehicle-grid interaction boundary of each fast charging station or each slow charging station connected to electric vehicles in each microgrid in the current sampling period is obtained by performing Minkowski summation calculation through the single-vehicle level charge and discharge margin model.
4. The multi-microgrid load frequency control method considering heterogeneous charging station resources as described in claim 3, characterized in that, Step S4 specifically includes: S41. Construct the state vector and action vector of the load frequency control agent as follows: in, For the first i The state vector of the load frequency control agent of a microgrid in the current sampling period; For the first i The set of frequency deviations between adjacent microgrids of a microgrid in the current sampling period. For the first i A set of adjacent microgrids of a microgrid; and The first i The maximum charging power and maximum discharging power of fast charging stations in a microgrid during the current sampling period; and The first i The maximum charging power and maximum discharging power of a slow charging station in a microgrid during the current sampling period; For the first i The collaborative information tagging of individual microgrids, and ; For the first i The action vector of the load frequency control agent of a microgrid in the current sampling period; For the first i Power regulation commands for micro gas turbines in a microgrid; For the first i Power regulation commands for fast charging stations in a microgrid; For the first i Power regulation commands for slow charging stations in a microgrid; This is an environment encoding function used to map local operating status and available adjustment capabilities to shared information tags; S42. The reward function for constructing the load frequency control agent includes: in, For the first i The instantaneous reward of the load frequency control agent of a microgrid during the current sampling period; and These are incentive factors and penalty factors, both of which are preset fixed values; This is the preset frequency difference penalty coefficient; This is a penalty function based on the division of frequency deviation intervals; This is a penalty function for exceeding the limit; For the first q One frequency difference interval; For the first q The penalty weight for each frequency range interval is a fixed value; The allowable frequency difference limit threshold is a preset fixed value; This represents the total simulation duration; This represents the sampling duration for the current sampling period. For the first i The cumulative reward of the load frequency control agent of a microgrid in the current sampling period; S43. Deep Q-learning is used to update the action value of the load frequency control agent, specifically as follows: S431. Initialize training parameters; among which, initialize the action value network parameters of the load frequency control agent for each microgrid. Target network parameters Experience playback cache, shared environment information carrier, and system simulation clock; simultaneously, the sampling period is set. Training round length Discount Factor and reward function parameters; S432. Calculate the current state; where, in each sampling period... It collects local frequency deviation, frequency difference information of adjacent microgrids, tie-line power changes, current charging and discharging boundaries of fast charging stations and slow charging stations, and cooperative information marking. Thus constructing the state vector ; S433. Select the optimal action; wherein, each microgrid's load frequency control agent selects the action with the highest value from its respective action set based on its current state; i The optimal action of the load frequency control agent of a microgrid satisfies: ; For the first i A set of actions of a load frequency control agent in a microgrid; For the first i The action value function of a load frequency control agent in a microgrid; S434, Execute control and obtain feedback; wherein, the selected action This translates into actual control commands for the micro gas turbine, fast charging station, and slow charging station. After the actions are executed, new frequency deviations, tie-line power changes, charging station boundary states, and immediate rewards are obtained. Further synchronize and update collaborative information tags ; S435. Construct the target value and update the action value network; wherein, during the training process, the first... i The target value of the load frequency control agent of a microgrid is defined as follows: The corresponding loss function is And by minimizing the loss function Update Action Value Network Parameters And periodically change the action value network parameters Synchronize to target network parameters ; For the next state, For the target network, Discount factor; S436. Repeat training until convergence to obtain a trained load frequency control agent; wherein, S432 to S435 are repeated until the preset convergence conditions are met; the convergence conditions include the cumulative reward tending to stabilize, the frequency deviation remaining within the allowable range for a long time, and the training rounds reaching the set upper limit. S44. Based on the frequency deviation of each microgrid in the current sampling period, and combined with the station-level vehicle-to-grid interaction boundary of each microgrid connected to electric vehicles in the current sampling period, as well as the collaborative information markers pre-assigned based on environmental interaction in the current sampling period, the load frequency control agent trained by each microgrid obtains the adjustment instructions of each microgrid to its micro gas turbines, fast charging stations and / or slow charging stations in the current sampling period, so as to realize that each micro gas turbine, fast charging station and / or slow charging station in each microgrid can jointly perform power regulation.
5. The multi-microgrid load frequency control method considering heterogeneous charging station resources as described in claim 3, characterized in that, Between step S3 and step S4, the method further includes the following step: If the weather during the current sampling period is determined to be extreme weather, the station-level vehicle-to-grid interaction boundary of each fast charging station or slow charging station connected to electric vehicles during the current sampling period will be corrected.
6. The multi-microgrid load frequency control method considering heterogeneous charging station resources as described in claim 5, characterized in that, The specific steps for correcting the station-level vehicle-to-grid interaction boundaries of each fast-charging station or slow-charging station connected to electric vehicles in the current sampling period include: First, under extreme weather conditions, the arrival time, departure time, expected departure state of charge, and safe state of charge thresholds are corrected as follows: in, For the first time under extreme weather conditions n Arrival time of the electric vehicle after correction for the current sampling period; For the first time under extreme weather conditions n The departure time of each electric vehicle after correction for the current sampling period; For the first time under extreme weather conditions n The expected off-site state of charge of the electric vehicle after correction for the current sampling period; For the first time under extreme weather conditions n The safe state of charge threshold for electric vehicles after correction in the current sampling period; , , and These are the correction amounts for arrival time, departure time, expected departure state of charge, and safe state of charge threshold under extreme weather conditions, respectively, and are all preset fixed coefficients; Secondly, based on the corrected arrival time, departure time, expected state of charge at departure, and safe state of charge threshold under extreme weather conditions, the remaining parking time, minimum required charging time, and time margin factor for vehicles under extreme weather conditions are updated as follows: in, For the first time under extreme weather conditions n The remaining parking time of each electric vehicle after the current sampling period update; For the first time under extreme weather conditions n The minimum charging time required for a vehicle after the current sampling period update; For the first time under extreme weather conditions n The time margin factor of each electric vehicle updated in the current sampling period; Finally, based on the corrected arrival time, departure time, expected state of charge at departure, and safe state of charge threshold under extreme weather conditions, and combined with the updated remaining parking time, minimum required charging time, and time margin factor under extreme weather conditions, the charging and discharging modes in the single-vehicle level charging and discharging margin model are updated. The Minkowski summation is then performed using the updated charging and discharging modes to obtain the station-level vehicle-to-grid interaction boundary of each microgrid connected to electric vehicles in the current sampling period under extreme weather conditions.
7. A frequency control system for multi-microgrid loads considering heterogeneous charging station resources, characterized in that, include: The operation data acquisition unit is used to periodically collect relevant operation data of each microgrid in multiple interconnected microgrids. The relevant operation data of each microgrid includes the frequency and load power of each microgrid, as well as the output power of each micro gas turbine, the output power of each wind turbine, the charging and discharging power of each electric vehicle charging station, and the exchange power of each interconnection line connected to adjacent microgrids. Each microgrid's electric vehicle charging stations are divided into multiple fast charging stations and / or multiple slow charging stations. The frequency deviation calculation unit is used to calculate the frequency deviation of each microgrid in the current sampling period based on the relevant operating data of each microgrid in the current sampling period and the previous sampling period, through a preset multi-microgrid frequency dynamic model. The station-level vehicle-to-grid interaction boundary calculation unit is used to determine the set of electric vehicles connected to each fast charging station and / or each slow charging station of each microgrid in the current sampling period, as well as the charging mode assigned to each connected electric vehicle. Furthermore, it combines the arrival time, departure time, parking duration, subsequent travel distance, expected state of charge at departure, and minimum safe state of charge threshold of each connected electric vehicle obtained from each fast charging station and / or each slow charging station in the current sampling period. Through a pre-calculated single-vehicle-level charge / discharge margin model composed of energy demand constraints, time demand constraints, and the feasible domain of charge / discharge modes, the station-level vehicle-to-grid interaction boundary of each fast charging station or slow charging station connected to electric vehicles in the current sampling period is obtained. The station-level vehicle-to-grid interaction boundary includes the maximum charging power, maximum discharging power, lower equivalent energy limit, and upper equivalent energy limit; the charging modes include forced charging mode, flexible charging mode, and bidirectional interaction mode. The power command generation and adjustment unit is used to obtain the adjustment commands for each microgrid to its micro gas turbines, fast charging stations, and / or slow charging stations in the current sampling period based on the frequency deviation of each microgrid in the current sampling period, combined with the station-level vehicle-to-grid interaction boundaries of each microgrid connected to electric vehicles in the current sampling period, and the cooperative information tags pre-assigned based on environmental interaction in the current sampling period, through the pre-trained load frequency control agent of each microgrid. This enables the micro gas turbines, fast charging stations, and / or slow charging stations in each microgrid to jointly perform power regulation. The load frequency control agent is a set of actions constructed based on a heuristic cooperative mechanism, which includes micro gas turbine adjustment commands, fast charging station adjustment commands, and slow charging station adjustment commands.
8. The multi-microgrid load frequency control system considering heterogeneous charging station resources as described in claim 7, characterized in that, The expression for the frequency dynamic model of multiple microgrids is as follows: ;in, For the first i The inertia parameter of a microgrid is a fixed value; For the first i Frequency deviation of each microgrid in the current sampling period; For the first i The power regulation of the micro gas turbine in the current sampling period of the microgrid is the value of the first micro gas turbine power regulation in the current sampling period. i The output power of each micro gas turbine in the current sampling period in the microgrid is obtained by summing the difference between the output power of the corresponding previous sampling period and the output power of the micro gas turbine in the current sampling period. The first sample is formed by the combination of fast charging stations and slow charging stations in the current sampling period. i The vehicle-grid interaction regulation power of a microgrid, and ; For the first i The power regulation of the fast charging station of the microgrid, its value is the power regulation of the first microgrid. i The output power of each fast charging station in the microgrid in the current sampling period is obtained by summing the difference between the output power of the corresponding previous sampling period and the output power of the current sampling period. For the first i The power regulation of the slow charging station of the microgrid, its value is the power regulation of the first... i The output power of each slow charging station in the microgrid in the current sampling period is obtained by summing the difference between the output power of the corresponding previous sampling period and the output power of the current sampling period. For the first i The change in tie-line power of each microgrid during the current sampling period, and ; In order to be with the first i A collection of adjacent microgrids connected to a single microgrid; For the first i The microgrid and the first j The synchronization coefficient of the tie lines between microgrids is a fixed value; when Time indicates the first i A microgrid sends power to the tie line when Time indicates the first i Each microgrid obtains supporting power from the tie line; For the first i The load disturbance of a microgrid in the current sampling period, its value is the load disturbance of the first microgrid. i The difference between the load power in the current sampling period and the load power in the previous sampling period in a microgrid; For the first i The wind power disturbance of a microgrid in the current sampling period, its value is the value of the first microgrid. i The output power of each wind turbine in the microgrid for the current sampling period is obtained by summing the difference between the output power of the corresponding wind turbine in the previous sampling period.
