Control method and device of micro-grid control system
By obtaining historical data of photovoltaic and energy storage systems, generating feature vectors, and controlling the start and stop of diesel generators, the problem of long startup time of diesel generators and fluctuations in photovoltaic system output in the photovoltaic and diesel microgrid is solved, and maximum demand control is achieved. , improving energy utilization and system stability.
Patent Information
- Application Number
- CN202410690931.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-05-30
- Publication Date
- 2024-09-24
AI Technical Summary
The diesel generator in the photovoltaic-storage microgrid takes a long time to start and the photovoltaic system output fluctuates greatly, making it difficult to achieve matching operation and control the maximum demand. The existing technology cannot effectively solve these problems through a unified system structure.
By obtaining historical data of the photovoltaic system and energy storage system, generating feature vectors, determining the current adjustment demand and maximum demand limit value of the microgrid control system, obtaining the optimal solution for system scheduling based on the feature vector, and performing filtering and jitter detection. Control the start and stop of diesel generators to match the operation of photovoltaic and energy storage systems to achieve maximum demand control.
It optimizes system scheduling, improves energy utilization, reduces fuel and maintenance costs, reduces system fluctuations and instability, reduces carbon emissions, improves response capabilities to changes in the external environment, and ensures the stable operation of the microgrid.
Smart Images

Figure CN118693918A
Abstract
Description
Technical Field
[0001] The present disclosure relates to the technical field of microgrid control systems, and in particular to a control method and device for a microgrid control system. Background Art
[0002] A power microgrid refers to a network that is built locally or within a small area and can be connected to or not connected to an external power grid. In a microgrid, there are usually multiple loads that are interconnected through power lines of a certain structure. Some microgrids have several power sources: a diesel generator, a photovoltaic panel, a wind turbine, etc. Some microgrids also have energy storage devices, usually flywheel energy storage or electrochemical energy storage systems.
[0003] Microgrids require that the four elements of load, power supply, energy storage and power grid in the grid have similar stability maintenance means as large grids, and be dispatched and controlled in the grid. At the same time, they should be able to predict the operation status of the network and ensure the stable and safe operation of the microgrid through reasonable prediction and response means.
[0004] One of the most typical microgrid structures is the photovoltaic-storage-diesel microgrid. In this microgrid, the power source is a group of photovoltaic systems plus a group of diesel generator systems, the energy storage is a group of electrochemical energy storage systems, and the load is the aggregated load of multiple users. The core problem of the photovoltaic-storage-diesel microgrid is that the diesel generator cannot start up and reach full power instantly, and the photovoltaic system has a large volatility. By predicting the photovoltaic output, the charging and discharging power of the energy storage system is adjusted accordingly to match the operation of photovoltaic and diesel generators. For example, when it is predicted that the photovoltaic output will decrease, the power is first supplemented by discharging the energy storage, and the diesel generator is controlled to start and run at the same time.
[0005] Another issue in the PV-storage-diesel microgrid is the control of maximum demand. Controlling maximum demand has two benefits. On the one hand, for grid users who are charged a two-part electricity fee, the demand fee is equal to the maximum demand multiplied by the demand unit price. Reducing the maximum demand can reduce the demand fee; on the other hand, reducing the maximum demand helps reduce the sudden increase in the system load rate, which is beneficial to the equipment safety and life of the microgrid system itself.
[0006] How to realize the three functions of deciding generator start and stop, coordinating energy storage charging and discharging power to coordinate with PV-diesel generator operation, and controlling maximum demand in a PV-storage-diesel microgrid through a unified system structure rather than controlling a single energy storage system is a problem that needs to be solved at present. Summary of the invention
[0007] The present disclosure aims to solve one of the technical problems in the related art at least to some extent.
[0008] The first embodiment of the present disclosure provides a control method for a microgrid control system, including:
[0009] Acquire historical collected data of the photovoltaic system and the energy storage system, and generate a first feature vector according to the historical collected data;
[0010] Determine the current adjustment demand and maximum demand limit value of the microgrid control system;
[0011] Acquire the optimal solution for system scheduling based on the first characteristic vector, or acquire the optimal solution for system scheduling based on the first characteristic vector, the current adjusted demand and the maximum demand limit value;
[0012] Filtering and jitter detection are performed on the optimal solution for system scheduling to obtain target diesel generator set operating power and target energy storage system operating power;
[0013] A photovoltaic power sag alarm signal is received, and based on the photovoltaic power sag alarm signal and the target diesel generator set operating power, the diesel generator is controlled to start and stop.
[0014] The second aspect of the present disclosure provides a control device for a microgrid control system, including:
[0015] A generating module, used to obtain historical collected data of the photovoltaic system and the energy storage system, and generate a first feature vector according to the historical collected data;
[0016] A determination module, used to determine the current adjustment demand and the maximum demand limit value of the microgrid control system;
[0017] An acquisition module, configured to acquire an optimal solution for system scheduling based on the first characteristic vector, or to acquire an optimal solution for system scheduling based on the first characteristic vector, the current adjusted demand, and a maximum demand limit value;
[0018] A detection module, used for filtering and jitter detection of the optimal solution for system scheduling to obtain a target diesel generator set operating power and a target energy storage system operating power;
[0019] The control module is used to receive the photovoltaic power sag alarm signal, and control the start and stop of the diesel generator based on the photovoltaic power sag alarm signal and the operating power of the target diesel generator set.
[0020] The third aspect of the present disclosure proposes an electronic device, including: a memory, a processor, and a computer program stored in the memory and executable on the processor. When the processor executes the program, the control method of the microgrid control system proposed in the first aspect of the present disclosure is implemented.
[0021] The fourth aspect of the present disclosure provides a non-temporary computer-readable storage medium storing a computer program, which, when executed by a processor, implements the control method of the microgrid control system provided in the first aspect of the present disclosure.
[0022] The control method, device and electronic equipment of the microgrid control system provided by the present disclosure have the following beneficial effects:
[0023] In the disclosed embodiment, the historical data of the photovoltaic system and the energy storage system are first acquired, and the first characteristic vector is generated according to the historical data, and then the current adjustment demand and the maximum demand limit value of the microgrid control system are determined, and then the optimal solution of the system scheduling can be obtained based on the first characteristic vector, or the optimal solution of the system scheduling can be obtained based on the first characteristic vector, the current adjustment demand and the maximum demand limit value, and then the optimal solution of the system scheduling is filtered and jitter detected to obtain the target diesel generator set operating power and the target energy storage system operating power, and finally the photovoltaic power drop alarm signal is received, and the diesel generator is controlled to start and stop based on the photovoltaic power drop alarm signal and the target diesel generator set operating power. Thus, through the collection and feature extraction of historical data, the system can better understand the performance and characteristics of the photovoltaic system and the energy storage system, thereby optimizing the system scheduling and maximizing the energy utilization rate. By determining the current adjustment demand and the maximum demand limit value, the system can effectively control the operation of the diesel generator set, avoid unnecessary start and stop, and thus reduce fuel costs and maintenance costs. Through filtering and jitter detection and other technologies, the fluctuation and instability in the system scheduling process can be reduced, the stability and reliability of the system can be improved, and the risk of power grid failure can be reduced. By properly controlling the start and stop of diesel generator sets, carbon emissions can be reduced, environmental pollution can be reduced, and the requirements of sustainable development can be met. Receiving the photovoltaic power drop alarm signal and adjusting the operation of the diesel generator set in time can improve the system's ability to respond to changes in the external environment and ensure the stable operation of the microgrid.
[0024] Additional aspects and advantages of the present disclosure will be given in part in the following description and in part will be obvious from the following description or learned through practice of the present disclosure. BRIEF DESCRIPTION OF THE DRAWINGS
[0025] The above and / or additional aspects and advantages of the present disclosure will become apparent and easily understood from the following description of the embodiments in conjunction with the accompanying drawings, in which:
[0026] Figure 1 A flow chart of a control method of a microgrid control system provided by an embodiment of the present disclosure;
[0027] Figure 2 A module application flow chart of a control method for a microgrid control system provided by an embodiment of the present disclosure;
[0028] Figure 3 A flowchart of another control method of a microgrid control system provided by an embodiment of the present disclosure;
[0029] Figure 4 A structural block diagram of a control device of a microgrid control system provided by an embodiment of the present disclosure;
[0030] Figure 5 A block diagram of an exemplary computer device suitable for implementing embodiments of the present disclosure is shown. DETAILED DESCRIPTION
[0031] Embodiments of the present disclosure are described in detail below, examples of which are shown in the accompanying drawings, wherein the same or similar reference numerals throughout represent the same or similar elements or elements having the same or similar functions. The embodiments described below with reference to the accompanying drawings are exemplary and are intended to be used to explain the present disclosure, and should not be construed as limiting the present disclosure.
[0032] The following describes the control method, apparatus, computer equipment and storage medium of the microgrid control system according to the embodiments of the present disclosure with reference to the accompanying drawings.
[0033] A power microgrid is a power network that is built locally and in a small area and can be connected to an external power grid or operate independently. It is usually composed of multiple loads and power sources connected to each other through power lines. The power source can be a diesel generator, photovoltaic panel, wind turbine, etc., while the energy storage device is usually an electrochemical energy storage system or other forms of energy storage system.
[0034] In order to maintain stability and achieve effective dispatch and control in a microgrid, it is necessary to have stability maintenance means similar to those of a large power grid, and to be able to predict and respond to the operating status of the network. The photovoltaic-storage-diesel microgrid is a typical microgrid structure, consisting of a photovoltaic system, a diesel generator system, an electrochemical energy storage system, and the loads of multiple users. The core problem lies in the matching operation of the large fluctuations in photovoltaic output and the long start-up time of the diesel generator, which needs to be achieved by predicting the photovoltaic output and adjusting the energy storage system.
[0035] In addition, the photovoltaic, energy storage and diesel microgrid also faces the problem of controlling the maximum demand. Controlling the maximum demand can reduce the user's demand electricity charges, and help reduce sudden increases in the system load rate, improving the safety and life of the system. In the disclosed embodiment, a method is proposed to make decisions on the start and stop of generators, coordinate the charging and discharging power of energy storage to cooperate with the operation of photovoltaic diesel generators, and control the maximum demand in the photovoltaic, energy storage and diesel microgrid, and to achieve these three functions through a unified system structure. Compared with the traditional energy management system (EMS), this method focuses more on realizing the top-level control of the microgrid offline, rather than controlling the energy storage system alone.
[0036] In the control method of the microgrid control system proposed in the embodiment of the present disclosure, data is read from the photovoltaic system and the diesel generator system to control the charging and discharging power of the energy storage system and the start and stop of the diesel generator system, which does not conflict with the EMS (energy management system) usually installed in the microgrid. Among them, the photovoltaic system is one or more groups of photovoltaic inverters and connected photovoltaic strings. The energy storage system is a complete system composed of one or more groups of energy storage subsystems that can be controlled by a single entrance and remotely adjust the charging and discharging power. The diesel generator system is a system composed of one or more groups of diesel generators with a communication interface that can be remotely controlled to start and stop.
[0037] It should be noted that the executor of the control method of the microgrid control system in the embodiment of the present disclosure is the control device of the microgrid control system, which can be implemented by software and / or hardware, and can be configured in any electronic device.
[0038] Figure 1 This is a flow chart of a control method for a microgrid control system provided in the first embodiment of the present disclosure.
[0039] like Figure 1 As shown, the control method of the microgrid control system may include the following steps:
[0040] Step 101 : Acquire historical collected data of a photovoltaic system and an energy storage system, and generate a first feature vector according to the historical collected data.
[0041] Optionally, you can first obtain the temperature, humidity, solar illumination and longitude and latitude collected at each time point in the first historical period, read the current power, short-term power forecast and long-term power forecast of the photovoltaic system at each time point in the second historical period, and read the set charging and discharging power corresponding to the energy storage system at each time point in the third historical period.
[0042] Optionally, the current temperature, humidity, solar illumination, longitude and latitude, and precise timestamp can be obtained based on the meteorological sensor and time acquisition module, and a cache of historical data can be provided, wherein the working cycle can be to read data every 5 minutes.
[0043] Specifically, an appropriate history cache depth may be set to meet system requirements.
[0044] For example, the module can monitor environmental conditions such as temperature, humidity, solar illumination, etc. in real time, and obtain accurate timestamp and location information. This data can be used to optimize the operation strategy of the energy system, such as adjusting the output power of the photovoltaic system according to the solar illumination.
[0045] Optionally, based on protocol communication and historical storage module, the current power, short-term power forecast and long-term power forecast of the photovoltaic system can be read, and a cache of historical data can be provided. The working cycle can be to read data once every minute.
[0046] Among them, the historical cache depth: the typical value is 1440, which means storing data for the past day.
[0047] Specifically, the module can monitor the real-time power output of the photovoltaic system and provide short-term and long-term power forecasts to help system operators better arrange energy use and storage plans.
[0048] Optionally, based on the protocol communication and history storage module, the current charging and discharging power set for the energy storage system can be read and a cache of historical data can be provided, wherein the working cycle can be to read data once every 10 seconds.
[0049] The typical value of the historical cache depth is 360, which means that the data of the past hour is stored.
[0050] Specifically, the module can monitor the charging and discharging power of the energy storage system in real time, help manage the operating status of the energy storage system, and optimize energy utilization and storage. Specifically, the collaborative work of these modules can achieve comprehensive monitoring and management of the energy system, thereby improving energy utilization efficiency, reducing costs, and ensuring the stable operation of the system.
[0051] Specifically, when obtaining data for the first historical period, temperature, humidity, solar illumination, and longitude and latitude data can be obtained from the meteorological sensor and time acquisition module, that is, data can be retrieved from historical storage based on the start and end time points of the first historical period, as well as each time node in the first historical period.
[0052] Specifically, when acquiring data of the second historical period, current power, short-term power forecast and long-term power forecast data may be acquired from the protocol communication and historical storage module of the photovoltaic system.
[0053] Similarly, the set charging and discharging power data can be obtained from the protocol communication and history storage module of the energy storage system.
[0054] Optionally, each data in the historical collected data can first be time-scrambled to obtain multiple groups of time-scrambled data corresponding to the historical collected data, and then principal component analysis can be performed on the received multiple groups of time-scrambled data to obtain multiple principal value vectors corresponding to each group of time-scrambled data, and then coordinate transformation can be performed in the principal component coordinate system according to the multiple principal value vectors corresponding to each group of time-scrambled data to obtain multiple initial eigenvectors, and finally the initial eigenvectors are arranged to obtain a scrambled time series vector.
[0055] The historically collected data may be data collected in a historical period.
[0056] It should be noted that the scrambling module can be stored based on the time series, and receive input data with historical cache. These data may be time series data from sensors, devices or other sources, usually containing timestamps and corresponding values. The input data here is also the historical collection data, that is, the temperature, humidity, solar illumination and longitude and latitude collected at each time point in the first historical period. The current power, short-term power forecast and long-term power forecast of the photovoltaic system are read at each time point in the second historical period. The set charging and discharging power corresponding to the energy storage system is read at each time point in the third historical period. Furthermore, timestamp scrambling can be performed:
[0057] Specifically, the module processes the input data, that is, it can process the input timestamp and superimpose it on the data, that is, deform the input timestamp or add random noise. The purpose of this is to separate the time attribute of the data from the specific timestamp and integrate it into the data itself. The data after this operation carries the time information and sequence information, thereby protecting the privacy and security of the data and facilitating the subsequent steps of finding the feature vector.
[0058] Taking humidity as an example, the humidity measured at t1, t2 and t3 is 23 (23%), and the timestamps corresponding to t1, t2 and t3 are 201, 202, 20, respectively. Then, by superimposing the timestamp disturbance, it can be changed to 23.0201, 23.0202, 23.0203, so that the value itself can contain the information of the processed timestamp. Among them, this example is only an illustrative description and is not intended to limit the embodiments of the present disclosure.
[0059] It is understandable that by scrambling the timestamp and storing it in the data, the reliance on the timestamp can be eliminated in subsequent data processing and analysis. This can simplify the data processing process, reduce the need to reference timestamps when operating on time series, reduce computational complexity and improve efficiency. Since sensor data may remain unchanged for a long time during the acquisition interval, directly using the raw data may result in a large number of equal values, affecting the results of subsequent calculations and analysis. By superimposing timestamps, the data can be changed in time, avoiding the formation of a large number of equal values, and increasing the diversity and information content of the data.
[0060] Taking the meteorological sensor and time acquisition module as an example, the corresponding historical data collection can be multiple groups of humidity, temperature, solar illumination, and time data, that is, the temperature, humidity, solar illumination, and longitude and latitude data obtained from the meteorological sensor and time acquisition module in the first historical period. The number of groups is equal to the historical data cache depth of the meteorological sensor and time acquisition module. Each data (such as humidity) in each group is recorded as u sig , the collection timestamp of this group is t sig Given scramble the timestamp to u sig The method in .
[0061] The normal operation of the module requires a preset fluctuation parameter v s , with a typical value of 0.1.
[0062] First calculate the signal fluctuation range:
[0063] After that, the scrambled absolute value d sig The calculation is as follows:
[0064]
[0065] Where u sig (N) represents the latest set of data in the meteorological sensor and time acquisition module. N represents the historical cache depth corresponding to the input, that is, the number of time nodes in each historical period.
[0066] It should be noted that the input timestamp needs to be processed once, because the original input timestamp is likely to be a UNIX system timestamp, which is a non-cyclic number. In some cases, the purpose of processing is to obtain a new timestamp that meets three conditions. First, it needs to be a number that circulates within a certain time period, such as a year, a month, or a week; second, the time accuracy is adjusted according to the application, such as from seconds to minutes; third, the new timestamp after processing within the cycle period needs to maintain the numerical size relationship of the original timestamp. For example, when there are two UNIX timestamps, when the first timestamp is smaller than the second timestamp in value, the processed timestamp should also meet this size relationship.
[0067] The following is an example of a method to obtain a new timestamp that recurs yearly, with a time precision of minutes, and to maintain the numerical relationship of the timestamp. You can first parse the local time format into the form of YYYY-MM-DD-W-HH-mm-SS, then extract the month, day, day of the week, hour, and minute parts from the parsed local time format, then add the month and date, and convert the result into a string, then append the day of the week, hour, and minute to the string obtained in the previous step, and finally get a new timestamp that recurs yearly.
[0068] More specifically, the timestamp can be converted. The timestamp is a concept derived from the UNIX system, which uses a common time origin as a reference and uses seconds or microseconds as units to express the distance between the current time point and the time origin.
[0069] Here, the timestamp is first parsed into the local time format, YYYY-MM-DD-W-HH-mm-SS, such as 2020-01-01-3-12-30-59, which means Wednesday, January 1, 2020, 12:30:59. The month, day, day of the week, hour, and minute in the local time format are taken as the new timestamp. When splicing, the month and day are added, and the other parts are appended in sequence. For example, in the above example, it is 0231230. Other splicing methods can also be selected here.
[0070] Afterwards, this new timestamp can be recorded as t′ sig The scrambled data u′ sig The calculation method is:
[0071]
[0072] Where, d tsig Represents t′ sig The maximum number of decimal digits. For example, in the example above, the number of digits is 7.
[0073] Alternatively, other methods for obtaining the timestamp may be used, which will not be described in detail here.
[0074] Specifically, after obtaining the scrambled time series data, each set of data contains multiple features collected by the module, such as humidity, temperature, solar illumination, longitude, latitude and timestamp. These data are usually transmitted in the form of N sets of data, where N is a fixed number, which may be related to the historical cache depth. For each set of data, PCA (principal component analysis) can be performed to extract the main features. PCA can help reduce the dimension of the data and find the main direction that best represents the data change. Since module 6 collects 6 features, the number of principal components after PCA analysis is at most 6.
[0075] Furthermore, after performing PCA analysis on each set of data, the principal component vectors are obtained. Next, the original data is mapped to these principal component vectors to obtain the coordinates of the data in the new coordinate system. Finally, the coordinates of each set of data in the new coordinate system can be saved to form a one-dimensional feature vector. These feature vectors represent the projection of the original time series data in the direction of the principal component. Finally, the generated feature vectors can be spliced with the original scrambled time series vectors. The splicing method is to put the feature vectors of the newly obtained data after principal component analysis in the front, and then put the feature vectors of the older data in the back, and finally put the scrambled time series data. This can maintain the order of the data, ensuring that the latest data is in the front and the oldest data is in the back. Through this process, the original scrambled time series data can be converted into feature vector coefficients and a one-dimensional long vector, while retaining the order information of the data.
[0076] Step 102, determining the current adjustment demand and the maximum demand limit value of the microgrid control system.
[0077] Specifically, the total power collected at each time point in the fourth historical period can be first obtained from the gateway billing meter, and the target maximum demand that has actually occurred can be determined. Then, the first quantity of each time point corresponding to the fourth historical period can be determined. After that, the adjusted total power can be determined based on the total power corresponding to each time point and the first quantity. Then, the current adjusted demand of the microgrid control system can be determined based on the target maximum demand, preset comparison parameters and the adjusted total power. Finally, the maximum demand limit value of the microgrid control system can be determined based on the target maximum demand, comparison parameters and the system maximum allowable demand of the microgrid control system.
[0078] The fourth historical period may be a time period for obtaining the total power from the total port billing meter. For example, the fourth historical period may be the past 10 days, wherein each time node may be 1 minute.
[0079] The first quantity may be the number of time nodes in the fourth historical period. For example, the fourth historical period may be the past 10 days. Each time node is 1 minute. There are 14,400 sets of data in 10 days. Therefore, the first quantity is 14,400.
[0080] Optionally, based on protocol communication and historical storage modules, the maximum demand of the month and the current active power, reactive power, and total power can be obtained from the gateway meter, and the cache of historical data can be provided. The working cycle is to read data once every minute. Historical cache depth: The typical value is 14400, which means that the historical data of the past 10 days is saved.
[0081] Example: This module can monitor electricity usage in real time, including the current active power, reactive power, total power and other information of the meter, and record historical data for analysis and comparison. For example, it can be used to evaluate the peak and valley conditions of electricity usage and formulate more effective electricity usage strategies.
[0082] Among them, the gateway meter refers to the meter connected to the boundary line between the large power grid and the microgrid, which is used to bill users. This meter usually has the functions of two-part electricity fee and time-of-use metering. This meter can count both the amount of electricity and the time when the maximum demand occurs in the month. At the same time, this meter also has the function of time-of-use billing.
[0083] After obtaining the power and demand data of the gateway meter including the historical cache, the total power collected at each time point can be obtained. t and maximum demand limit DM max , the above two demands can be calculated by the following implementation method.
[0084] Among them, for the current adjustment demand DM t The calculation requires a preset comparison parameter h t , for example, 0.9. And the maximum allowable demand DM of the system sys In the following formula, P represents the total power and DM represents the maximum demand that actually occurred.
[0085] First, calculate the target adjusted total power P t :
[0086]
[0087] In the formula, P(0) represents the oldest data in the history cache. It should be noted that the difference between N1-1 data items is calculated in the above formula, and a uniform weight is used (the arithmetic mean is calculated). Other means of calculating the average value can also be used, such as assigning different weights. In this case, the above formula can be modified to:
[0088]
[0089] Optional, a possible w i The selection method is w i =i.
[0090] Calculate the adjusted total power P t back:
[0091]
[0092] The maximum allowable demand and the actual demand of the system are calculated according to h tDerating, if the current power is close to the comparison interval, after calculating DM t and DM max After that, the output can be sent to the next stage.
[0093] Step 103: obtaining the optimal solution for system scheduling based on the first eigenvector, or obtaining the optimal solution for system scheduling based on the first eigenvector, the current adjusted demand and the maximum demand limit value.
[0094] Optionally, when obtaining the optimal solution for system scheduling based on the first eigenvector, it is possible to first determine whether the difference between the initial eigenvector and each historical optimal solution eigenvector in the optimal solution eigenvector set is less than a first threshold value, and when calculating the difference, discard the scrambled time series portion in each eigenvector and retain only the portion after principal component analysis. Then, when the difference between the initial eigenvector and any historical optimal solution eigenvector is less than the first threshold value, determine that any historical optimal solution eigenvector is the optimal solution for system scheduling, and then, when the difference between the initial eigenvector and any historical optimal solution eigenvector is greater than or equal to the first threshold value, compare the difference between the scrambled time series portion in the eigenvector and the scrambled time series portion of each historical optimal solution eigenvector, and finally, when the difference between the scrambled time series vector and any historical optimal solution eigenvector is less than the first threshold value, determine that any historical optimal solution eigenvector is the optimal solution for system scheduling.
[0095] The optimal solution feature vector set may include multiple historical optimal solution feature vectors.
[0096] The first threshold may be a difference threshold.
[0097] It can be understood that through this logic, the system can quickly determine the optimal solution for system scheduling based on the current feature vector and scrambled time series vector, combined with the information of the historical optimal solution, thereby improving scheduling efficiency.
[0098] Among them, the first feature vector reflects multiple attributes or parameters of the current or candidate state of the system, and the scrambled time series vector may contain a randomized or perturbed version of the time series data, and the two together constitute the data set to be processed. Whenever the optimal solution selection module updates the optimal solution, the sequence feature vector snapshot module will receive and record the optimal solution and its corresponding feature vector and cost value (which may represent the quality, cost or efficiency of the solution, etc.). In this way, a historical optimal solution library is constructed inside the module, storing all the optimal solutions found in the past and their related data.
[0099] When a new feature vector is received, the snapshot module first compares it with all the stored optimal solution feature vectors in the historical optimal solution library. If the new feature vector is "close enough" to the feature vector of a known optimal solution (judged by a preset similarity threshold or distance metric), the new problem context is considered similar to the historical optimal solution context, and the known optimal solution can be directly reused as the solution to the current problem. If the new feature vector is not close to all the optimal solution feature vectors in the historical library, the snapshot module will further compare it with the scrambled time series vector corresponding to the historical optimal solution. Following the same logic as the feature vector, if the new and old scrambled time series vectors are close, the corresponding historical optimal solution can also be directly used. When a historical optimal solution close to the new input is found, the snapshot module marks it as "special execution", that is, in the subsequent calculation process, as long as it does not violate the constraints set by the system, the solution can be regarded as the optimal solution of the current problem and directly output to the module. This greatly reduces the time required to cyclically search for the cost optimal solution from the selection pool, speeding up the entire search process.
[0100] Optionally, when obtaining the optimal solution for system scheduling based on the first eigenvector, the current adjustment demand and the maximum demand limit value, the given selection range of the energy storage system power and the diesel generator set operating power can be determined first, and then the curve splitting method can be used to obtain multiple power combinations within the given selection range according to the pre-specified mapping curve and the number of options. Then, the cost corresponding to each power combination can be determined based on the current adjustment demand and the maximum demand limit value, the electricity price information, and the specified working cycle information, wherein the cost corresponding to the diesel generator set power is composed of the fuel cost and the generator start and stop cost. Finally, the target power combination with the lowest cost can be determined according to the costs corresponding to each power combination, and the target power combination is used as the optimal solution for system scheduling.
[0101] Specifically, multiple combinations can be pre-set, that is, a given selection range of the energy storage system power and the diesel generator set operating power, that is, a energy storage power selection pool and a diesel generator electrical condition selection pool can be set first, and the possible energy storage system power P can be set. B And diesel generator set operating power P D The selection range is as follows. Figure 2 As shown, when executing the loop of modules 16, 21, and 17, one feasible solution that is optional and has not yet calculated the cost is taken from module 16 each time. Module 16 sets the optional P B and P D The method to select the range is to select the split by curve method.
[0102] Here is P B Let's take an example. First, specify a mapping curve f B , the input variable range of the mapping curve is [P Bmin ,PBmax ], the curve is strictly monotonic in this input interval, and f B (P Bmin )=P Bmin &f B (P Bmax )=P Bmax .
[0103] When splitting by curve, you need to specify a number of options N first C , a typical value is 100 (i.e., choose 100 possible options from minimum to maximum).
[0104] The value of the i-th option is:
[0105] As an example, f B (x) = x
[0106] After getting all the options, get all P by cross multiplication B and P D Combinations such as P B The optional values are 10, 20, and 30, and P D The optional values are 50 and 100, and there are finally 6 combination options, namely (10,50)(20,50)(30,50)(10,100)(20,100)(30,100).
[0107] exist Figure 2 In the module application flow chart shown in the figure, module 16 uses a random selection method to select a combination option and sends it to module 21, and marks the option internally as having been selected and no longer selected. Module 17 is an optimal solution selection module, which records all P B and P D The output of module 17 is the latest updated P B and P D and its cost. Module 17 can be understood as a memory module that updates the output according to the cost, and each output is the P with the lowest cost B and P D Combination and its cost. Module 17 needs to set an automatic reset time T Best , you can choose a duty cycle greater than modules 1, 2, 3, and 4, or you can choose a shorter time.
[0108] Module 21 is a cost calculation module. B and P D Calculate the corresponding cost. The cost calculation method is divided into two steps: the first step is to calculate P based on the fuel cost and start-stop cost. DThe second step is to calculate P based on the charging and discharging cost. B The calculation method of charging and discharging cost is to assume that P B The duration T of the duty cycle of module 17 will be maintained Best , the current electricity price is Et, then P B Corresponding cost C B The calculation method is C B =P B ×T Best ×E t , when P B When the power is less than zero, that is, when it is discharged, the cost is negative, that is, there is a benefit. Module 21 calculates the cost, and module 17 updates the output P according to the cost. B and P D Combinations and their costs.
[0109] Figure 2The flowchart shown shows the interaction between the modules. The diagram contains multiple modules, each with specific functions and roles. These modules collect, store and transmit data through protocol communication and historical storage modules. The following is a brief explanation of each module in the diagram: 1. Gateway metering meter: responsible for measuring and recording the power consumption at the gateway. 2. Photovoltaic system function adjustment module: including photovoltaic system power adjustment module, photovoltaic system power sensor module, photovoltaic system short-term power prediction module and photovoltaic system long-term power prediction module. These modules are responsible for monitoring and adjusting the power output of the photovoltaic system, as well as collecting and storing related data. 3. Energy storage system function sensor module: responsible for collecting and storing power sensor data of the energy storage system. 4. Energy storage system function adjustment module: including energy storage system power adjustment module and energy storage system power sensor module. These modules are responsible for monitoring and adjusting the power output of the energy storage system, as well as collecting and storing related data. 5. Demand forecasting adjustment module: responsible for adjusting power demand based on historical data and real-time demand forecasting. 6. Diesel generator remote start and stop and power adjustment module: responsible for controlling the start and stop and power output of the diesel generator. 7. Protocol communication module: responsible for protocol communication and historical storage. 8. Time series storage scrambling module: responsible for storing and processing time series data. 9. Sequence feature conversion and screening module: responsible for converting time series data into feature quantities and screening. 10. Optimal solution selection module: responsible for selecting the optimal solution. 11. Update signal: responsible for updating the optimal solution. 12. Sequence feature snapshot module: responsible for capturing sequence feature quantities. 13. Heuristic trigger module: responsible for triggering control signals. 14. Configuration parameter module: responsible for setting and adjusting control parameters. 15. Temporary sag warning signal: responsible for issuing temporary sag warning signal. 16. Vibration detection module: responsible for detecting the vibration of diesel generators. 17. Vibration threshold detection: responsible for detecting whether the vibration exceeds the threshold. 18. Diesel generator intervention: responsible for connecting diesel generators to the power system. 19. Jitter detection module: responsible for detecting the jitter of diesel generators. 20. Jitter threshold detection: responsible for detecting whether the jitter exceeds the threshold. 21. Cost calculation module: responsible for calculating costs.
[0110] Specifically, whenever module 17 finds a P with better (lower) cost B and P D When the output of module 17 changes, module 18 starts to adopt calculations. At other times, although module 17 keeps the output unchanged, module 18 does not use it as input.
[0111] Step 104 , filtering and jitter detection are performed on the optimal solution for system scheduling to obtain the target diesel generator set operating power and the target energy storage system operating power.
[0112] Specifically, after determining the optimal solution for system scheduling, the initial diesel generator set operating power and the initial energy storage system operating power can be determined from the optimal solution for system scheduling. The initial diesel generator set operating power and the initial energy storage system operating power are then filtered and jitter detected to obtain the target diesel generator set operating power and the target energy storage system operating power.
[0113] Optionally, filtering may be performed based on a finite impulse response filter, wherein the filter may be set to:
[0114]
[0115] The filter can be used to achieve the optimal solution for system scheduling of smooth input, or other forms of FIR filters can be selected to obtain different dynamic responses, which are not limited here.
[0116] Optionally, based on the jitter detection module, jitter detection can be performed on the initial diesel generator set operating power, and the initial diesel generator set operating power after jitter filtering can be output, which can also be used as the diesel generator set operating power.
[0117] The initial energy storage system operating power may be subjected to jitter detection, or it may not be subjected to jitter detection. That is, the initial energy storage system operating power may be used as the target energy storage system operating power after filtering, or it may be used as the target energy storage system operating power after filtering and jitter detection.
[0118] The jitter detection method is to observe a certain number of input signals to determine whether their changes are greater than a preset threshold. Assume that the number is N. T , the change threshold is h T , the judgment condition of jitter is:
[0119]
[0120] The above formula uses discrete time expression, and N represents the current time window number.
[0121] When jitter occurs, that is, when the accumulated jitter exceeds the threshold, it is considered that jitter occurs, and a forward search is started from time window N until a time window number where no jitter occurs is found, and the operating power of the target diesel generator set of this time window number is used as the output.
[0122] Optionally, after obtaining the target diesel generator set operating power and the target energy storage system operating power, the currently set parameter values can be informed to the external system, that is, the diesel generator operation and the energy storage module can be controlled according to the target diesel generator set operating power and the target energy storage system operating power.
[0123] Step 105, receiving a photovoltaic power sag alarm signal, and controlling the start and stop of the diesel generator based on the photovoltaic power sag alarm signal and the target diesel generator set operating power.
[0124] Specifically, the input signal may be from the short-term and long-term power forecast module of the photovoltaic system, indicating the warning of a temporary drop in photovoltaic power. When the warning signal is 1, it indicates that there is a temporary drop warning; when it is 0, it indicates that there is no temporary drop warning. In order to prevent the system from reacting prematurely, the module only receives alarm signals with a short-term warning report time of less than 30 minutes. When the received warning signal is 1, it means that the photovoltaic output may drop significantly in an instant within the next 30 minutes. Optionally, based on this warning information, the diesel generator intervention judgment module will trigger corresponding measures to ensure that the system can cope with possible power drops and ensure the stability of power supply.
[0125] In general, the module monitors the warning signal of the temporary drop of photovoltaic power to determine whether the diesel generator needs to intervene, so as to ensure the stable operation of the system. Specifically, the module can simultaneously receive the optimal solution of the system scheduling without jitter from module 19, and the optimal solution includes the target diesel generator set power P D and target energy storage system operating power P B , only use P D According to the sag warning signal and the target diesel generator set power setting, it is determined whether to start the diesel generator set. The starting signal of the i-th diesel generator is S Di , 1 means start, 0 means shutdown, the rated power capacity of the i-th diesel generator is P DCi , set the power to P Di Assume that the current time is t, and the operation cycle of module 13 is t0.
[0126] For example, if the start signal DR is 1, that is, That is, all diesel generator sets are instructed to start.
[0127] In the disclosed embodiment, the historical data of the photovoltaic system and the energy storage system are first acquired, and the first characteristic vector is generated according to the historical data, and then the current adjustment demand and the maximum demand limit value of the microgrid control system are determined, and then the optimal solution of the system scheduling can be obtained based on the first characteristic vector, or the optimal solution of the system scheduling can be obtained based on the first characteristic vector, the current adjustment demand and the maximum demand limit value, and then the optimal solution of the system scheduling is filtered and jitter detected to obtain the target diesel generator set operating power and the target energy storage system operating power, and finally the photovoltaic power drop alarm signal is received, and the diesel generator is controlled to start and stop based on the photovoltaic power drop alarm signal and the target diesel generator set operating power. Thus, through the collection and feature extraction of historical data, the system can better understand the performance and characteristics of the photovoltaic system and the energy storage system, thereby optimizing the system scheduling and maximizing the energy utilization rate. By determining the current adjustment demand and the maximum demand limit value, the system can effectively control the operation of the diesel generator set, avoid unnecessary start and stop, and thus reduce fuel costs and maintenance costs. Through filtering and jitter detection and other technologies, the fluctuation and instability in the system scheduling process can be reduced, the stability and reliability of the system can be improved, and the risk of power grid failure can be reduced. By properly controlling the start and stop of diesel generator sets, carbon emissions can be reduced, environmental pollution can be reduced, and the requirements of sustainable development can be met. Receiving the photovoltaic power drop alarm signal and adjusting the operation of the diesel generator set in time can improve the system's ability to respond to changes in the external environment and ensure the stable operation of the microgrid.
[0128] The method proposed in the embodiment of the present disclosure can realize the start and stop decision of the generator, the allocation of energy storage charging and discharging power to cooperate with photovoltaic and diesel generation in the photovoltaic and diesel microgrid environment, and the control of the maximum demand. The method adopts a unified system structure, can be implemented in hardware or software, and has a stable and robust structure, so it naturally has control stability. The difference between the embodiment of the present disclosure and the traditional energy management system (EMS) is that the EMS system mainly focuses on data collection, uploading and sending, while the embodiment of the present disclosure focuses on offline and offline realization of the three functions applicable to the local photovoltaic and diesel microgrid. EMS may refer to the top-level control unit of the energy storage system in some cases, which is significantly different from the present method. The embodiment of the present disclosure can be applied to the top-level control of the entire microgrid, not just limited to the control of a single energy storage system.
[0129] Figure 3 This is a flow chart of a control method for a microgrid control system provided in the second embodiment of the present disclosure.
[0130] like Figure 3 As shown, the control method of the microgrid control system may include the following steps:
[0131] Step 201 : Acquire historical collected data of a photovoltaic system and an energy storage system, and generate a first feature vector according to the historical collected data.
[0132] Step 202, determining the current adjustment demand and the maximum demand limit value of the microgrid control system.
[0133] Step 203: obtaining the optimal solution for system scheduling based on the first eigenvector, or obtaining the optimal solution for system scheduling based on the first eigenvector, the current adjusted demand and the maximum demand limit value.
[0134] Step 204 , filtering and jitter detection are performed on the optimal solution for system scheduling to obtain the target diesel generator set operating power and the target energy storage system operating power.
[0135] It should be noted that the specific implementation of steps 201 - 204 may refer to the above embodiment and will not be described in detail here.
[0136] Step 205 , when the photovoltaic power temporary drop alarm signal indicates a temporary drop warning, control each diesel generator to start up.
[0137] For example, DR represents the PV power drop alarm signal. If the value is 0, it means there is no drop warning, and if it is 1, it means there is a drop warning. Currently, the short-term warning report time of most systems ranges from 10 minutes to several hours. Here, only N P The alarm signal within minutes is used to prevent the system from taking premature action. The typical value is 30, which means that only the temporary drop warning within 30 minutes is received. In particular, the temporary drop warning within 30 minutes means that when the warning signal occurs, it means that the photovoltaic output may drop sharply within 30 minutes.
[0138] Specifically, this module can be used to use the diesel generator protocol communication module to communicate with the diesel generator based on the communication protocol and obtain the current set power point and startup status (Boolean value) of the diesel generator. There may be multiple diesel generators, each of which has a floating point value and a status Boolean value.
[0139] Optionally, if the photovoltaic power temporary drop alarm signal indicates a temporary drop warning, the start signal of the diesel generator is an indication start, and each diesel generator is controlled to start.
[0140] Step 206 , when the photovoltaic power sag alarm signal does not indicate a sag warning, determine the start signal and the rated power capacity and the set power of each diesel generator according to the rated power capacity of each diesel generator.
[0141] In the following, the rated power capacity of the i-th diesel generator is denoted as P DCi , set the power as P Di , the start signal is denoted as SDi .
[0142] The start signal is usually an electrical signal that triggers the diesel generator to start running. This signal can be an automatic start signal from the diesel generator control system or a signal from the operator's manual operation.
[0143] The rated power capacity of a diesel generator refers to the power it can continuously output under standard operating conditions. This parameter needs to be determined based on the system load requirements and backup power requirements. Usually, when designing a system, the peak load and backup capacity requirements of the system are taken into consideration to determine the rated power capacity of the diesel generator.
[0144] The set power refers to the output power level set by the diesel generator after starting. In the case of a temporary drop in PV power, the set power can be adjusted according to system needs to ensure that the system can operate smoothly and meet load requirements. The set power may be adjusted based on the real-time load of the system, the degree of PV power drop, and other operating parameters.
[0145] Step 207, determining the first generator in the running state and the second generator in the shut down state according to the start-up signals of the respective diesel generators.
[0146] The first generator may be a generator in operation, and the second generator may be a generator in shutdown. 1 indicates startup, and 0 indicates shutdown. Di is 1, it means that the i-th generator is the first generator. If S Di If it is 0, it means that the i-th generator is the second generator.
[0147] It should be noted that the number of the first generators in operation may be 0, 1, 2 or more, and the number of the second generators in shutdown may be 0, 1, 2 or more.
[0148] Step 208, determining the sum of the first rated capacities of the first generators, and determining the sum of the second rated capacities of the remaining third generators after shutting down any of the first generators.
[0149] The first rated capacity may be after determining the rated capacity of each first generator. For example, if A, B, and C are first generators, the sum of the rated capacities of A, B, and C may be taken as the sum of the first rated capacities. If the first generator A is shut down, B and C may be taken as the third generator, and the sum of the rated capacities of B and C may be taken as the sum of the second rated capacities.
[0150] Optionally, when the operating power of the target diesel generator set is greater than the sum of the first rated capacities and less than or equal to the sum of the second rated capacities, the generator with the lowest start-stop cost can be determined from each second generator, and the generator with the lowest start-stop cost can be started up to become the first generator. Then, it can be determined whether each diesel generator currently meets the preset conditions. If the preset conditions are met, the states of the first generator and the second generator are maintained. Otherwise, the generator with the lowest start-stop cost can continue to be started from each second generator until each diesel generator meets the preset conditions.
[0151] Specifically, each time you make a choice, if you choose to start the generator, you will choose the unit with the lowest start-stop cost; if you choose to shut down the generator, you will choose the unit with the lowest start-stop cost. The start-stop cost of a diesel generator can be calculated by the labor cost and fuel cost caused by the time it takes to start and stop, or it can be manually specified and modified at any time. For example, when you prefer to start a diesel generator set, you can set its start-stop cost to 0, so that it will be started first, and after starting, its start-stop cost will be modified to a very large value, exceeding other units, and it will be shut down last.
[0152] Optionally, when the operating power of the target diesel generator set is less than or equal to the sum of the first rated capacities and less than or equal to the sum of the second rated capacities, the generator with the lowest start-stop cost is determined from each first generator, and the generator with the lowest start-stop cost is shut down to become the second generator. After that, it can be determined whether each diesel generator currently meets the preset conditions. If the preset conditions are met, the states of the first generator and the second generator are maintained. Otherwise, the generator with the lowest start-stop cost continues to be shut down from each first generator until each diesel generator meets the preset conditions.
[0153] Specifically, the diesel generator start-stop action module receives the start signal sequence S from module 13. Di and the target diesel generator operating power sequence P Di , and execute the startup action and power adjustment action. The startup sequence of the diesel generator is relatively complex, so the function is specially disassembled into a separate module. Assume that each external diesel generator set has an independent load control function, which can adjust the actual load connected to the diesel generator set. When starting and stopping, first adjust the actual load power of the target diesel generator to 0, and then start the generator. After the generator speed gradually reaches the standard from idle speed and the temperature of various lubricating oils is normal, the load power is gradually increased to the target value P Di , the shutdown sequence is the same.
[0154] The third generator is the remaining first generator after one generator is assumed to be shut down. The third generator is different depending on the generator that is assumed to be shut down.
[0155] As another possible implementation method, when the operating power of the target diesel generator set is less than or equal to the sum of the first rated capacities and less than the sum of at least one third rated capacity, the generators belonging to the first generator and not belonging to the third generator that meets the above conditions can be shut down, and the operation can be repeated until the operating power of the target diesel generator set is less than or equal to the sum of the first rated capacity and greater than the sum of all the third rated capacities. When the operating power of the target diesel generator set is greater than the sum of the first rated capacity, a second generator can be selected to start up, and the operation can be repeated until the operating power of the target diesel generator set is less than or equal to the sum of the first rated capacity and greater than the sum of all the third rated capacities, and the states of the first generator and the second generator are maintained.
[0156] The sum of the third rated capacities may be the sum of the rated capacities of the remaining generators after each first generator is determined and one first generator is shut down. For example, if A, B, and C are first generators, the sum of the rated capacities of A, B, and C may be taken as the sum of the first rated capacities. If the first generator A is shut down, the sum of the rated capacities of B and C may be taken as the sum of the third rated capacities; similarly, if the generator B is shut down, the sum of the rated capacities of A and C may be taken as the sum of the third rated capacities. There are multiple sums of the third rated capacities.
[0157] For example, there are four generators A, B, C, and D. Now A, B, and C are turned on and D is turned off. Then the first generator is A, B, and C, and the second generator is D.
[0158] If the first generator A is shut down, B and C are the third generators.
[0159] If the first generator B is shut down, A and C become the third generators.
[0160] If the first generator C is shut down, B and A become the third generators.
[0161] The first rated capacity is the sum of the rated capacities corresponding to A, B, and C respectively.
[0162] There are three third rated capacities, namely the sum of the rated capacities of B and C, the sum of the rated capacities of A and C, and the sum of the rated capacities of A and B.
[0163] Optionally, when the operating power of the target diesel generator set is greater than the sum of the first rated capacities and greater than the sum of the third rated capacities, the generator with the lowest start-stop cost can be determined from each second generator, and the generator with the lowest start-stop cost can be started up to become the first generator. Then, it can be determined whether each diesel generator currently meets the preset conditions. If the preset conditions are met, the states of the first generator and the second generator are maintained. Otherwise, the generator with the lowest start-stop cost can continue to be started from each second generator until each diesel generator meets the preset conditions.
[0164] Specifically, when the operating power of the target diesel generator set is less than or equal to the sum of the first rated capacities and less than or equal to the sum of at least one third rated capacity, the generator with the lowest start-stop cost among the generators belonging to the first generator and not belonging to the third generator will be shut down to become the second generator. After that, it can be determined whether each diesel generator currently meets the preset conditions. If the preset conditions are met, the states of the first generator and the second generator are maintained. Otherwise, the generators with the lowest start-stop cost will continue to be shut down from each first generator until each diesel generator meets the preset conditions.
[0165] Step 209: When the operating power of the target diesel generator set is less than or equal to the sum of the first rated capacities and greater than the sum of the second rated capacities, determine whether each diesel generator meets a preset condition.
[0166] For example, the target diesel generator operating power is recorded as P D If P D If it is less than or equal to the sum of the first rated capacities and greater than the sum of the second rated capacities, it means that each diesel generator meets the preset conditions.
[0167] Step 210, maintaining the states of the first generator and the second generator.
[0168] Specifically, it means that the computer that has been turned on will continue to be turned on, and the computer that has been turned off will remain turned off.
[0169] In the disclosed embodiment, the historical collected data of the photovoltaic system and the energy storage system are first obtained, and a first eigenvector is generated based on the historical collected data to determine the current adjustment demand and the maximum demand limit value of the microgrid control system, and the optimal solution for system scheduling is obtained based on the first eigenvector, or the optimal solution for system scheduling is obtained based on the first eigenvector, the current adjustment demand and the maximum demand limit value, and the optimal solution for system scheduling is filtered and jitter detected to obtain the target diesel generator set operating power and the target energy storage system operating power. When the photovoltaic power temporary drop alarm signal indicates a temporary drop warning, each diesel generator is controlled to start up, and when the photovoltaic power temporary drop alarm signal does not indicate a temporary drop, the optimal solution for system scheduling is filtered and jitter detected to obtain the target diesel generator set operating power and the target energy storage system operating power. In the case of an early warning, the starting signal, rated power capacity and set power of each diesel generator are determined according to the rated power capacity of each diesel generator. According to the starting signal of each diesel generator, the first generator in operation and the second generator in shutdown are determined, the sum of the first rated capacity of the first generator is determined, and the sum of the second rated capacity of each remaining third generator after shutting down any first generator is determined. When the operating power of the target diesel generator set is less than or equal to the sum of the first rated capacity and greater than the sum of the second rated capacity, it is determined that each diesel generator meets the preset conditions and maintains the state of the first generator and the second generator. The method proposed in the embodiment of the present disclosure can realize the start and stop decision of the generator, the allocation of energy storage charging and discharging power to cooperate with photovoltaic and diesel generation in the photovoltaic and diesel microgrid environment, and control the maximum demand.
[0170] In order to implement the above embodiments, the present disclosure also proposes a control device for a microgrid control system.
[0171] Figure 4 This is a structural block diagram of a control device of a microgrid control system provided in the third embodiment of the present disclosure.
[0172] like Figure 4 As shown, the control device 400 of the microgrid control system may include:
[0173] A generating module 410 is used to obtain historical collected data of the photovoltaic system and the energy storage system, and generate a first feature vector according to the historical collected data;
[0174] A determination module 420 is used to determine the current adjusted demand and the maximum demand limit value of the microgrid control system;
[0175] An acquisition module 430 is configured to acquire an optimal solution for system scheduling based on the first characteristic vector, or to acquire an optimal solution for system scheduling based on the first characteristic vector, the current adjusted demand, and a maximum demand limit value;
[0176] A detection module 440 is used to filter and jitter detect the optimal solution for system scheduling to obtain a target diesel generator set operating power and a target energy storage system operating power;
[0177] The control module 450 is used to receive the photovoltaic power sag alarm signal, and control the start and stop of the diesel generator based on the photovoltaic power sag alarm signal and the target diesel generator set operating power.
[0178] Optionally, the generating module is specifically used for:
[0179] Obtain the temperature, humidity, solar illumination, and longitude and latitude collected at each time point in the first historical period;
[0180] Reading the current power, short-term power forecast and long-term power forecast of the photovoltaic system at each time point in the second historical period;
[0181] The set charging and discharging power corresponding to the energy storage system is read at each time point in the third historical period.
[0182] Optionally, the generating module is specifically used for:
[0183] Performing time scrambling on each data in the historical collected data to obtain multiple groups of time scrambled data corresponding to the historical collected data;
[0184] Performing principal component analysis on the received multiple groups of time-scrambled data to obtain multiple principal value vectors corresponding to each group of time-scrambled data;
[0185] According to the plurality of principal value vectors corresponding to each group of the time scrambled data, coordinate transformation is performed in a principal component coordinate system to obtain a plurality of initial eigenvectors;
[0186] The initial feature vectors are arranged to obtain a scrambled time series vector.
[0187] Optionally, the determining module is specifically used to:
[0188] Obtain the total power collected at each time point in the fourth historical period from the gateway billing meter, and determine the target maximum demand that has actually occurred;
[0189] Determining a first quantity of each of the time points corresponding to the fourth historical period;
[0190] Determine the adjusted total power according to the total power corresponding to each time point and the first number;
[0191] Determining a current adjustment demand of the microgrid control system according to the target maximum demand, a preset comparison parameter and the adjusted total power;
[0192] The maximum demand limit value of the microgrid control system is determined according to the target maximum demand, the comparison parameter and the maximum allowable system demand of the microgrid control system.
[0193] Optionally, the acquisition module 430 is specifically configured to:
[0194] Determine whether the difference between the initial feature vector and each historical optimal solution feature vector in the optimal solution feature vector set is less than a first threshold;
[0195] When the difference between the initial feature vector and any historical optimal solution feature vector is less than the first threshold, determining the any historical optimal solution feature vector as the system scheduling optimal solution;
[0196] When the difference between the initial feature vector and any historical optimal solution feature vector is greater than or equal to the first threshold, comparing the difference between the scrambled time series vector and each of the historical optimal solution feature vectors;
[0197] When the difference between the scrambled time series vector and any historical optimal solution feature vector is less than the first threshold, the any historical optimal solution feature vector is determined to be the system scheduling optimal solution.
[0198] Optionally, the acquisition module 430 is specifically configured to:
[0199] Determine the given selection range of energy storage system power and diesel generator set operating power;
[0200] The curve splitting method is adopted to obtain multiple power combinations within a given selection range according to the pre-specified mapping curve and the number of options;
[0201] Based on the current adjusted demand and the maximum demand limit value, the electricity price information, and the specified working cycle information, determining the cost corresponding to each of the power combinations, wherein the cost corresponding to the power of the diesel generator set is composed of the fuel cost and the generator start-stop cost;
[0202] According to the costs corresponding to the various power combinations, a target power combination with the lowest cost is determined, and the target power combination is used as the optimal solution for the system scheduling.
[0203] Optionally, the control module includes:
[0204] A first control unit is used to control each diesel generator to start up when the photovoltaic power temporary sag alarm signal indicates a temporary sag warning;
[0205] A first determination unit is used to determine the start signal and the rated power capacity and the set power of each diesel generator according to the rated power capacity of each diesel generator when the photovoltaic power sag alarm signal does not indicate a sag warning;
[0206] A second determining unit is used to determine the first generator in the running state and the second generator in the shut-down state according to the start-up signals of the respective diesel generators;
[0207] a third determining unit, configured to determine the sum of the first rated capacities of the first generators, and determine the sum of the second rated capacities of the remaining third generators after shutting down any of the first generators;
[0208] a fourth determining unit, configured to determine that each of the diesel generators meets a preset condition when the operating power of the target diesel generator set is less than or equal to the sum of the first rated capacities and greater than the sum of the second rated capacities;
[0209] A maintaining unit is used to maintain the states of the first generator and the second generator.
[0210] Optionally, the third determining unit is further configured to:
[0211] When the operating power of the target diesel generator set is greater than the sum of the first rated capacities and less than or equal to the sum of the second rated capacities, determining a generator with the lowest start-stop cost from each of the second generators, and starting the generator with the lowest start-stop cost to become the first generator;
[0212] Determine whether each of the diesel generators currently meets the preset conditions;
[0213] If the preset condition is met, maintaining the states of the first generator and the second generator;
[0214] Otherwise, continue to start the generator with the lowest start-stop cost from each of the second generators until each of the diesel generators meets the preset condition.
[0215] Optionally, the third determining unit is further configured to:
[0216] When the operating power of the target diesel generator set is less than or equal to the sum of the first rated capacities and less than or equal to the sum of the second rated capacities, determine the generator with the lowest start-stop cost from each of the first generators, and shut down the generator with the lowest start-stop cost to become the second generator;
[0217] Determine whether each of the diesel generators currently meets the preset conditions;
[0218] If the preset condition is met, maintaining the states of the first generator and the second generator;
[0219] Otherwise, continue to shut down the generator with the lowest start-stop cost from each of the first generators until each of the diesel generators meets the preset condition.
[0220] In the disclosed embodiment, the historical data of the photovoltaic system and the energy storage system are first acquired, and the first characteristic vector is generated according to the historical data, and then the current adjustment demand and the maximum demand limit value of the microgrid control system are determined, and then the optimal solution of the system scheduling can be obtained based on the first characteristic vector, or the optimal solution of the system scheduling can be obtained based on the first characteristic vector, the current adjustment demand and the maximum demand limit value, and then the optimal solution of the system scheduling is filtered and jitter detected to obtain the target diesel generator set operating power and the target energy storage system operating power, and finally the photovoltaic power drop alarm signal is received, and the diesel generator is controlled to start and stop based on the photovoltaic power drop alarm signal and the target diesel generator set operating power. Thus, through the collection and feature extraction of historical data, the system can better understand the performance and characteristics of the photovoltaic system and the energy storage system, thereby optimizing the system scheduling and maximizing the energy utilization rate. By determining the current adjustment demand and the maximum demand limit value, the system can effectively control the operation of the diesel generator set, avoid unnecessary start and stop, and thus reduce fuel costs and maintenance costs. Through filtering and jitter detection and other technologies, the fluctuation and instability in the system scheduling process can be reduced, the stability and reliability of the system can be improved, and the risk of power grid failure can be reduced. By properly controlling the start and stop of diesel generator sets, carbon emissions can be reduced, environmental pollution can be reduced, and the requirements of sustainable development can be met. Receiving the photovoltaic power drop alarm signal and adjusting the operation of the diesel generator set in time can improve the system's ability to respond to changes in the external environment and ensure the stable operation of the microgrid.
[0221] In order to implement the above embodiments, the present disclosure also proposes a computer device, including: a memory, a processor, and a computer program stored in the memory and executable on the processor. When the processor executes the program, the control method of the microgrid control system proposed in the above embodiments of the present disclosure is implemented.
[0222] In order to implement the above embodiments, the present disclosure further proposes a non-temporary computer-readable storage medium storing a computer program, which, when executed by a processor, implements the control method of the microgrid control system proposed in the above embodiments of the present disclosure.
[0223] In order to implement the above embodiments, the present disclosure further proposes a computer program product. When an instruction processor in the computer program product is executed, the control method of the microgrid control system proposed in the above embodiments of the present disclosure is executed.
[0224] Figure 5A block diagram of an exemplary computer device suitable for implementing embodiments of the present disclosure is shown. Figure 5 The computer device 12 shown is only an example and should not bring any limitation to the functions and scope of use of the embodiments of the present disclosure.
[0225] like Figure 5 As shown, the computer device 12 is in the form of a general-purpose computing device. The components of the computer device 12 may include, but are not limited to: one or more processors or processing units 16, a system memory 28, and a bus 18 that connects various system components (including the system memory 28 and the processing unit 16).
[0226] The bus 18 represents one or more of several types of bus structures, including a memory bus or memory controller, a peripheral bus, a graphics acceleration port, a processor or a local bus using any of a variety of bus structures. For example, these architectures include but are not limited to Industry Standard Architecture (ISA) bus, Micro Channel Architecture (MAC) bus, Enhanced ISA bus, Video Electronics Standards Association (VESA) local bus and Peripheral Component Interconnection (PCI) bus.
[0227] The computer device 12 typically includes a variety of computer system readable media. These media can be any available media that can be accessed by the computer device 12, including volatile and non-volatile media, removable and non-removable media.
[0228] The memory 28 may include computer system readable media in the form of volatile memory, such as random access memory (RAM) 30 and / or cache memory 32. The computer device 12 may further include other removable / non-removable, volatile / non-volatile computer system storage media. By way of example only, the storage system 34 may be used to read and write non-removable, non-volatile magnetic media ( Figure 5 not shown, usually called a "hard drive"). Although Figure 5Not shown in the figure, a disk drive for reading and writing a removable non-volatile disk (e.g., a "floppy disk"), and an optical disk drive for reading and writing a removable non-volatile optical disk (e.g., a compact disc read only memory (CD-ROM), a digital versatile disc read only memory (DVD-ROM), or other optical media) may be provided. In these cases, each drive may be connected to the bus 18 via one or more data medium interfaces. The memory 28 may include at least one program product having a set (e.g., at least one) of program modules configured to perform the functions of the various embodiments of the present disclosure.
[0229] A program / utility 40 having a set (at least one) of program modules 42 may be stored, for example, in the memory 28, such program modules 42 including but not limited to an operating system, one or more application programs, other program modules, and program data, each of which or some combination may include an implementation of a network environment. The program modules 42 generally perform the functions and / or methods of the embodiments described in the present disclosure.
[0230] The computer device 12 may also communicate with one or more external devices 14 (e.g., keyboard, pointing device, display 24, etc.), one or more devices that enable a user to interact with the computer device 12, and / or any device that enables the computer device 12 to communicate with one or more other computing devices (e.g., network card, modem, etc.). Such communication may be performed via an input / output (I / O) interface 22. In addition, the computer device 12 may also communicate with one or more networks (e.g., a local area network (LAN), a wide area network (WAN), and / or a public network, such as the Internet) via a network adapter 20. As shown, the network adapter 20 communicates with other modules of the computer device 12 via a bus 18. It should be understood that, although not shown in the figure, other hardware and / or software modules may be used in conjunction with the computer device 12, including but not limited to: microcode, device drivers, redundant processing units, external disk drive arrays, RAID systems, tape drives, and data backup storage systems.
[0231] The processing unit 16 executes various functional applications and data processing by running programs stored in the system memory 28, such as implementing the methods mentioned in the above embodiments.
[0232] In the description of this specification, the description with reference to the terms "one embodiment", "some embodiments", "example", "specific example", or "some examples" etc. means that the specific features, structures, materials or characteristics described in conjunction with the embodiment or example are included in at least one embodiment or example of the present disclosure. In this specification, the schematic representations of the above terms do not necessarily refer to the same embodiment or example. Moreover, the specific features, structures, materials or characteristics described may be combined in any one or more embodiments or examples in a suitable manner. In addition, those skilled in the art may combine and combine the different embodiments or examples described in this specification and the features of the different embodiments or examples, without contradiction.
[0233] In addition, the terms "first" and "second" are used for descriptive purposes only and should not be understood as indicating or implying relative importance or implicitly indicating the number of the indicated technical features. Thus, a feature defined as "first" or "second" may explicitly or implicitly include at least one of the features. In the description of the present disclosure, "plurality" means at least two, such as two, three, etc., unless otherwise clearly and specifically defined.
[0234] Any process or method description in a flowchart or otherwise described herein may be understood to represent a module, segment or portion of code that includes one or more executable instructions for implementing the steps of a custom logical function or process, and the scope of the preferred embodiments of the present disclosure includes additional implementations in which functions may not be performed in the order shown or discussed, including performing functions in a substantially simultaneous manner or in reverse order depending on the functions involved, which should be understood by technicians in the technical field to which the embodiments of the present disclosure belong.
[0235] The logic and / or steps represented in the flowchart or otherwise described herein, for example, can be considered as an ordered list of executable instructions for implementing logical functions, and can be embodied in any computer-readable medium for use by an instruction execution system, device or apparatus (such as a computer-based system, a system including a processor, or other system that can fetch instructions from an instruction execution system, device or apparatus and execute the instructions), or in combination with these instruction execution systems, devices or apparatuses. For the purpose of this specification, "computer-readable medium" can be any device that can contain, store, communicate, propagate or transmit a program for use by an instruction execution system, device or apparatus, or in combination with these instruction execution systems, devices or apparatuses. More specific examples of computer-readable media (a non-exhaustive list) include the following: an electrical connection with one or more wires (electronic device), a portable computer disk box (magnetic device), a random access memory (RAM), a read-only memory (ROM), an erasable and programmable read-only memory (EPROM or flash memory), a fiber optic device, and a portable compact disk read-only memory (CDROM). In addition, the computer-readable medium may even be paper or other suitable medium on which the program is printed, since the program may be obtained electronically, for example, by optically scanning the paper or other medium and then editing, interpreting or processing in other suitable ways if necessary, and then stored in a computer memory.
[0236] It should be understood that the various parts of the present disclosure can be implemented in hardware, software, firmware or a combination thereof. In the above-mentioned embodiments, multiple steps or methods can be implemented in software or firmware stored in a memory and executed by a suitable instruction execution system. For example, if implemented in hardware, as in another embodiment, any one of the following technologies known in the art or a combination thereof can be used to implement: a discrete logic circuit having a logic gate circuit for implementing a logic function for a data signal, a dedicated integrated circuit having a suitable combination of logic gate circuits, a programmable gate array (PGA), a field programmable gate array (FPGA), etc.
[0237] A person skilled in the art may understand that all or part of the steps in the method for implementing the above-mentioned embodiment may be completed by instructing related hardware through a program, and the program may be stored in a computer-readable storage medium, which, when executed, includes one or a combination of the steps of the method embodiment.
[0238] In addition, each functional unit in each embodiment of the present disclosure may be integrated into a processing module, or each unit may exist physically separately, or two or more units may be integrated into one module. The above-mentioned integrated module may be implemented in the form of hardware or in the form of a software functional module. If the integrated module is implemented in the form of a software functional module and sold or used as an independent product, it may also be stored in a computer-readable storage medium.
[0239] The storage medium mentioned above may be a read-only memory, a disk or an optical disk, etc. Although the embodiments of the present disclosure have been shown and described above, it can be understood that the above embodiments are exemplary and cannot be understood as limitations of the present disclosure. A person of ordinary skill in the art may change, modify, replace and modify the above embodiments within the scope of the present disclosure.
Claims
1. A control method for a microgrid control system, characterized in that: include: Acquire historical collected data of the photovoltaic system and the energy storage system, and generate a first feature vector according to the historical collected data; Determine the current adjustment demand and maximum demand limit value of the microgrid control system; Acquire the optimal solution for system scheduling based on the first characteristic vector, or acquire the optimal solution for system scheduling based on the first characteristic vector, the current adjusted demand and the maximum demand limit value; Filtering and jitter detection are performed on the optimal solution for system scheduling to obtain target diesel generator set operating power and target energy storage system operating power; A photovoltaic power sag alarm signal is received, and based on the photovoltaic power sag alarm signal and the target diesel generator set operating power, the diesel generator is controlled to start and stop.
2. The method according to claim 1, characterized in that The acquisition of historical data collected from the photovoltaic system and the energy storage system includes: Obtain the temperature, humidity, solar illumination, and longitude and latitude collected at each time point in the first historical period; Reading the current power, short-term power forecast and long-term power forecast of the photovoltaic system at each time point in the second historical period; The set charging and discharging power corresponding to the energy storage system is read at each time point in the third historical period.
3. The method according to claim 1, characterized in that The generating a first feature vector according to the historical collected data comprises: Performing time scrambling on each data in the historical collected data to obtain multiple groups of time scrambled data corresponding to the historical collected data; Performing principal component analysis on the received multiple groups of time-scrambled data to obtain multiple principal value vectors corresponding to each group of time-scrambled data; According to the plurality of principal value vectors corresponding to each group of the time scrambled data, coordinate transformation is performed in a principal component coordinate system to obtain a plurality of initial eigenvectors; The initial feature vectors are arranged to obtain a scrambled time series vector.
4. The method according to claim 1, characterized in that: The determining of the current adjustment demand and the maximum demand limit value of the microgrid control system includes: Obtain the total power collected at each time point in the fourth historical period from the gateway billing meter, and determine the target maximum demand that has actually occurred; Determining a first quantity of each of the time points corresponding to the fourth historical period; Determine the adjusted total power according to the total power corresponding to each time point and the first number; Determining a current adjustment demand of the microgrid control system according to the target maximum demand, a preset comparison parameter and the adjusted total power; The maximum demand limit value of the microgrid control system is determined according to the target maximum demand, the comparison parameter and the maximum allowable system demand of the microgrid control system.
5. The method according to claim 3, characterized in that: The obtaining of the optimal solution for system scheduling based on the first feature vector includes: Determine whether the difference between the initial feature vector and each historical optimal solution feature vector in the optimal solution feature vector set is less than a first threshold; When the difference between the initial feature vector and any historical optimal solution feature vector is less than the first threshold, determining the any historical optimal solution feature vector as the system scheduling optimal solution; When the difference between the initial feature vector and any historical optimal solution feature vector is greater than or equal to the first threshold, comparing the difference between the scrambled time series vector and each of the historical optimal solution feature vectors; When the difference between the scrambled time series vector and any historical optimal solution feature vector is less than the first threshold, the any historical optimal solution feature vector is determined to be the system scheduling optimal solution.
6. The method according to claim 1, characterized in that The obtaining the optimal solution for system scheduling based on the first characteristic vector, the current adjusted demand and the maximum demand limit value includes: Determine the given selection range of energy storage system power and diesel generator set operating power; The curve splitting method is adopted to obtain multiple power combinations within a given selection range according to the pre-specified mapping curve and the number of options; Based on the current adjusted demand and the maximum demand limit value, the electricity price information, and the specified working cycle information, determining the cost corresponding to each of the power combinations, wherein the cost corresponding to the power of the diesel generator set is composed of the fuel cost and the generator start-stop cost; According to the costs corresponding to the various power combinations, a target power combination with the lowest cost is determined, and the target power combination is used as the optimal solution for the system scheduling.
7. The method according to claim 1, characterized in that The method of controlling the start and stop of the diesel generator based on the photovoltaic power temporary drop alarm signal and the target diesel generator set operating power includes: When the photovoltaic power temporary drop alarm signal indicates a temporary drop warning, control each diesel generator to start up; In the case where the photovoltaic power sag alarm signal does not indicate a sag warning, determining a start signal and a set power for each diesel generator according to the rated power capacity of each diesel generator; According to the start-up signals of the diesel generators, a first generator in operation and a second generator in shutdown are determined; Determine the sum of the first rated capacities of the first generators, and determine the sum of the second rated capacities of the remaining third generators after shutting down any of the first generators; When the operating power of the target diesel generator set is less than or equal to the sum of the first rated capacities and greater than the sum of the second rated capacities, the states of the first generator and the second generator are maintained.
8. The method according to claim 7, characterized in that After determining the sum of the first rated capacities of the first generators and determining to shut down any first generator, and then the sum of the second rated capacities of the remaining first generators, the method further includes: When the operating power of the target diesel generator set is greater than the sum of the first rated capacities and less than or equal to the sum of the second rated capacities, determining a generator with the lowest start-stop cost from each of the second generators, and starting the generator with the lowest start-stop cost to become the first generator; Determine whether each of the diesel generators currently meets the preset conditions; If the preset condition is met, maintaining the states of the first generator and the second generator; Otherwise, continue to start the generator with the lowest start-stop cost from each of the second generators until each of the diesel generators meets the preset condition.
9. The method according to claim 7, characterized in that: After determining the sum of the first rated capacities of the first generators and determining to shut down any first generator, and then the sum of the second rated capacities of the remaining first generators, the method further includes: When the operating power of the target diesel generator set is less than or equal to the sum of the first rated capacities and less than or equal to the sum of the second rated capacities, determine the generator with the lowest start-stop cost from each of the first generators, and shut down the generator with the lowest start-stop cost to become the second generator; Determine whether each of the diesel generators currently meets the preset conditions; If the preset condition is met, maintaining the states of the first generator and the second generator; Otherwise, continue to shut down the generator with the lowest start-stop cost from each of the first generators until each of the diesel generators meets the preset condition.
10. A control device for a microgrid control system, characterized in that: include: A generating module, used to obtain historical collected data of the photovoltaic system and the energy storage system, and generate a first feature vector according to the historical collected data; A determination module, used to determine the current adjustment demand and the maximum demand limit value of the microgrid control system; An acquisition module, configured to acquire an optimal solution for system scheduling based on the first characteristic vector, or to acquire an optimal solution for system scheduling based on the first characteristic vector, the current adjusted demand, and a maximum demand limit value; A detection module, used for filtering and jitter detection of the optimal solution for system scheduling to obtain a target diesel generator set operating power and a target energy storage system operating power; The control module is used to receive the photovoltaic power sag alarm signal, and control the start and stop of the diesel generator based on the photovoltaic power sag alarm signal and the operating power of the target diesel generator set.
