A green electricity regulation method, device, equipment and medium based on blockchain
Through the green electricity control method based on the blockchain, the proportion of solar energy and fossil energy and the adjustment of solar panels are dynamically adjusted, which solves the problems of unstable energy supply and environmental pollution in large sports venues, and achieves the improvement of energy efficiency and environmental protection. Performance enhancements.
Patent Information
- Application Number
- CN202411001049.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-25
- Publication Date
- 2024-10-01
- Estimated Expiration
- 2044-07-25
AI Technical Summary
Existing technologies are difficult to effectively coordinate and optimize solar and fossil energy, resulting in unstable energy supply and serious environmental pollution. Especially in large stadiums, it is difficult to dynamically adjust the energy ratio according to different events and weather conditions.
Adopting a blockchain-based green power regulation method, dynamic Adjust the proportion of solar energy and fossil energy, monitor and adjust the position and angle of solar panels in real time, and optimize energy allocation strategies.
It has improved energy use efficiency, reduced environmental pollution, adjusted energy use strategies according to different events and time periods, improved the adaptability and flexibility of the energy system, and met the energy needs of the venue.
Smart Images

Figure CN118536781B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of information technology, and in particular to a green electricity regulation method, device, equipment and medium based on blockchain. Background Art
[0002] In recent years, with the enhancement of environmental awareness and the development of new energy technologies, clean energy such as solar energy has been increasingly used in sports venues. For example, in venues, the application of solar photovoltaic power generation systems and solar water heating systems can greatly reduce the emission of carbon dioxide, sulfur dioxide and dust. Although the initial investment of solar energy systems may be high, in the long run, their operating costs are low and a large amount of electricity bills can be saved. Solar energy systems can not only provide electricity and hot water for sports venues, but can also be combined with other systems (such as rainwater collection systems) to achieve comprehensive utilization of energy. However, although clean energy such as solar energy is increasingly used in sports venues, fossil energy is still necessary in some cases. The supply of fossil energy is relatively stable and is not affected by weather and seasons. In some sports venues with large energy demand and high requirements for energy stability, fossil energy still plays an important role. In venues such as sports events, in order to achieve the coordinated operation and optimal configuration of solar energy and fossil energy, it is necessary to accurately track and trace the two energy sources.
[0003] The existing venues have poor energy allocation. On the one hand, solar energy is intermittent and random, which means that its supply is unstable and greatly affected by weather, seasons and day and night changes. This makes it impossible for solar energy to be supplied stably around the clock, which brings challenges to its coordinated operation with traditional energy. On the other hand, the combustion of fossil energy will emit a large amount of greenhouse gases and pollutants, which has a serious impact on the environment. In addition, the coordinated operation of solar energy and fossil energy requires a complex energy management system that needs to be able to monitor the supply and consumption of the two energy sources in real time and make dynamic adjustments according to demand.
[0004] In summary, achieving coordinated operation and optimal configuration of solar energy and fossil energy faces many challenges in existing technologies. Summary of the invention
[0005] The present invention provides a green electricity regulation method based on blockchain to solve the technical problem of how to adjust the use of solar energy and fossil energy under different events and weather conditions to meet the energy needs of the venue while reducing environmental impact, so as to achieve the effect of improving energy utilization efficiency and reducing environmental pollution.
[0006] In order to solve the above technical problems, an embodiment of the present invention provides a green electricity regulation method based on blockchain, comprising:
[0007] Acquire historical operation data of the target area, wherein the historical operation data includes first energy consumption operation data within a first preset time period and second energy consumption operation data within a second preset time period;
[0008] Based on a decision tree model and a moving average method, respectively, the first energy consumption operation data and the second energy consumption operation data are predicted to obtain a corresponding energy consumption demand table;
[0009] According to the energy demand table and weather forecast information, dynamically adjusting the energy ratio of the target area based on a multi-objective optimization method;
[0010] The actual energy consumption operation data within the target area after dynamic adjustment is collected and recorded in real time through blockchain.
[0011] As one of the preferred solutions, the target area is a target venue, the first preset time period is a match period corresponding to the target venue, the second preset time period is an off-season corresponding to the target venue, and the energy consumption operation data includes at least solar energy data and fossil energy data;
[0012] The first energy consumption operation data and the second energy consumption operation data are predicted based on the decision tree model and the moving average method respectively to obtain a corresponding energy consumption demand table, including:
[0013] Performing cluster analysis on the first energy consumption operation data and the second energy consumption operation data using a K-means clustering algorithm, and dividing energy consumption patterns into different typical patterns according to the results of the cluster analysis;
[0014] Training a decision tree model based on the energy consumption data corresponding to the different typical modes to obtain energy usage rules output by the trained decision tree model;
[0015] Use the moving average method to make predictions and obtain proportional data reflecting the proportion of solar energy and fossil energy;
[0016] Based on the proportion data, the energy usage pattern and the pre-acquired competition schedule data, the energy consumption demand table is obtained.
[0017] As one preferred solution, before dynamically adjusting the energy ratio of the target area based on the energy consumption demand table and weather forecast information based on a multi-objective optimization method, the method further includes:
[0018] Get weather forecast information;
[0019] Based on the weather forecast information, a solar panel control signal is generated and sent to the new energy station, so that the new energy station can maximize the solar energy output.
[0020] As one of the preferred solutions, after maximizing the solar energy output of the new energy station, the method further includes:
[0021] Monitor the adjustment information of solar panels and the efficiency of solar power generation in real time, continuously track the position and angle of solar panels and changes in solar power generation efficiency, and regularly update energy allocation strategies, including adjusting the advance reserve of solar energy or fossil energy.
[0022] As one of the preferred solutions, the energy ratio of the target area is dynamically adjusted based on the energy consumption demand table and weather forecast information based on a multi-objective optimization method, including:
[0023] Obtain weather forecast information, establish a correlation model between weather factors and solar power generation through support vector machine regression algorithm, and predict the hourly curve of solar power generation;
[0024] Input the energy consumption demand table and the solar energy power generation hourly curve into a pre-built multi-objective optimization model to obtain corresponding first solar energy power generation plan data and second fossil energy power generation plan data;
[0025] Adjustment is performed based on the first power generation plan data and the second power generation plan data.
[0026] As one preferred solution, after obtaining the corresponding first power generation plan data of solar energy and the second power generation plan data of fossil energy, the method further includes:
[0027] Construct an environmental protection influencing factor model based on the pre-set environmental protection index;
[0028] The first power generation plan data and the second power generation plan data are respectively corrected using the environmental impact factor model to obtain corrected first power generation plan data and second power generation plan data.
[0029] As one of the preferred solutions, the real-time collection and recording of the actual energy consumption operation data in the target area after dynamic adjustment through blockchain includes:
[0030] Use data visualization tools to display the information recorded in the blockchain.
[0031] Another embodiment of the present invention provides a green electricity control device based on blockchain, including:
[0032] An acquisition module, configured to acquire historical operation data of a target area, wherein the historical operation data includes first energy consumption operation data within a first preset time period and second energy consumption operation data within a second preset time period;
[0033] A prediction module, used to predict the first energy consumption operation data and the second energy consumption operation data based on a decision tree model and a moving average method, respectively, to obtain a corresponding energy consumption demand table;
[0034] An adjustment module, used for dynamically adjusting the energy ratio of the target area based on a multi-objective optimization method according to the energy consumption demand table and weather forecast information;
[0035] The recording module is used to collect and record the actual energy consumption operation data in the target area after dynamic adjustment in real time through the blockchain.
[0036] Yet another embodiment of the present invention provides a computer device, including a processor, a memory, and a computer program stored in the memory and configured to be executed by the processor, wherein the processor implements the communication network optimization method considering power consumption as described above when executing the computer program.
[0037] Yet another embodiment of the present invention provides a computer-readable storage medium storing a computer program, wherein when a device where the computer-readable storage medium is located executes the computer program, the communication network optimization method considering power consumption as described above is implemented.
[0038] Compared with the prior art, the embodiments of the present invention have the following advantages:
[0039] The present invention discloses a green electricity regulation method based on blockchain. By analyzing the differences in energy demands for different events and time periods, the coordinated operation of solar energy and fossil energy is monitored, and the energy ratio is dynamically adjusted according to energy consumption demand tables and weather forecast information, providing a solution for large-scale sports stadiums or similar facilities that need to adjust energy usage strategies according to different events and time periods. BRIEF DESCRIPTION OF THE DRAWINGS
[0040] Figure 1 It is a flowchart of a green electricity regulation method based on blockchain in one embodiment of the present invention;
[0041] Figure 2 It is a structural schematic diagram of a green electricity control device based on blockchain in one embodiment of the present invention;
[0042] Figure 3 This is a schematic diagram of a green electricity control device based on blockchain in one embodiment of the present invention;. DETAILED DESCRIPTION
[0043] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. The purpose of providing these embodiments is to make the disclosure of the present invention more thorough and comprehensive. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0044] In the description of this application, the terms "first", "second", "third", etc. are used for descriptive purposes only and are not to be understood as indicating or implying relative importance or implicitly indicating the number of the indicated technical features. Thus, a feature defined as "first", "second", "third", etc. may explicitly or implicitly include one or more of the feature. In the description of this application, unless otherwise specified, "plurality" means two or more.
[0045] In the description of the present application, it should be noted that, unless otherwise clearly specified and limited, the terms "installed", "connected", and "connected" should be understood in a broad sense. For example, it can be a fixed connection, a detachable connection, or an integral connection; it can be a mechanical connection or an electrical connection; it can be a direct connection, or it can be indirectly connected through an intermediate medium, or it can be a connection between the two elements. The terms "vertical", "horizontal", "left", "right", "upper", "lower" and similar expressions used herein are only for illustrative purposes, and do not indicate or imply that the device or element referred to must have a specific orientation, be constructed and operated in a specific orientation, and therefore cannot be understood as a limitation on the present invention. The term "and / or" used herein includes any and all combinations of one or more related listed items. For those of ordinary skill in the art, the specific meanings of the above terms in this application can be understood according to specific circumstances.
[0046] In the description of this application, it should be noted that, unless otherwise defined, all technical and scientific terms used in the present invention have the same meaning as those commonly understood by those skilled in the art. The terms used in the specification of the present invention are only for the purpose of describing specific embodiments and are not intended to limit the present invention. For those of ordinary skill in the art, the specific meanings of the above terms in this application can be understood by specific circumstances.
[0047] An embodiment of the present invention provides a green electricity regulation method based on blockchain. For details, please refer to Figure 1 , Figure 1 The flowchart of the green electricity regulation method based on blockchain provided in one embodiment of the present invention is shown, which includes steps S1 to S4:
[0048] S1: Acquire historical operation data of a target area, wherein the historical operation data includes first energy consumption operation data within a first preset time period and second energy consumption operation data within a second preset time period;
[0049] S2: predicting the first energy consumption operation data and the second energy consumption operation data based on a decision tree model and a moving average method respectively, to obtain a corresponding energy consumption demand table;
[0050] S3: According to the energy consumption demand table and weather forecast information, dynamically adjust the energy ratio of the target area based on a multi-objective optimization method;
[0051] S4: The actual energy consumption operation data in the target area after dynamic adjustment is collected and recorded in real time through the blockchain.
[0052] In this embodiment, preferably, the target area is a target stadium, the first preset period is a match period corresponding to the target stadium, the second preset period is an off-season corresponding to the target stadium, and the energy consumption operation data includes at least solar energy data and fossil energy data;
[0053] The first energy consumption operation data and the second energy consumption operation data are predicted based on the decision tree model and the moving average method respectively to obtain a corresponding energy consumption demand table, including:
[0054] Performing cluster analysis on the first energy consumption operation data and the second energy consumption operation data using a K-means clustering algorithm, and dividing energy consumption patterns into different typical patterns according to the results of the cluster analysis;
[0055] Training a decision tree model based on the energy consumption data corresponding to the different typical modes to obtain energy usage rules output by the trained decision tree model;
[0056] Use the moving average method to make predictions and obtain proportional data reflecting the proportion of solar energy and fossil energy;
[0057] Based on the proportion data, the energy usage pattern and the pre-acquired competition schedule data, the energy consumption demand table is obtained.
[0058] Specifically, in this embodiment, the data analysis unit extracts the fossil energy and solar energy usage data of different competition periods and off-season periods from the actual operation data, and combines the event schedule of the venue to divide the energy consumption data into time series, distinguish the energy consumption data of the competition period and the energy consumption data of the off-season, and form an energy consumption data set divided by time dimension. The K-means clustering algorithm is used to perform cluster analysis on the energy consumption data of the competition period and the off-season period. First, the energy consumption data is standardized, and then the appropriate number of clusters K is selected, and K data points are randomly selected as the initial cluster centers. The sample points are assigned to the nearest cluster according to the distance between the sample and the cluster center, and then the new center of each cluster is calculated, and the above process is repeated until the cluster center no longer changes. According to the clustering results, the energy consumption pattern is divided into different typical patterns, such as the peak energy consumption pattern during the competition period, the average energy consumption pattern during the competition period, and the off-season trough energy consumption pattern, etc., to explore the energy consumption characteristics of different competition stages. The decision tree algorithm is used to analyze the correlation between fossil energy and solar energy usage data and the event schedule. The game days and off days in the event schedule are used as the input features of the decision tree, and the energy usage (peak, average, trough, etc.) is used as the output target of the decision tree. The decision tree model is established through training with historical data, and the model is used to predict the energy usage of the new event schedule, and the usage patterns of fossil energy and solar energy in different event stages are discovered. The moving average method is used to estimate the proportion of fossil energy and solar energy usage in different event stages, and the appropriate time window is selected to calculate the average value of fossil energy and solar energy usage in each window period as the estimated value of the energy usage ratio in this stage. Combined with historical energy consumption data and future event schedules, the total energy demand of the venue within a certain time range is predicted, and a detailed energy consumption demand table is generated. The scenario analysis method is used to conduct sensitivity analysis on the energy demand table, setting different scenarios of event schedule changes (such as postponement, cancellation, etc.) and weather change scenarios (such as continuous high temperature, rainy, etc.), respectively calculating the change in energy demand in each scenario, and evaluating the impact of various factors on energy demand through indicators such as change rate, identifying key factors affecting energy consumption, and formulating energy demand guarantee plans and emergency plans accordingly. The solar power generation prediction model is introduced, based on historical meteorological data and solar panel parameters, using machine learning algorithms such as support vector machines to predict solar power generation in the future, comparing and analyzing the energy demand table with solar power generation forecast data, finding the gap between energy supply and demand, optimizing the capacity configuration of solar panels and the scale of energy storage equipment, and ensuring that solar power generation can meet the energy needs of the venue at different stages of the event.An energy balance scheduling optimization model is established. The objective function is to minimize the use of fossil energy. The constraints include satisfying the venue's electricity load, solar power generation restrictions, and energy storage equipment capacity restrictions. The decision variables include fossil energy usage, direct solar power supply, and storage capacity in each time period. The model is solved using a mixed integer linear programming algorithm to obtain the optimal energy scheduling strategy at different stages of the event, achieve a reasonable combination of solar and fossil energy, and maximize the use of clean energy while ensuring the normal operation of the venue to achieve energy conservation and emission reduction.
[0059] For example, the actual operation data of the venues in the past three years were extracted through the data analysis unit, and a total of 1,200 competition periods and 800 off-season energy consumption data samples were obtained. The energy consumption data was normalized using the Min-Max standardization method, and then the optimal cluster number K=4 was selected using the elbow method. The data was clustered using the K-means clustering algorithm. After 20 iterations, the cluster center was stable, and the energy consumption pattern was divided into four typical modes: peak during the competition period, average during the competition period, average during the off-season, and low during the off-season. The C4.5 decision tree algorithm was used to construct an energy consumption association model. Ten features such as event type, number of spectators, temperature, and humidity were selected as inputs to the decision tree. The optimal division features were selected through the information gain ratio. 80% of the historical data were trained, and the average accuracy of the decision tree model was 85%. The 7-day moving average method was used to estimate the energy use ratio of each event stage. It was found that the proportion of fossil energy use was the highest during the winter competition period, accounting for an average of 70%, and the proportion of solar energy use was the highest during the summer off-season, accounting for an average of 60%. Through scenario analysis, it is found that when the summer temperature is high (average daily temperature>35℃), the energy demand will increase by 15%, while when the winter temperature is low (average daily temperature<-5℃), the energy demand will increase by 20%. The support vector machine regression model is used to predict the solar power generation. The meteorological data (irradiance, temperature, humidity, etc.) and actual power generation of the past two years are selected as training samples. The model parameters are optimized through grid search, and finally 90% prediction accuracy is achieved on the test set. In the energy balance scheduling optimization model, a total of 7 days of the next time span is considered, with each 30 minutes as a period, and a total of 336 decision periods. The model solution results show that on the peak days in summer, 70% of solar power generation should be used directly for power supply and 30% for energy storage; on the peak days in winter, the use of fossil energy should be increased, 90% of solar power generation should be stored, and released at night.
[0060] In this embodiment, preferably, dynamically adjusting the energy ratio of the target area based on the energy consumption demand table and weather forecast information based on a multi-objective optimization method includes:
[0061] Obtain weather forecast information, establish a correlation model between weather factors and solar power generation through support vector machine regression algorithm, and predict the hourly curve of solar power generation;
[0062] Input the energy consumption demand table and the solar energy power generation hourly curve into a pre-built multi-objective optimization model to obtain corresponding first solar energy power generation plan data and second fossil energy power generation plan data;
[0063] Adjustment is performed based on the first power generation plan data and the second power generation plan data.
[0064] Specifically, in this embodiment, the real-time operation data of the solar energy and fossil energy systems are collected through the energy management system, including parameters such as solar power generation, energy storage power, load power, fossil energy power generation, fuel consumption, etc., and the data is uploaded to the cloud platform using NB-IoT narrowband Internet of Things technology, and the data is uploaded at a fixed frequency to establish a unified energy operation database. The historical energy operation data is mined using big data analysis technology, and the association rule mining algorithm is used to analyze the correlation between solar power generation and load power consumption. The frequent item sets are solved by the Apriori algorithm to generate association rules to reveal the complementary law between energy supply and demand. At the same time, the ARIMA time series prediction algorithm is used to establish a load demand prediction model to predict the total energy demand and peak-valley distribution in the future. The training error is controlled within the preset threshold to generate short-term, medium-term, and long-term energy demand forecast reports. Obtain weather forecast information for the next week, focusing on meteorological factors such as solar radiation intensity, cloud cover, and temperature that affect the efficiency of solar power generation. The association model between weather factors and solar power generation is established through the support vector machine (SVM) regression algorithm to predict the hourly curve of solar power generation in the next week. According to the forecast results of energy demand and solar power generation, a multi-objective optimization model is constructed. The objective function is to minimize the utilization rate of solar energy and the consumption of fossil energy. The technical and economic parameters of solar energy and fossil energy are used as constraints. The non-dominated sorting genetic algorithm (NSGA-II) is used to solve the problem. The decision variables are the output of solar energy and fossil energy in each period, which are coded in real numbers. The optimal energy ratio scheme is converged by generational search to determine the power generation plan of solar energy and fossil energy in each period. If the optimization result shows that the solar power generation cannot fully meet the load demand, that is, the difference between the solar power generation and the load demand is greater than the preset threshold of the load demand, then according to the fossil energy power generation plan, combined with the quality parameters, market price, procurement cycle and other factors of fossil energy, the procurement cost does not exceed the preset threshold of the budget, the calorific value of coal is not lower than the preset value, and the methane content of natural gas is not lower than the preset value. The integer programming method is used to establish the fossil energy procurement optimization model. The objective function is to minimize the total procurement cost. The Gurobi solver is used to solve the problem, and the fossil energy procurement data table is automatically generated. The procurement order is issued, while taking into account the procurement cost and inventory risk. During the actual operation of the energy system, the energy management system compares the actual energy consumption data with the optimization plan in real time and calculates the energy consumption deviation value, which is actual energy consumption - optimized planned energy consumption) / optimized planned energy consumption * 100%. When the absolute value of the deviation exceeds the preset threshold, an early warning is triggered, and when it exceeds the preset threshold for multiple consecutive cycles, an alarm is triggered.Use the model predictive control (MPC) method for rolling optimization. According to the latest energy consumption data and weather forecast, regenerate the optimization plan for the future period at a fixed time frequency, dynamically adjust the energy allocation plan, ensure the real-time balance of the energy system, and improve energy efficiency. Perform statistical analysis on the operation data of the energy system, and use the ISO14064 standard to calculate the direct and indirect carbon emissions of the energy system based on the consumption and emission factors of fossil energy. Use the causal analysis method to study the impact of energy structure, operation mode, external factors, etc. on carbon emissions, and put forward countermeasures and suggestions for energy conservation and emission reduction. Regularly form monthly, quarterly and annual reports on energy operation optimization, and benchmark them with energy planning goals. Use the KPI assessment mechanism to continuously optimize the energy allocation strategy and achieve clean energy and low carbonization.
[0065] For example, the energy management system collects power, electricity, voltage and other operating data every 5 minutes through the NB-IoT communication module deployed on photovoltaic inverters, energy storage converters, load control terminals and other devices. The data packet size is 80 bytes and uploaded to the Alibaba Cloud IoT platform. Hive is used to perform ETL processing on energy data, and structured data is stored in the MySQL database and unstructured data is stored in the HDFS distributed file system. The Apriori association rule mining algorithm is implemented through MapReduce, and the minimum support is set to 0.05 and the minimum confidence is set to 0.8. Frequent item sets and association rules are generated, and the rule confidence of "when solar power generation>100kW, load power consumption<50kW" is found to be 85%. The ARIMA (1, 1, 2) model is used to predict load demand. The model order is determined according to the BIC criterion. The load data of the last 30 days is used for training to predict the hourly load curve for the next 7 days, with an average error rate of 3.2%. The hourly weather forecast data for the next 168 hours is obtained from the API interface of the Meteorological Bureau. The nonlinear relationship between irradiance and power generation is established using the SVM regression model. The ratio of the training set to the test set is 8:2, the penalty coefficient of the Gaussian kernel function is C=10, and the kernel function parameter g=0.01. The hourly power generation curve for the next 7 days is predicted. The NSGA-II algorithm is used to optimize the energy ratio for multiple objectives, with solar energy utilization and fossil energy costs as optimization targets. The solar energy output is 0-500kW, and the fossil energy output is 0-1000kW. The two are mutually constrained, with a crossover probability of 0.8, a mutation probability of 0.1, a population size of 100, and 500 iterations. 25 non-dominated solutions are obtained. When the gap between solar energy output and load demand exceeds 8% of the load, the fossil energy procurement program is started. With the minimum total cost as the goal, a 0-1 integer programming model is established. Gurobi9.0 is used to solve the daily procurement plan for the next 7 days. The coal procurement volume is 300 tons, and the average price is 800 yuan / ton. In actual operation, the energy consumption deviation is calculated every 30 minutes. When the deviation exceeds 12% for three consecutive cycles, the MPC rolling optimization is triggered. The energy allocation plan for the next four hours is adjusted with the minimum deviation as the goal, while meeting the safety constraints of the energy management system. Carbon emissions are counted every day, and the influencing factors are analyzed using causal trees. Logistic regression is used to study the contribution of each factor to carbon emissions. It is found that increasing the utilization rate of solar energy by 1% can reduce carbon emissions by 3.5%. The monthly KPI assessment results show that after optimization, the utilization rate of solar energy has increased by 8%, the cost of fossil energy has decreased by 12%, and the carbon emissions per unit of GDP have decreased.
[0066] In this embodiment, preferably, obtaining weather forecast information;
[0067] Based on the weather forecast information, a solar panel control signal is generated and sent to the new energy station, so that the new energy station can maximize the solar energy output.
[0068] Specifically, in this embodiment, the weather forecast data for the next week is obtained from the API interface of the meteorological department, including daily sunshine duration, irradiance, weather conditions and other information, and the data is stored in the local database and merged with the historical weather data to form a complete weather forecast time series data set. The blockchain module is accessed to obtain the real-time power generation and storage data of the solar panels, as well as the solar energy consumption data. Through data cleaning and preprocessing, outliers and missing values are removed to construct a time series data set of solar energy consumption. The weather forecast data and solar energy consumption data are associated with each other, and the support vector machine (SVM) algorithm is used to establish a nonlinear regression model of weather factors and solar energy consumption. The model parameters are obtained by training historical data, and then the solar energy consumption is predicted according to the future weather forecast data to provide input data for the subsequent optimization algorithm. Through the multi-objective optimization algorithm, with maximizing the utilization rate of solar energy and minimizing energy loss as the optimization goals, combined with the physical parameters of the solar panels (such as area, conversion efficiency, etc.) and installation constraints (such as maximum inclination, azimuth range, etc.), the non-dominated sorting genetic algorithm (NSGA-II) is used for optimization and solution. Firstly, the solar energy utilization rate and energy loss are taken as two optimization targets, and a mathematical model is established. Then a certain number of initial populations are randomly generated, and each individual represents a set of adjustment strategies for the tilt and azimuth of the solar panel. The population is quickly non-dominated sorted, and the fitness value of the individual is calculated according to the crowding degree. The population is iteratively optimized using genetic operators such as binary tournament selection, simulated binary crossover and polynomial mutation until the termination condition is met and the Pareto optimal solution set is obtained. Finally, an optimal adjustment strategy that balances utilization and loss is selected from the optimal solution set, and the optimal solar panel tilt and azimuth adjustment values for different periods of time every day in the next week are obtained. According to the optimized solar panel tilt and azimuth adjustment strategies, the corresponding control instructions are generated. Each instruction contains parameters such as timestamp, solar panel number, target tilt, target azimuth, rotation speed, rotation acceleration, etc., and is encapsulated in JSON format to facilitate data transmission and parsing. Using blockchain technology, the generated solar panel adjustment instructions are uploaded to the chain, and the instructions are distributed to the intelligent control system through smart contracts. At the same time, the instruction content is recorded in the distributed ledger of the blockchain to ensure the security, traceability and non-tamperability of the instructions. After receiving the adjustment instructions sent by the blockchain, the intelligent control system controls the motors and actuators of the solar panels according to the content of the instructions, and adjusts the inclination and azimuth of the solar panels in real time.After the adjustment is completed, the intelligent control system will publish the execution results (such as the actual inclination and azimuth angles achieved) and status information (such as motor speed, current, etc.) to the blockchain system in the form of events. The smart contract will record the event information in the distributed ledger of the blockchain, thereby achieving traceability and supervision of the adjustment process. At the same time, it also provides data support for subsequent data analysis and optimization, realizes dynamic optimization adjustment of the solar panel angle, and improves the conversion efficiency of solar energy.
[0069] For example, the hourly weather forecast data for the next 7 days, including solar irradiance, temperature, humidity, wind speed, etc., is obtained through the meteorological API interface, and a total of 7×24=168 data points are obtained. The data is stored in the MySQL database in the format of "year-month-day hour:minute", and merged with the historical weather data of the past 2 years to construct time series features. The RPC interface of the blockchain node is accessed, and the smart contract method is called to obtain the hourly solar power generation and power consumption data for the past 30 days. Pandas is used to clean the data, remove abnormal data with empty or less than 0 power generation or power consumption, and linear interpolation is performed to fill missing values. The weather features are aligned with the solar data by timestamp to construct a supervised learning data set. The grid search cross-validation method is used to optimize the hyperparameters of the SVM model, and the optimal penalty coefficient C=10 and gamma=0.1 of the Gaussian kernel function are determined by 5-fold cross-validation for support vector regression prediction. The training samples of the SVM model were selected using a genetic algorithm. The population size of the genetic algorithm was 50, the number of evolution generations was 100, the crossover probability was 0.7, the mutation probability was 0.1, and the fitness function was the mean square error of the SVM model. The mean absolute percentage error (MAPE) of the model on the test set was 8%. The solar power generation for each hour in the next 7 days was predicted based on weather forecast data and the SVM model, and 168 prediction values were generated. The NSGA-II algorithm was used to perform multi-objective optimization on the layout of solar panels. The optimization variables were the height of the solar panel from the ground (1-5 meters) and the tilt angle (0-60 degrees), and real number coding was used. The optimization goal was to maximize the annual power generation and minimize the area occupied. The population was generated using the marathon method, with a population size of 100, a number of iterations of 500, a crossover probability of 0.9, and a mutation probability of 0.1. The elite retention strategy was adopted to retain the non-dominated solutions of each generation and update the external archive. After optimization, 10 optimal layout schemes on the Pareto front were obtained, with an average annual power generation of 150,000 kWh and an average floor area of 200 square meters. The solar panel layout parameters (height, inclination, arrangement, etc.) are encapsulated as control instructions in JSON format, the hash value of the instruction is calculated using the SHA256 algorithm, and the instruction is sent to the blockchain network in the form of a transaction. After verification by the consensus algorithm, the control instruction is recorded in a new block and synchronized to the intelligent control system. The control system parses the instruction, converts it into PLC control code, and adjusts the position of the solar panel in real time. The solar panel is equipped with a tilt sensor and an azimuth encoder with a sampling frequency of 10Hz. The actual angle data is uploaded to the blockchain system, and the smart contract compares the data with the control instruction. If the deviation is greater than the threshold (1 degree), an alarm event is triggered and recorded in the blockchain, making the whole process traceable.
[0070] Preferably, if the weather forecast information indicates that the sunshine data is greater than a threshold, the adjustment mode of the solar panel is switched to the precision mode to maximize the capture of sunlight, otherwise the adjustment mode of the solar panel is switched to the normal mode to reduce the adjustment frequency or adjustment accuracy.
[0071] Specifically, by connecting with the API interface of the meteorological department, hourly weather forecast data for a preset period of time in the future is obtained in real time, focusing on indicators related to sunshine such as solar radiation intensity, cloud cover, visibility, etc. in the forecast data, and the data is transmitted to the cloud server for storage and analysis. In the cloud server, the weather forecast data is processed in real time using the big data analysis platform, and meteorological elements such as sunshine intensity, duration, cloud cover, visibility, etc. are comprehensively considered. A comprehensive sunny index is given by weighted scoring. When the index exceeds the preset threshold, it is determined to be sunny weather. The long short-term memory (LSTM) neural network algorithm is used to establish a solar power generation prediction model under sunny weather. The historical weather data (sunshine intensity, cloud cover, temperature, etc.) and power generation data are used as inputs. The nonlinear relationship between weather and power generation is learned through a multi-layer LSTM network, and then the hourly power generation forecast value for a preset period of time in the future is output through the fully connected layer. The prediction accuracy of the model is evaluated using indicators such as mean square error. According to the solar power generation prediction results, the tracking strategy of the solar panel is dynamically adjusted. When the predicted duration of sunny weather exceeds the threshold, the tracking mode is switched to the precise mode. High-precision motors and sensors are used to calculate the angle between the sun position and the normal vector of the solar panel in real time through the PID control algorithm, and the motor is controlled to quickly adjust the angle so that the normal vector always points to the sun. The control cycle of the tracking system is shortened to the preset threshold, and the angle adjustment accuracy is improved to the preset threshold to achieve efficient solar energy conversion. When the predicted duration of sunny weather is lower than the threshold, the tracking mode is switched to the normal mode. An open-loop control strategy based on the theoretical calculation of the sun position is adopted. According to the date, time and geographical coordinates, the theoretical values of the sun's altitude angle and azimuth angle are calculated. Combined with the adjustable number and range, a schedule for tilt adjustment is given. A single-axis tracking system is used to adjust the tilt angle of the solar panel once at a fixed time. The angle adjustment accuracy is the preset threshold. While ensuring a certain solar energy conversion efficiency, the energy consumption and mechanical wear of the tracking system are reduced. In the actual tracking control process, the light intensity sensor installed on the solar panel detects the change of solar radiation intensity in real time. When the measured light intensity is lower than the predicted value for many consecutive times, it is judged as a sudden weather change, triggering the switching of the tracking mode. When the measured value is higher than the predicted value, the tracking angle is fine-tuned to make it closer to the actual sun position. At the same time, the measured data is used to update and optimize the power generation prediction model to improve the model's adaptability to abnormal weather. The operating data of the solar tracking system (such as the number of angle adjustments, changes in light intensity, etc.) is uploaded to the cloud platform, and the Q-learning algorithm in reinforcement learning is used. The tracking angle, light intensity, power generation, etc. are used as the state space, and the direction and step size of the angle adjustment are used as the action space. Through continuous trial and learning, the optimal action value function under different states is obtained to guide real-time strategy adjustments.At the same time, the Adaboost algorithm in ensemble learning is used to weightedly combine multiple weak prediction models (such as LSTM models with different parameters) to improve the robustness and accuracy of the prediction, continuously optimize the tracking strategy and control parameters, seek the best balance between power generation efficiency and operation and maintenance costs, and realize the intelligent and refined management of solar panels.
[0072] For example, the hourly weather forecast data for the next 24 hours is obtained every 15 minutes through the meteorological API interface, including solar radiation intensity (W / m²), cloud cover (%), visibility (km), etc., to construct a time series feature vector. Spark Streaming is used to process data in real time. The judgment rule for sunny weather is set as follows: radiation intensity>500W / m², cloud cover<30%, visibility>10km, then the weight value is assigned to 1, otherwise it is 0. The weight values of the three indicators are summed. If the sum is greater than or equal to 2, it is determined to be sunny weather. PySpark is used to build an LSTM prediction model, input the weather characteristics and actual power generation of the past 30 days, the hidden layer contains 3 layers, each layer has 50 neurons, and the output layer has 1 neuron. The power generation of the next day is predicted, and 500 epochs are trained with a learning rate of 0.01. The mean absolute error rate (MAPE) of the model on the validation set is 6.2%. If the weather is sunny for the next 4 hours, the precision mode is triggered. The STM32 microcontroller is used as the tracking controller, dual-axis motor drive, rotation angle resolution of 0.0015°, and the PID algorithm is used to calculate the solar vector azimuth and altitude in real time. The stepper motor is adjusted 50 steps per second, and the tracking accuracy is 0.1°. If the light intensity is lower than 500W / m² for three consecutive times, it will switch to normal mode, and the angle will be adjusted only at 9:00, 12:00, and 15:00. Single-axis tracking, east-west translation, step size 5°. The naive Bayes algorithm is used to update the prior probability of sunny weather, and the deviation between the actual light intensity measured value and the predicted value is accumulated daily. If the deviation rate exceeds 20%, the LSTM model is retrained. A reinforcement learning platform was built, using the Q-learning algorithm. The state space was the average light intensity of the past 3 hours (100-1000), the current tracking angle (-90°-90°), the action space was fine-tuned 1° clockwise (+1) and counterclockwise (-1), the reward function was the current power generation, the discount factor was 0.9, the exploration probability was 0.2, the learning rate was 0.01, and 5000 rounds were iterated. After convergence, a Q value table was generated, and the action with the largest Q value was selected according to the current state to achieve real-time optimization. According to simulation tests, under the condition of the same average daily power generation, reinforcement learning reduced the number of tracking times by 15%, and reduced operation and maintenance costs.
[0073] Preferably, the intelligent control system receives the solar panel adjustment command, decodes the solar panel adjustment instruction, and controls the robotic arm or corresponding mechanism to adjust the position and angle of the solar panel.
[0074] Specifically, in this embodiment, the intelligent control system receives the solar panel adjustment instructions generated based on blockchain technology in real time through the communication interface between the host computer. The adjustment instructions are encapsulated in JSON format, including parameters such as timestamp, instruction type, target angle, angular velocity, etc., and digitally signed using the RSA algorithm to verify the authenticity and integrity of the instructions. The intelligent control system uses the STM32H743 processor based on the ARMCortex-M7 core, with a main frequency of 480MHz, equipped with 2MBFlash and 1MBSRAM, and supports multiple communication interfaces such as Ethernet, CAN, UART, etc. The intelligent control system runs the FreeRTOS real-time operating system and processes multiple adjustment instructions simultaneously through a multi-tasking mechanism. The task priority is dynamically adjusted according to the urgency of the instruction, and the mutually exclusive resources are managed by priority inheritance. The tasks communicate asynchronously through message queues, and the queue length is configurable. The control program adopts an object-oriented design approach to encapsulate functions such as motor control, instruction parsing, and communication protocols into independent classes to improve the reusability and maintainability of the code. According to the mechanical structure characteristics of the solar panel, the control system adopts a two-axis linkage control strategy. First, according to the size, weight, wind load and other parameters of the solar panel, the required motor torque and speed are calculated. The azimuth motor uses the SM233AL-NFHN eight-pole permanent magnet synchronous motor of Parker, USA. The tilt angle motor uses the AM8063-wFy0 six-pole permanent magnet synchronous motor of Beckhoff, Germany. The two motors communicate with the controller through the CAN bus, using the CANopen protocol, and support PDO and SDO data exchange. The control system generates the motion trajectory of the motor in real time according to the target angle and angular velocity in the adjustment instruction. The trajectory planning adopts the quintic polynomial interpolation algorithm. According to the maximum speed, acceleration and jerk limit of the motor, interpolation is performed in the three dimensions of position, speed and acceleration to generate a smooth S-shaped speed curve. The time of the acceleration and deceleration sections is calculated according to the angular velocity in the instruction, and the time of the uniform speed section is calculated according to the angle deviation. The continuity constraints of speed, acceleration and jerk are met during the entire motion cycle to ensure the smoothness of the motion. The motion control algorithm adopts the adaptive PID algorithm. The controller calculates the position error based on the feedback value of the angle encoder and the target angle, and then calculates the speed error based on the speed estimate. The position error and speed error are processed by the PID controller and then superimposed and output. The PID parameters are adjusted online according to the error size. When the error is large, the proportional coefficient and integral coefficient are increased to speed up the response speed; when the error is small, the proportional coefficient and differential coefficient are reduced to reduce overshoot and oscillation. At the same time, according to the wind speed measured by the wind speed sensor, the PID parameters are dynamically adjusted. When the wind speed is large, the proportional coefficient and integral coefficient are appropriately reduced to enhance the robustness of the system. The wind speed sensor adopts the ultrasonic measurement principle and communicates with the controller through the RS485 interface.In addition, the control system is also equipped with a MEMS tilt sensor, which communicates with the controller through the I²C interface. When the tilt sensor detects that the tilt of the solar panel exceeds the preset threshold, the controller immediately triggers the protection mechanism, suspends the current adjustment task, returns the solar panel to the horizontal position, and sends an alarm message to the host computer. All sensor data and control instructions are uploaded to the cloud server through industrial Ethernet. The server uses the InfluxDB time series database for data storage and management. InfluxDB uses a tag-value data model. Each data contains metadata such as timestamp, measurement name, tag set, field set, etc., and can be retrieved and aggregated through SQL-like query language. The control system packages the sensor data and control instructions into an InfluxDB data point at a fixed time frequency and uploads it to the server. The measurement name of the data point is "solar_panel", the tags include device ID, instruction ID, etc., and the fields include azimuth, tilt, wind speed, tilt, etc. The server uses Grafana as a data visualization tool. By connecting to the InfluxDB data source, a real-time dashboard is created to display the operating status and adjustment history of the solar panel. The dashboard supports a variety of chart types, such as line charts, bar charts, and instrument charts. It can display data from multiple devices and support drill-down and aggregate analysis. The control system also supports wireless RF communication and communicates with the handheld remote control through the ZigBee module. The remote control uses the CC2530 chip and supports point-to-point and networked communication. The remote control is equipped with multiple buttons and joysticks, which can manually control the azimuth and inclination of the solar panel, and can also trigger specific adjustment modes such as cleaning mode and typhoon mode with one button, enhancing flexibility and operability.
[0075] For example, the intelligent control system receives a solar panel adjustment instruction in JSON format, and the instruction content is {"timestamp":"2023-05-10T09:30:00Z", "type":"angle", "azimuth":180.5, "elevation":30.2, "speed":2.0}. The instruction is signed and verified using a private key through the RSA algorithm to confirm that the source of the instruction is credible. The ARMCortex-M7 processor parses the instruction into control parameters of azimuth 180.5°, elevation 30.2°, and angular velocity 2.0° / s, and creates two tasks with a priority of 8 to control the azimuth motor and the tilt angle motor respectively. The task stack size is 4KB, and inter-task communication is carried out through a message queue with a length of 10. According to the parameters of the solar panel (2m long, 1m wide, 50kg in weight) and the wind load (100N), the torque required by the azimuth motor is calculated to be 2.1Nm and the speed is 120rpm; the torque required by the tilt motor is 1.3Nm and the speed is 60rpm. The controller sends control instructions to the motor driver through the CANopen protocol, setting the target position of the azimuth motor to 10800 (corresponding to 180°), the acceleration to 600rmp / s², and the deceleration to 500rpm / s²; the target position of the tilt motor is set to 102400 (corresponding to 30°), the acceleration to 200rpm / s², and the deceleration to 150rpm / s². The quintic polynomial interpolation algorithm calculates that the movement time of the azimuth motor is 1.5s (acceleration 0.2s, uniform speed 1.1s, deceleration 0.2s), and the movement time of the tilt motor is 2.4s (acceleration 0.3s, uniform speed 1.8s, deceleration 0.3s). The adaptive PID algorithm dynamically adjusts the control parameters according to the error size, with the initial values set to Kp=2.5, Ki=0.8, Kd=0.2, and the error threshold set to 2°. The wind speed sensor measures the current wind speed to be 5m / s, which is less than the preset threshold of 10m / s, and maintains the PID parameters unchanged; the inclination sensor measures the current inclination to be 28.6°, which does not exceed the protection threshold of 60°, and continues to perform the current adjustment task. The controller collects sensor data and motor position every 100ms, generates an InfluxDB data point, and uploads it to the cloud server. The data point format is solar_panel, device_id=1, instruction_id=123azimuth=180.3, elevation=29.8, wind_speed=5.1, tilt_angle=28.61621400100000000000, including fields such as device ID, instruction ID, azimuth, elevation, wind speed, inclination, and timestamp.The Grafana dashboard creates a panel called "Real-time Monitoring of Solar Panels" and adds four line graphs to show the changing curves of azimuth, elevation, wind speed, and inclination. The time window is set to the last hour and the refresh frequency is 5 seconds.
[0076] In this embodiment, weather forecast information is obtained and combined with the solar energy consumption recorded by the blockchain module to generate solar panel adjustment instructions; the adjustment information of the solar panels and the solar power generation efficiency are monitored in real time, the position and angle of the solar panels and the changes in solar power generation efficiency are continuously tracked, and the energy configuration strategy is updated regularly.
[0077] Specifically, in this embodiment, weather forecast data for the next season is obtained, including meteorological elements such as daily solar radiation intensity, sunshine hours, and average temperature. In addition to obtaining data from the API interface of the meteorological department, it is also possible to establish a cooperative relationship with the meteorological department, regularly obtain authorized meteorological data, or deploy a micro-meteorological station inside the venue to collect meteorological data by itself to improve the reliability and timeliness of the data. The acquired meteorological data is stored in a local database, merged with historical data, and a complete meteorological data set is constructed. The support vector machine regression (SVR) algorithm is used to establish a nonlinear relationship model between weather factors and solar power generation. The Gaussian radial basis function is selected as the kernel function of the SVR, and the penalty coefficient C and kernel function parameter γ of the model are optimized by grid search and cross-validation. The weather factors and power generation data are normalized to improve training efficiency and prediction accuracy. The training samples are generated using the sliding window method. The data set is randomly divided into a training set and a test set according to a preset ratio, and the model is trained on the training set, and the prediction performance of the model is evaluated on the test set, such as the root mean square error (RMSE), the mean absolute percentage error (MAPE) and other indicators. The trained SVR model is used to predict the solar power generation in the next season. The data interface of the energy management system is accessed to obtain the energy storage data of the current solar panel, analyze the battery charging and discharging status and remaining power, and estimate the power supply that the energy storage system can provide in the next season, providing a basis for formulating the energy ratio plan. According to the schedule of different events and the operation arrangement of the venue, the daily power load forecast data for the next season is obtained from the energy consumption demand table. Combined with the solar power generation forecast and the energy storage forecast, the particle swarm optimization (PSO) algorithm is used to optimize the energy ratio. The PSO algorithm is inspired by the feeding behavior of bird flocks, and realizes global search by updating the position and velocity of particles. It is suitable for the optimization problem of continuous variables. The output of solar energy and fossil energy is used as the position vector of the particle, and the power generation cost and solar energy utilization rate are used as the optimization target. By setting appropriate inertia weights, acceleration constants and stop conditions, the convergence speed and accuracy of the algorithm are controlled to solve the optimal solar energy and fossil energy ratio scheme, and determine the daily solar direct power supply ratio, battery power supply ratio and fossil energy power supply ratio. When the optimization results show that solar power generation and energy storage cannot fully meet the electricity demand, a fossil energy purchase order is automatically generated. An integer programming model is established, and the objective function is to minimize the total procurement cost. The constraints include meeting the electricity demand and the efficiency of fossil energy generation. The procurement variables are the purchase quantities of various fossil energy sources, all of which are non-negative integers. Use Gurobi and other optimization software to solve the integer programming model and obtain the most economical fossil energy procurement plan, including procurement time, procurement quantity, supplier selection, etc., to form a purchase order and send it to relevant personnel for approval. Establish a reinforcement learning framework for energy scheduling, and learn the optimal energy ratio and scheduling strategy through continuous exploration and trial and error.The solar power generation, energy storage power, power load, grid electricity price, etc. are used as state variables to form a high-dimensional continuous state space. The solar power output, energy storage charging and discharging power, fossil energy output, etc. are used as action variables, and the action space is encoded in a continuous or discrete way. A multi-objective reward function is designed to comprehensively consider factors such as energy utilization, economic cost, and environmental benefits to guide the agent to learn the optimal strategy. The ε-greedy strategy is used to balance exploration and utilization, and the state transition samples obtained by the interaction between the agent and the environment are stored in the experience pool. Small batch samples are randomly selected for training to improve the stability of training and sample utilization. In the process of energy optimization and scheduling, the actual solar power generation and load power consumption are monitored in real time. When the deviation between the actual value and the predicted value exceeds a certain threshold, the early warning mechanism is automatically triggered, and the optimal strategy obtained by reinforcement learning training is called. According to the latest power generation and load data, the energy ratio scheme is recalculated, and the output of solar energy, energy storage, and fossil energy is dynamically adjusted to ensure the stable operation of the energy system.
[0078] For example, by establishing a data sharing agreement with the Central Meteorological Observatory, hourly weather forecast data for the next 7 days are obtained from the FTP server on a regular basis every day, including solar radiation intensity (w / m²), cloud cover (%), temperature (℃), etc., with a total of 7×24=168 data points. After cleaning and standardizing the data, it is stored in the weather table of the MySQL database and merged with the historical data of the past 2 years, with a total of about 100,000 records. The SVR model is constructed using Python's Scikit-learn library, with independent variables being radiation intensity, cloud cover, and temperature, and the dependent variable being solar power generation. Grid search and 5-fold cross-validation are used to optimize the model hyperparameters, with the optimal penalty coefficient C=10 and kernel function parameter γ=0.01. The model performance is evaluated on an independent test set, with RMSE=20.5 and MAPE=5.8%. The trained SVR model is used in combination with the weather forecast data for the next 7 days to predict solar power generation in 168 time periods during a competition period. The current battery energy storage ratio obtained from the energy management system is 80%, and the capacity is 2MWh. According to historical data analysis, the daily discharge depth is about 30%, so the total power that the energy storage system can provide in a game period (7 days) is about 2×80%×30%×7=3.36MWh. According to the event schedule, the venue will host 12 games and 5 concerts in the next game period, with an average daily power load of about 80MWh and a peak load of up to 120MWh. Combining solar power generation prediction and energy storage power, the PSO algorithm is used for multi-objective optimization, with 50 particles, 0.8 inertia weight, acceleration constant c1=c2=2, and a maximum number of iterations of 200. The optimal ratio is obtained, with an average daily solar direct supply of 40MWh, 5MWh of energy storage system power supply, 35MWh of fossil energy power supply, and a solar energy utilization rate of 56%. The fossil energy output curve represented by the optimal particle is selected, and the most economical procurement plan is determined using the integer programming model. The coal-fired power generation efficiency is 8000kWh / ton, and the gas-fired power generation efficiency is 6000kWh / 10,000 m³. The optimal procurement plan obtained by modeling is that D1-D3 purchases 30 tons of coal per day, and D4-D7 purchases 80,000 m³ of natural gas per day, with a total procurement cost of approximately RMB 800,000.A reinforcement learning agent DQN is designed. The state space includes the solar power generation (0-500), energy storage power (0-1000), power load (0-1000), and peak and valley electricity prices of the power grid (0.3-1.5) in the past 24 hours. The action space includes solar power output (0-100), energy storage charging and discharging power (-100-100), and fossil energy output (0-500). After taking an action in each period, the environment returns the corresponding power balance and cost-effectiveness. The single-step return is estimated according to the reward function. The experience pool capacity is 400,000, the batch size is 256, the learning rate is 0.005, the discount factor is 0.99, the ε initial value is 1, and the decay is 0.001 in each episode. After interacting with the environment for 100,000 episodes, the strategy of the agent is evaluated. The average reward value on the test set is -5.8, which is better than the -10.2 of the heuristic scheduling algorithm, realizing self-learning and dynamic optimization of the strategy. Finally, when deploying the energy dispatching system, real-time power generation and load data are collected every 5 minutes. When the deviation exceeds 15% for three consecutive time periods, the optimal strategy network of the DQN agent is loaded, and the optimal action value is selected according to the current state and predicted value to generate the ratio instruction for the next hour, control the inverter, energy storage converter and other equipment to execute, and realize closed-loop optimization control.
[0079] In this embodiment, based on the dynamically adjusted energy ratio, the actual operating data of the solar panels and fossil energy corresponding to the venue are collected in real time and recorded through the blockchain.
[0080] Specifically, the real-time operation data of solar energy and fossil energy systems, including solar power generation, energy storage, load power, fossil energy power generation, fuel consumption and other parameters, are collected through the energy management system. The data is uploaded to the cloud platform using NB-IoT narrowband Internet of Things technology. The data is uploaded at a fixed frequency to establish a unified energy operation database. The historical energy operation data is mined using big data analysis technology, and the association rule mining algorithm is used to analyze the correlation between solar power generation and load power consumption. The frequent item sets are solved by the Apriori algorithm to generate association rules and reveal the complementary law between energy supply and demand. At the same time, the ARIMA time series prediction algorithm is used to establish a load demand prediction model to predict the total energy demand and peak-valley distribution in the future. The training error is controlled within the preset threshold to generate short-term, medium-term and long-term energy demand forecast reports. The weather forecast information for the next week is obtained, focusing on the meteorological factors that affect the efficiency of solar power generation, such as solar radiation intensity, cloud cover, and temperature. The association model between weather factors and solar power generation is established through the support vector machine (SVM) regression algorithm to predict the hourly curve of solar power generation in the next week. According to the forecast results of energy demand and solar power generation, a multi-objective optimization model is constructed. The objective function is to minimize the utilization rate of solar energy and the consumption of fossil energy. The technical and economic parameters of solar energy and fossil energy are used as constraints. The non-dominated sorting genetic algorithm (NSGA-II) is used to solve the problem. The decision variables are the output of solar energy and fossil energy in each period, which are coded in real numbers. The optimal energy ratio scheme is converged by generational search to determine the power generation plan of solar energy and fossil energy in each period. If the optimization result shows that the solar power generation cannot fully meet the load demand, that is, the difference between the solar power generation and the load demand is greater than the preset threshold of the load demand, then according to the fossil energy power generation plan, combined with the quality parameters, market price, procurement cycle and other factors of fossil energy, the procurement cost does not exceed the preset threshold of the budget, the calorific value of coal is not lower than the preset value, and the methane content of natural gas is not lower than the preset value. The integer programming method is used to establish the fossil energy procurement optimization model. The objective function is to minimize the total procurement cost. The Gurobi solver is used to solve the problem, and the fossil energy procurement data table is automatically generated. The procurement order is issued, while taking into account the procurement cost and inventory risk. During the actual operation of the energy system, the energy management system compares the actual energy consumption data with the optimization plan in real time, and calculates the energy consumption deviation value, which is actual energy consumption - optimized plan energy consumption) / optimized plan energy consumption * 100%. When the absolute value of the deviation exceeds the preset threshold, an early warning is triggered, and when it exceeds the preset threshold for multiple consecutive cycles, an alarm is triggered. The model predictive control (MPC) method is used for rolling optimization. According to the latest energy consumption data and weather forecast, the optimization plan for a period of time in the future is regenerated at a fixed time frequency, and the energy ratio plan is dynamically adjusted to ensure the real-time balance of the energy system and improve energy utilization efficiency.Conduct statistical analysis on the operation data of the energy system, and use the ISO14064 standard to calculate the direct and indirect carbon emissions of the energy system based on the consumption and emission factors of fossil energy. Use the causal analysis method to study the impact of energy structure, operation mode, external factors, etc. on carbon emissions, and put forward countermeasures and suggestions for energy conservation and emission reduction. Regularly form monthly, quarterly and annual reports on energy operation optimization, and benchmark them with energy planning goals. Use the KPI assessment mechanism to continuously optimize the energy ratio strategy and achieve clean and low-carbon energy.
[0081] For example, the energy management system collects power, electricity, voltage and other operating data every 5 minutes through the NB-IoT communication module deployed on photovoltaic inverters, energy storage converters, load control terminals and other devices. The data packet size is 80 bytes and uploaded to the Alibaba Cloud IoT platform. Hive is used to perform ETL processing on energy data, and structured data is stored in the MySQL database and unstructured data is stored in the HDFS distributed file system. The Apriori association rule mining algorithm is implemented through MapReduce, and the minimum support is set to 0.05 and the minimum confidence is set to 0.8. Frequent item sets and association rules are generated, and the rule confidence of "when solar power generation>100kW, load power consumption<50kW" is found to be 85%. The ARIMA (1, 1, 2) model is used to predict load demand. The model order is determined according to the BIC criterion. The load data of the last 30 days is used for training to predict the hourly load curve for the next 7 days, with an average error rate of 3.2%. The hourly weather forecast data for the next 168 hours is obtained from the API interface of the Meteorological Bureau. The nonlinear relationship between irradiance and power generation is established using the SVM regression model. The ratio of the training set to the test set is 8:2, the penalty coefficient of the Gaussian kernel function is C=10, and the kernel function parameter g=0.01. The hourly power generation curve for the next 7 days is predicted. The NSGA-II algorithm is used to optimize the energy ratio for multiple objectives, with solar energy utilization and fossil energy costs as optimization targets. The solar energy output is 0-500kW, and the fossil energy output is 0-1000kW. The two are mutually constrained, with a crossover probability of 0.8, a mutation probability of 0.1, a population size of 100, and 500 iterations. 25 non-dominated solutions are obtained. When the gap between solar energy output and load demand exceeds 8% of the load, the fossil energy procurement program is started. With the minimum total cost as the goal, a 0-1 integer programming model is established. Gurobi9.0 is used to solve the daily procurement plan for the next 7 days. The coal procurement volume is 300 tons, and the average price is 800 yuan / ton. In actual operation, the energy consumption deviation is calculated every 30 minutes. When the deviation exceeds 12% for three consecutive cycles, the MPC rolling optimization is triggered. The energy allocation plan for the next four hours is adjusted with the minimum deviation as the goal, while meeting the safety constraints of the energy management system. Carbon emissions are counted every day, and the influencing factors are analyzed using causal trees. Logistic regression is used to study the contribution of each factor to carbon emissions. It is found that increasing the utilization rate of solar energy by 1% can reduce carbon emissions by 3.5%. The monthly KPI assessment results show that after optimization, the utilization rate of solar energy has increased by 8%, the cost of fossil energy has decreased by 12%, and the carbon emissions per unit of GDP have decreased.
[0082] In this embodiment, further, the solar power generation is predicted based on the weather forecast information, and combined with the solar energy storage and energy consumption demand table, the energy ratio corresponding to the next game period is generated, and the fossil energy purchase order for the next game period is generated.
[0083] Specifically, weather forecast data for the next season is obtained, including daily solar radiation intensity, sunshine hours, average temperature and other meteorological elements. In addition to obtaining data from the API interface of the meteorological department, it is also possible to establish a cooperative relationship with the meteorological department to regularly obtain authorized meteorological data, or deploy a micro-meteorological station inside the venue to collect meteorological data by itself to improve the reliability and timeliness of the data. The acquired meteorological data is stored in the local database and merged with historical data to construct a complete meteorological data set. The support vector machine regression (SVR) algorithm is used to establish a nonlinear relationship model between weather factors and solar power generation. The Gaussian radial basis function is selected as the kernel function of SVR, and the penalty coefficient C and kernel function parameter γ of the model are optimized through grid search and cross-validation. The weather factor and power generation data are normalized to improve training efficiency and prediction accuracy. The sliding window method is used to generate training samples. The data set is randomly divided into a training set and a test set according to a preset ratio, and the model is trained on the training set. The prediction performance of the model is evaluated on the test set, such as the root mean square error (RMSE), the mean absolute percentage error (MAPE) and other indicators. The trained SVR model is used to predict the solar power generation in the next season. The data interface of the energy management system is accessed to obtain the energy storage data of the current solar panel, analyze the battery charging and discharging status and remaining power, and estimate the power supply that the energy storage system can provide in the next season, providing a basis for formulating the energy ratio plan. According to the schedule of different events and the operation arrangement of the venue, the daily power load forecast data for the next season is obtained from the energy consumption demand table. Combined with the solar power generation forecast and the energy storage forecast, the particle swarm optimization (PSO) algorithm is used to optimize the energy ratio. The PSO algorithm is inspired by the feeding behavior of bird flocks, and realizes global search by updating the position and velocity of particles. It is suitable for the optimization problem of continuous variables. The output of solar energy and fossil energy is used as the position vector of the particle, and the power generation cost and solar energy utilization rate are used as the optimization target. By setting appropriate inertia weights, acceleration constants and stop conditions, the convergence speed and accuracy of the algorithm are controlled to solve the optimal solar energy and fossil energy ratio scheme, and determine the daily solar direct power supply ratio, battery power supply ratio and fossil energy power supply ratio. When the optimization results show that solar power generation and energy storage cannot fully meet the electricity demand, a fossil energy purchase order is automatically generated. An integer programming model is established, and the objective function is to minimize the total procurement cost. The constraints include meeting the electricity demand and the efficiency of fossil energy generation. The procurement variables are the purchase quantities of various fossil energy sources, all of which are non-negative integers. Use Gurobi and other optimization software to solve the integer programming model and obtain the most economical fossil energy procurement plan, including procurement time, procurement quantity, supplier selection, etc., to form a purchase order and send it to relevant personnel for approval. Establish a reinforcement learning framework for energy scheduling, and learn the optimal energy ratio and scheduling strategy through continuous exploration and trial and error.The solar power generation, energy storage power, power load, grid electricity price, etc. are used as state variables to form a high-dimensional continuous state space. The solar power output, energy storage charging and discharging power, fossil energy output, etc. are used as action variables, and the action space is encoded in a continuous or discrete way. A multi-objective reward function is designed to comprehensively consider factors such as energy utilization, economic cost, and environmental benefits to guide the agent to learn the optimal strategy. The ε-greedy strategy is used to balance exploration and utilization, and the state transition samples obtained by the interaction between the agent and the environment are stored in the experience pool. Small batch samples are randomly selected for training to improve the stability of training and sample utilization. In the process of energy optimization and scheduling, the actual solar power generation and load power consumption are monitored in real time. When the deviation between the actual value and the predicted value exceeds a certain threshold, the early warning mechanism is automatically triggered, and the optimal strategy obtained by reinforcement learning training is called. According to the latest power generation and load data, the energy ratio scheme is recalculated, and the output of solar energy, energy storage, and fossil energy is dynamically adjusted to ensure the stable operation of the energy system.
[0084] For example, by establishing a data sharing agreement with the Central Meteorological Observatory, hourly weather forecast data for the next 7 days are obtained from the FTP server on a regular basis every day, including solar radiation intensity (w / m²), cloud cover (%), temperature (℃), etc., with a total of 7×24=168 data points. After cleaning and standardizing the data, it is stored in the weather table of the MySQL database and merged with the historical data of the past 2 years, with a total of about 100,000 records. The SVR model is constructed using Python's Scikit-learn library, with independent variables being radiation intensity, cloud cover, and temperature, and the dependent variable being solar power generation. Grid search and 5-fold cross-validation are used to optimize the model hyperparameters, with the optimal penalty coefficient C=10 and kernel function parameter γ=0.01. The model performance is evaluated on an independent test set, with RMSE=20.5 and MAPE=5.8%. The trained SVR model is used in combination with the weather forecast data for the next 7 days to predict solar power generation in 168 time periods during a competition period. The current battery energy storage ratio obtained from the energy management system is 80%, and the capacity is 2MWh. According to historical data analysis, the daily discharge depth is about 30%, so the total power that the energy storage system can provide in a game period (7 days) is about 2×80%×30%×7=3.36MWh. According to the event schedule, the venue will host 12 games and 5 concerts in the next game period, with an average daily power load of about 80MWh and a peak load of up to 120MWh. Combining solar power generation prediction and energy storage power, the PSO algorithm is used for multi-objective optimization, with 50 particles, 0.8 inertia weight, acceleration constant c1=c2=2, and a maximum number of iterations of 200. The optimal ratio is obtained, with an average daily solar direct supply of 40MWh, 5MWh of energy storage system power supply, 35MWh of fossil energy power supply, and a solar energy utilization rate of 56%. The fossil energy output curve represented by the optimal particle is selected, and the most economical procurement plan is determined using the integer programming model. The coal-fired power generation efficiency is 8000kWh / ton, and the gas-fired power generation efficiency is 6000kWh / 10,000 m³. The optimal procurement plan obtained by modeling is that D1-D3 purchases 30 tons of coal per day, and D4-D7 purchases 80,000 m³ of natural gas per day, with a total procurement cost of approximately RMB 800,000.A reinforcement learning agent DQN is designed. The state space includes the solar power generation (0-500), energy storage power (0-1000), power load (0-1000), and peak and valley electricity prices of the power grid (0.3-1.5) in the past 24 hours. The action space includes solar power output (0-100), energy storage charging and discharging power (-100-100), and fossil energy output (0-500). After taking an action in each period, the environment returns the corresponding power balance and cost-effectiveness. The single-step return is estimated according to the reward function. The experience pool capacity is 400,000, the batch size is 256, the learning rate is 0.005, the discount factor is 0.99, the ε initial value is 1, and the decay is 0.001 in each episode. After interacting with the environment for 100,000 episodes, the strategy of the agent is evaluated. The average reward value on the test set is -5.8, which is better than the -10.2 of the heuristic scheduling algorithm, realizing self-learning and dynamic optimization of the strategy. Finally, when deploying the energy dispatching system, real-time power generation and load data are collected every 5 minutes. When the deviation exceeds 15% for three consecutive time periods, the optimal strategy network of the DQN agent is loaded, and the optimal action value is selected according to the current state and predicted value to generate the ratio instruction for the next hour, control the inverter, energy storage converter and other equipment to execute, and realize closed-loop optimization control.
[0085] In this embodiment, further, the adjustment information of the solar panels and the solar power generation efficiency are monitored in real time, the position and angle of the solar panels and the changes in the solar power generation efficiency are continuously tracked, and the energy configuration strategy is regularly updated, including adjusting the advance reserve amount of solar energy or fossil energy.
[0086] Specifically, by installing inclination sensors and azimuth encoders on solar panels, the spatial attitude information of solar panels, including horizontal angle, pitch angle, yaw angle, etc., is collected in real time. The frequency and communication bandwidth are adjusted according to the actual situation of the solar panels to optimize the data collection frequency, such as collecting attitude information once at a fixed time frequency, collecting electrical parameters once at a fixed time frequency, and uploading the data to the monitoring system through the RS485 bus. The output voltage, current, power and other electrical parameters of the solar panels are collected synchronously, and the data are uploaded to the monitoring system through the ModbusTCP protocol through the communication interface of the inverter. The monitoring system parses and processes the collected attitude information and electrical parameters, and calculates the real-time power generation efficiency of the solar panel. The formula is power generation efficiency = actual output power / (rated output power × solar irradiance / 1000), where the rated output power refers to the maximum output power under the standard solar irradiance of 1000W / m². The power generation efficiency data is stored in a time series database, and the attitude status and power generation efficiency curve of the solar panel are displayed in real time through the Web front end. The monitoring system performs batch processing and analysis on historical operation data every day, using the Apriori association rule mining algorithm. The attitude parameters of solar panels (such as pitch angle, azimuth angle) and power generation efficiency are encoded according to a certain discretization interval to form a transaction data set. The transaction data set is scanned to generate frequent item sets and association rules, which are sorted according to support and confidence to screen out strong association rules. The association rules are reviewed, and repeated, invalid and obviously wrong rules are eliminated to form the final rule set, which is added to the energy efficiency analysis model. The energy efficiency analysis model runs once a week to comprehensively analyze multi-source data such as solar power generation efficiency, load power demand, and weather forecast. Through machine learning algorithms such as support vector machines or random forests, the solar power generation and power load of the next week are predicted. Features related to power generation and load are extracted from historical data, such as solar irradiance, temperature, wind speed, humidity, holidays, etc., and significant features are screened out through correlation analysis and factor analysis. The hyperparameters of the model are optimized using methods such as grid search or random search. The prediction performance of the model is evaluated by methods such as cross-validation or leave-one-out, such as root mean square error, mean absolute percentage error, etc. The model with the best performance is selected to generate an energy balance prediction report as the input for energy configuration strategy optimization. The energy configuration strategy optimization module adopts the particle swarm optimization algorithm, takes the energy balance prediction results as constraints, takes the lowest power generation cost as the optimization goal, solves the optimal solar energy and fossil energy pre-reserve configuration strategy, takes into account the power supply reliability, and sets the lower limit threshold of fossil energy pre-reserve. If the optimization results show that the solar power generation and pre-reserve are greater than the load demand, the pre-reserve of fossil energy will be reduced accordingly while ensuring the threshold level, and consider adjusting the attitude parameters of the solar panels, such as adjusting the pitch angle to the optimal value, to improve the power generation efficiency.The energy configuration strategy optimization results form energy dispatch instructions, which are sent to the energy management system to fine-tune the attitude parameters of the solar panels and start and stop the fossil energy generators. After the energy dispatch instructions are executed, the actual operation data is promptly fed back to the monitoring system to verify and evaluate the effect of the optimization strategy, and the energy configuration strategy is adaptively optimized through reinforcement learning algorithms such as DeepQ-Network or ProximalPolicyOptimization. Variables such as solar power generation, load demand, and battery state of charge are discretized or normalized and used as the state vector of the intelligent agent. The adjustment values of the pitch angle and azimuth angle of the solar panel and the adjustment value of the fossil energy startup capacity are used as the action variables of the intelligent agent and encoded in a continuous or discrete manner. According to the actual power generation, load satisfaction rate, power supply cost and other indicators in each control cycle, a multi-objective reward function is designed to guide the intelligent agent to learn the optimal control strategy. The state-action value function or policy function is fitted by the neural network to achieve end-to-end adaptive optimization control, and continuously improve the economy and robustness of the energy system.
[0087] For example, the tilt sensor installed on the solar panel samples once every 5 minutes, with a range of ±90° and an accuracy of ±0.1°, and uploads data at a rate of 9600bps via the RS485 bus. The azimuth encoder samples once every 5 minutes, with a resolution of 12 bits, a range of 0-360°, an accuracy of ±0.5°, and uploads data at a rate of 19200bps via the RS485 bus. The inverter uploads operating data once every minute through the ModbusTCP protocol, including the voltage, current, power, etc. on the DC and AC sides, with a data resolution of 0.1V / 0.1A / 0.1kW. The monitoring system uses the time series database InfluxDB to store data, and the data retention period is 1 year. The web front end uses Grafana to display data with a refresh rate of 5 seconds. Data analysis is performed at 2 a.m. every day, and the Apriori algorithm is implemented using MapReduce to divide the attitude parameters into 5 intervals and the power generation efficiency into 3 intervals to generate frequent item sets and association rules. For example, the rule "IF30°<pitch angle≤60°AND45°<azimuth angle≤90°THEN90%≤power generation efficiency≤100%" is obtained, with a support of 8% and a confidence of 95%. The energy efficiency analysis model is run at 3 a.m. every Sunday, using the data of the last 30 days as the training set and the data of the next 7 days as the test set. The random forest algorithm is used, and the feature importance analysis shows that solar irradiance, temperature and holidays are the top three factors affecting the load. The grid search is used to optimize the model parameters, and the mean absolute percentage error (MAPE) of the optimal model is 4.2%. The particle swarm algorithm is used to optimize the energy configuration strategy, with 20 particles, 0.8 inertia weight, 1.5 learning factor, 100 maximum iterations, and 0.1% convergence accuracy. On the premise of meeting the load demand, the solar energy output adjustment range is 0-500kW, and the fossil energy output adjustment range is 200-1000kW. The optimal day-ahead output plan is solved, and the average power supply cost is 0.52 yuan / kWh. Based on the optimization results, the energy management system automatically generates control instructions to adjust the pitch angle of the solar panel by ±2°, the azimuth angle by ±3°, and start and stop two diesel generator sets. The reinforcement learning agent uses the DDPG algorithm. The state vector includes the solar power generation, load demand, battery state of charge (SOC), etc. in the past 24 hours. The action vector includes the adjustment values of the pitch angle and azimuth angle of the solar panel (-5° to +5°, step length 1°), and the fossil energy startup capacity (0-1000kW, step length 50kW). The reward function comprehensively considers the load satisfaction rate, power supply cost and battery life, with a weight ratio of 0.5 / 0.3 / 0.2. After 10,000 rounds of iterative training, the average episode reward increased from -1500 to 800, the average power supply cost on the test set decreased by 8%, and the battery cycle life increased.
[0088] In this embodiment, preferably, an environmental protection influencing factor model is constructed based on a preset environmental protection index;
[0089] The first power generation plan data and the second power generation plan data are respectively corrected using the environmental impact factor model to obtain corrected first power generation plan data and second power generation plan data.
[0090] Specifically, in this embodiment, the actual operation data of the solar power generation system and the fossil energy power generation system, including power generation, power generation time, energy consumption, fuel consumption, etc., are extracted from the energy management system, the data is cleaned and preprocessed, outliers and invalid values are removed, the integrity and accuracy of the data are ensured, and the data is stored in the data warehouse to establish an energy operation data mart. According to national and industry standards, the calculation method and evaluation model of the environmental protection index are formulated, and factors such as energy consumption, carbon emissions, renewable energy utilization rate, and resource utilization efficiency are comprehensively considered to establish a multi-dimensional evaluation system for the environmental protection index. The evaluation dimensions include resource utilization efficiency, pollutant emission intensity, clean energy proportion, etc. The hierarchical analysis method is used to determine the weight coefficient of each dimension to form an environmental protection index calculation engine. Energy operation data is regularly extracted from the data mart and input into the environmental protection index calculation engine. The weighted summation method is used to calculate the environmental protection index of the venue in different time dimensions (day, month, season, year), and generate an environmental protection index evaluation report. The Apriori association rule analysis algorithm is used to explore the association between the environmental protection index and the energy operation parameters. The minimum support and minimum confidence are set, and the energy operation parameters and environmental protection index are encoded according to a certain discretization interval to form a transaction data set. The transaction data set is scanned to generate frequent item sets and association rules, and strong association rules are screened out, such as "high solar power generation and low fossil energy consumption → high environmental protection index", to build an environmental protection influencing factor model. The NSGA-II multi-objective optimization algorithm is used to establish a mathematical model with the optimization goals of improving the environmental protection index and reducing energy costs. The objective function is to maximize the environmental protection index and minimize the energy cost. The constraints include that the sum of solar power generation and fossil energy power generation is equal to the total electricity consumption, solar power generation does not exceed the installed capacity, and fossil energy power generation does not exceed the upper limit of the unit output. The decision variables are solar power generation and fossil energy power generation in each period. The population size, crossover probability, mutation probability, and maximum evolutionary generation are set to solve the Pareto optimal solution set and screen out the optimal configuration plan with the highest environmental protection index and acceptable cost. The solar power generation and fossil energy power generation in the optimal configuration plan are decomposed by time period, combined with load forecast and unit characteristics, the output curve is smoothed to form an executable power generation plan and dispatching instructions for each power generation unit. Through the communication interface between the energy management system and the lower control system, the dispatching instructions are sent to specific power generation equipment and energy storage equipment to optimize the dispatch of solar power generation power, fossil energy output, etc., improve the utilization rate of renewable energy, and reduce fossil energy consumption. Evaluate the actual energy operation data after optimized dispatch, and calculate indicators such as energy saving, emission reduction, and environmental protection index improvement rate. Energy saving is the difference between fossil energy consumption before and after optimization, in tons of standard coal. Emission reduction is the difference between carbon emissions before and after optimization, in tons of carbon dioxide equivalent. Carbon emissions are calculated based on fossil energy consumption and emission factors.Environmental protection index improvement rate = (environmental protection index after optimization - environmental protection index before optimization) / environmental protection index before optimization × 100%. Conduct cost-benefit analysis to calculate the total cost and total benefits of environmental protection optimization. The total cost includes the cost of solar power generation, the cost of fossil energy power generation, the cost of environmental protection facility operation and maintenance, the cost of technology research and development, etc. The total benefit includes the direct economic benefits, environmental benefits and social benefits created by energy conservation and emission reduction. Use the shadow price method and the conditional value method to estimate the environmental benefits and social benefits respectively. Calculate the cost-benefit ratio, that is, the ratio of total benefits to total costs, to evaluate the economic rationality of environmental protection optimization. At the same time, conduct sensitivity analysis to evaluate the impact of changes in policy factors such as electricity prices, carbon prices, and subsidies on cost-effectiveness, and provide decision-making references for further optimizing and improving environmental protection strategies.
[0091] For example, HiveSQL query statements are used to extract SCADA data of solar inverters and fossil energy units from the Hadoop cluster of the energy management system, with a time granularity of 15 minutes and a time span of 1 year. The Python Pandas library is used to clean the data, identify and remove bad data points and outliers, and the completeness rate is increased to more than 99.5%. The environmental protection index is assessed from four dimensions: energy consumption, emissions, efficiency, and proportion, with weight coefficients of 0.4, 0.3, 0.2, and 0.1, respectively. The hierarchical analysis method is used to compare each indicator pairwise and calculate the result. The formula for calculating the environmental protection index is: environmental protection index = 0.4 × energy consumption score + 0.3 × emission score + 0.2 × efficiency score + 0.1 × proportion score, and the score range is 0-100 points. The Apriori algorithm was used to mine association rules between the environmental protection index and 12 energy operation parameters, with a minimum support of 10% and a minimum confidence of 80%. Fifteen strong association rules were obtained, such as the proportion of solar power generation is higher than 20% and the unit coal consumption is lower than 310g / kWh → the environmental protection index is higher than 90 points. The NSGA-II algorithm was used to optimize the energy configuration for multiple objectives. The number of Pareto optimal solutions was 50, and it converged after 500 iterations. The environmental protection index of the optimal solution was 95.2 points, and the energy cost was 0.52 yuan / kWh. On this basis, the day-ahead optimization scheduling plan for the next week was generated, specifically for the solar energy and fossil energy output every 15 minutes. The scheduling instructions were sent to the equipment once through the Modbus protocol. The annual environmental protection index before optimization was 82.3 points, and it was increased to 92.5 points after optimization, with an improvement rate of 12.4%. The annual fossil energy consumption was reduced from 125,000 tons of standard coal to 96,000 tons of standard coal, saving 29,000 tons of standard coal. Annual carbon dioxide emissions were reduced from 316,000 tons to 242,000 tons, with a reduction of 74,000 tons. Based on the coal-fired electricity price of 0.65 yuan / kWh and the carbon trading price of 65 yuan / ton, the annual direct economic benefit is 18.5 million yuan. Using the shadow price method, the environmental benefit is estimated to be 37 million yuan based on the cost of air pollution control of 500 yuan / ton. Using the conditional value method, the social benefit is estimated to be 8 million yuan based on improving the livability of the city and the public's environmental awareness. The total investment cost of environmental optimization is 8 million yuan, the annual operation and maintenance cost is 1.2 million yuan, the total cost is 9.2 million yuan, and the cost-benefit ratio is (1850+3700+800) / 920=6.9, indicating that environmental optimization has good economic efficiency.
[0092] Furthermore, data visualization tools are used to display the information recorded in the blockchain.
[0093] Specifically, in this embodiment, by docking with the data interface of the blockchain platform, the energy system operation data recorded in the blockchain network, including solar energy output, fossil energy usage, solar panel control instructions, etc., is obtained in real time, and the data is transmitted to the background database of the visualization tool, and a time series database (such as InfluxDB) is used for storage. Compared with relational databases, time series databases are optimized specifically for time series data, provide higher write and query performance, support more flexible data compression and downsampling, and are more suitable for storing monitoring data of energy systems. In the background service of the visualization tool, a data processing module is developed to parse, clean and convert the received blockchain data. Data cleaning includes removing low-quality data such as duplication, anomalies, and missing data to improve the accuracy and completeness of the data. Data conversion includes converting data of different formats and sources into a unified structured format, such as JSON, Avro, etc. Data normalization normalizes numerical data and scales the value range to a preset threshold interval to facilitate comparison between different indicators. Data aggregation aggregates data according to dimensions such as time and equipment, such as calculating total power generation and average efficiency per day. Energy data is counted and mined using data analysis models, such as time series analysis, cluster analysis, association rule mining, and causal analysis. Time series analysis uses models such as ARIMA and Prophet to predict trends and detect anomalies in energy data. Cluster analysis uses algorithms such as K-means and DBSCAN to cluster devices or time periods to discover energy consumption patterns and abnormal behaviors. Association rule mining uses algorithms such as Apriori and FP-growth to discover association rules between different energy indicators. Causal analysis uses methods such as Granger causality test and Bayesian network to analyze causal relationships in energy systems. Through operations such as data aggregation and slicing, data indicators required for visualization are generated. Stream data processing frameworks (such as SparkStreaming and Flink) are used to calculate real-time data, such as comparing the changes in power generation efficiency before and after solar panels are adjusted, calculating the energy ratio of each event, and writing the calculation results into a visualization database to achieve real-time data updates. The stream data processing framework can receive and process energy data streams in real time, with latency as low as seconds, and supports features such as sliding windows and state management, making it easy to achieve real-time data aggregation and statistics. Taking Flink as an example, you can use DataStreamAPI to define data sources, conversion operations and output results, build a real-time computing DAG graph, and then monitor the running status of the job through Flink's WebUI. Develop a visual front-end interface, use Web component frameworks (such as Vue, React) to encapsulate charts, controls, etc. as independent components, use state management tools to uniformly manage the status of controls and charts, and realize data communication between components.Use visualization libraries (such as Echarts and Highcharts) to design chart components, including line charts, bar charts, pie charts, dashboards, etc. Select appropriate chart types according to the characteristics of different data indicators to display the changing trend, comparative relationship, and proportion distribution of energy data. In the front-end interface, develop interactive controls such as time filters, drop-down menus, and value range selectors, allowing users to independently select the data dimensions and ranges they want to view. Use event buses to implement interactions between controls and charts, such as triggering the re-rendering of charts when time filters change. Use routing frameworks to implement switching and navigation between different charts, provide multi-view data display functions, dynamically update visualization charts, and provide personalized data display functions. Optimize the performance of visualization tools, use data sharding, caching and other technologies to speed up data query and chart rendering. Shard large data sets according to dimensions such as time and device to improve the parallelism of data query and processing. Cache commonly used data indicators, intermediate results, etc. in memory or Redis to reduce repeated calculations and I / O operations. At the same time, methods such as lazy loading and incremental rendering are used to dynamically load data and render charts when the user scrolls or zooms, avoiding page freezes or crashes caused by loading too much data at one time. When the data is updated, only the changed parts are re-rendered to improve rendering efficiency and ensure the smooth operation of the visualization tool.
[0094] For example, the operation data of the energy system is obtained every 5 seconds through the REST API interface of the blockchain platform, and the data volume is about 100 per second. The InfluxDB time series database is used to store data, and the storage strategy is configured to save the data of the last 7 days with second-level accuracy and the data of 7 days ago with minute-level accuracy, which can accommodate 50 billion data. The data cleaning module detects anomalies on the data and uses the Isolation Forest algorithm to identify outliers. The confidence threshold is set to 0.95, and 5% of the abnormal data is removed. The data normalization module performs Min-Max normalization on indicators such as power generation and efficiency, and maps the values to the range of 0-1. The data aggregation module uses the streaming computing framework Flink to calculate the average power generation and efficiency of each solar panel according to a 10-minute sliding window, and writes the results to the Redis cache. The time series analysis module uses the Prophet algorithm to predict the trend of power generation. The training set is the data of the past 30 days, and the test set is the data of the next 7 days. The mean absolute percentage error (MAPE) is 5%. The cluster analysis module uses the DBSCAN algorithm to cluster the equipment energy consumption data, with the eps parameter set to 0.5 and the min_samples parameter set to 5, and a total of 3 energy consumption patterns are clustered. The association rule mining module uses the FP-growth algorithm, with a support threshold of 0.1 and a confidence threshold of 0.8, and obtains 10 high-confidence association rules. The visualization front-end is developed using the Vue framework, Vuex manages the state of the chart, and Echarts draws the chart, including 4 real-time updated dashboards and 5 interactive charts. Chart rendering uses Canvas technology to support smooth display of tens of thousands of data volumes. Redis is used to cache hot data, and memory LRU is used to cache cold data to improve query speed. The lazy loading technology dynamically requests data when the user scrolls the page, with 200 requests each time and a response time of less than 500ms. The incremental rendering technology only redraws the changed graphic elements when the data is updated, and the rendering time is optimized from 2 seconds to 0.5 seconds. After the above optimization, the visualization system can support 1,000 concurrent requests per second with a response time of less than 1 second.
[0095] like Figure 2 As shown, another embodiment of the present invention provides a green electricity control device based on blockchain, including an acquisition module 11, a prediction module 12, an adjustment module 13, and a recording module 14, wherein:
[0096] An acquisition module 11 is used to acquire historical operation data of a target area, wherein the historical operation data includes first energy consumption operation data within a first preset time period and second energy consumption operation data within a second preset time period;
[0097] A prediction module 12, configured to predict the first energy consumption operation data and the second energy consumption operation data based on a decision tree model and a moving average method, respectively, to obtain a corresponding energy consumption demand table;
[0098] An adjustment module 13, configured to dynamically adjust the energy ratio of the target area based on a multi-objective optimization method according to the energy consumption demand table and weather forecast information;
[0099] The recording module 14 is used to collect and record the actual energy consumption operation data in the target area after dynamic adjustment in real time through the blockchain.
[0100] The present invention discloses a green electricity regulation method based on blockchain, which analyzes the difference in energy demand for different events and time periods, monitors the coordinated operation of solar energy and fossil energy, and dynamically adjusts the energy ratio according to the energy consumption demand table and weather forecast information, providing a solution for large-scale sports stadiums or similar facilities that need to adjust energy use strategies according to different events and time periods. The present invention specifically solves the problem of how to effectively adjust the use of solar panels and fossil energy under different events and weather conditions to meet the energy needs of the venue while reducing environmental impact.
[0101] In general, the present invention effectively improves energy utilization efficiency, reduces environmental pollution, ensures energy demand for large-scale events, enhances environmental protection performance, and enhances the adaptability and flexibility of the energy system through an intelligent and automated energy management system.
[0102] like Figure 3 As shown, another embodiment of the present invention provides a computer device for green electricity regulation based on blockchain. The green electricity regulation device based on blockchain provided in the embodiment of the present invention includes a processor 21, a memory 22, and a computer program stored in the memory 22 and configured to be executed by the processor 21. When the processor 21 executes the computer program, the steps in the above-mentioned green electricity regulation method embodiment based on blockchain are implemented, for example Figure 1 or, when the processor 21 executes the computer program, the functions of the modules in the above-mentioned device embodiments are implemented, such as the acquisition module 11.
[0103] Exemplarily, the computer program may be divided into one or more modules, which are stored in the memory 22 and executed by the processor 21 to complete the present invention. The one or more modules may be a series of computer program instruction segments capable of completing specific functions, which are used to describe the execution process of the computer program in the blockchain-based green electricity regulation device. For example, the computer program may be divided into an analysis module 11, a regulation module 12, a collection module 13, a generation module 14, and a display module 15.
[0104] The green electricity regulation device based on blockchain may include, but is not limited to, a processor 21 and a memory 22. Those skilled in the art will appreciate that the schematic diagram is merely an example of a green electricity regulation processing device based on blockchain, and does not constitute a limitation on the green electricity regulation processing device based on blockchain, and may include more or fewer components than shown in the diagram, or a combination of certain components, or different components, for example, the green electricity regulation device based on blockchain may also include input and output devices, network access devices, buses, and the like.
[0105] The processor 21 may be a central processing unit (CPU), or other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), field-programmable gate arrays (FPGA) or other programmable logic devices, discrete gates or transistor logic devices, discrete hardware components, etc. A general-purpose processor may be a microprocessor or any conventional processor, etc. The processor 21 is the control center of the green electricity control device based on blockchain, and uses various interfaces and lines to connect various parts of the entire green electricity control device based on blockchain.
[0106] The memory 22 can be used to store the computer program and / or module, and the processor 21 realizes various functions of the green electricity control device based on blockchain by running or executing the computer program and / or module stored in the memory 22, and calling the data stored in the memory 22. The memory 22 can mainly include a program storage area and a data storage area, wherein the program storage area can store an operating system, an application required for at least one function (such as a sound playback function, an image playback function, etc.); the data storage area can store data created according to the use of the mobile phone (such as audio data, a phone book, etc.). In addition, the memory 22 can include a high-speed random access memory, and can also include a non-volatile memory, such as a hard disk, a memory, a plug-in hard disk, a smart memory card (Smart Media Card, SMC), a secure digital (Secure Digital, SD) card, a flash card (Flash Card), at least one disk storage device, a flash memory device, or other volatile solid-state storage devices.
[0107] Wherein, if the module integrated in the green electricity control device based on blockchain is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on such an understanding, the present invention implements all or part of the processes in the above-mentioned embodiment method, and can also be completed by instructing the relevant hardware through a computer program. The computer program can be stored in a computer-readable storage medium, and the computer program can implement the steps of the above-mentioned various method embodiments when executed by the processor. Wherein, the computer program includes computer program code, and the computer program code can be in source code form, object code form, executable file or some intermediate form. The computer-readable medium may include: any entity or device capable of carrying the computer program code, recording medium, U disk, mobile hard disk, disk, optical disk, computer memory, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), electric carrier signal, telecommunication signal and software distribution medium, etc.
[0108] Those skilled in the art can understand that all or part of the processes in the above-mentioned embodiments can be implemented by instructing the relevant hardware through a computer program, and the program can be stored in a computer-readable storage medium, and when the program is executed, it can include the processes of the embodiments of the above-mentioned methods. The storage medium can be a disk, an optical disk, a read-only memory (ROM) or a random access memory (RAM), etc.
[0109] Accordingly, an embodiment of the present invention provides a computer-readable storage medium, wherein the computer-readable storage medium includes a stored computer program, wherein when the computer program is running, the device where the computer-readable storage medium is located is controlled to perform the steps in the green electricity regulation method based on blockchain in the above embodiment, for example Figure 1 Steps S1 to S5 described in .
[0110] The above-mentioned embodiments only express several implementation methods of the present invention, and the description thereof is relatively specific and detailed, but it cannot be understood as limiting the scope of the patent of the present invention. It should be pointed out that, for ordinary technicians in this field, several variations and improvements can be made without departing from the concept of the present invention, which all belong to the protection scope of the present invention. Therefore, the protection scope of the patent of the present invention shall be subject to the attached claims.
Claims
1. A green electricity regulation method based on blockchain, characterized in that: The following steps are involved: Acquire historical operation data of the target area, wherein the historical operation data includes first energy consumption operation data within a first preset time period and second energy consumption operation data within a second preset time period; Based on a decision tree model and a moving average method, respectively, the first energy consumption operation data and the second energy consumption operation data are predicted to obtain a corresponding energy consumption demand table; the first energy consumption operation data and the second energy consumption operation data are predicted based on a decision tree model and a moving average method to obtain a corresponding energy consumption demand table, including: Performing cluster analysis on the first energy consumption operation data and the second energy consumption operation data using a K-means clustering algorithm, and dividing energy consumption patterns into different typical patterns according to the results of the cluster analysis; Training a decision tree model based on the energy consumption data corresponding to the different typical modes to obtain energy usage rules output by the trained decision tree model; Use the moving average method to make predictions and obtain proportional data reflecting the proportion of solar energy and fossil energy; Based on the proportion data, the energy usage pattern and the pre-acquired competition schedule data, the energy consumption demand table is obtained; According to the energy consumption demand table and weather forecast information, the energy ratio of the target area is dynamically adjusted based on a multi-objective optimization method; According to the energy consumption demand table and weather forecast information, the energy ratio of the target area is dynamically adjusted based on a multi-objective optimization method, including: Obtain weather forecast information, establish a correlation model between weather factors and solar power generation through support vector machine regression algorithm, and predict the hourly curve of solar power generation; Input the energy consumption demand table and the solar energy power generation hourly curve into a pre-built multi-objective optimization model to obtain corresponding first solar energy power generation plan data and second fossil energy power generation plan data; Construct an environmental protection influencing factor model based on the pre-set environmental protection index; Using the environmental impact factor model, respectively, the first power generation plan data and the second power generation plan data are corrected to obtain the corrected first power generation plan data and the second power generation plan data; adjusting based on the first power generation plan data and the second power generation plan data; The actual energy consumption operation data within the target area after dynamic adjustment is collected and recorded in real time through blockchain.
2. The green electricity regulation method based on blockchain according to claim 1 is characterized in that: The target area is a target venue, the first preset time period is a match period corresponding to the target venue, the second preset time period is an off-season corresponding to the target venue, and the energy consumption operation data includes at least solar energy data and fossil energy data.
3. The green electricity regulation method based on blockchain according to claim 1 is characterized in that: Before dynamically adjusting the energy ratio of the target area based on the multi-objective optimization method according to the energy consumption demand table and weather forecast information, the method further includes: Get weather forecast information; Based on the weather forecast information, a solar panel control signal is generated and sent to the new energy station, so that the new energy station can maximize the solar energy output.
4. The green electricity regulation method based on blockchain according to claim 3 is characterized in that: After maximizing the solar energy output of the new energy station, the method further includes: Monitor the adjustment information of solar panels and the efficiency of solar power generation in real time, continuously track the position and angle of solar panels and changes in solar power generation efficiency, and regularly update energy allocation strategies, including adjusting the advance reserve of solar energy or fossil energy.
5. The green electricity regulation method based on blockchain according to claim 1 is characterized in that: The actual energy consumption operation data in the target area after dynamic adjustment is collected and recorded in real time through blockchain, including: Use data visualization tools to display the information recorded in the blockchain.
6. A green electricity control device based on blockchain, characterized in that: Includes the following modules: An acquisition module, configured to acquire historical operation data of a target area, wherein the historical operation data includes first energy consumption operation data within a first preset time period and second energy consumption operation data within a second preset time period; A prediction module, used to predict the first energy consumption operation data and the second energy consumption operation data based on a decision tree model and a moving average method, respectively, to obtain a corresponding energy consumption demand table; the prediction of the first energy consumption operation data and the second energy consumption operation data based on a decision tree model and a moving average method, respectively, to obtain a corresponding energy consumption demand table, includes: Performing cluster analysis on the first energy consumption operation data and the second energy consumption operation data using a K-means clustering algorithm, and dividing energy consumption patterns into different typical patterns according to the results of the cluster analysis; Training a decision tree model based on the energy consumption data corresponding to the different typical modes to obtain energy usage rules output by the trained decision tree model; Use the moving average method to make predictions and obtain proportional data reflecting the proportion of solar energy and fossil energy; Based on the proportion data, the energy usage pattern and the pre-acquired competition schedule data, the energy consumption demand table is obtained; The adjustment module is used to dynamically adjust the energy ratio of the target area based on the multi-objective optimization method according to the energy consumption demand table and weather forecast information; the energy ratio of the target area is dynamically adjusted based on the multi-objective optimization method according to the energy consumption demand table and weather forecast information, including: Obtain weather forecast information, establish a correlation model between weather factors and solar power generation through support vector machine regression algorithm, and predict the hourly curve of solar power generation; Input the energy consumption demand table and the solar energy power generation hourly curve into a pre-built multi-objective optimization model to obtain corresponding first solar energy power generation plan data and second fossil energy power generation plan data; Construct an environmental protection influencing factor model based on the pre-set environmental protection index; Using the environmental impact factor model, respectively, the first power generation plan data and the second power generation plan data are corrected to obtain the corrected first power generation plan data and the second power generation plan data; adjusting based on the first power generation plan data and the second power generation plan data; The recording module is used to collect and record the actual energy consumption operation data in the target area after dynamic adjustment in real time through the blockchain.
7. A green electricity control device based on blockchain, characterized in that: It includes a memory, a processor, and a computer program stored in the memory and executable on the processor. When the processor executes the computer program, the blockchain-based green electricity regulation method as described in any one of claims 1 to 5 is implemented.
8. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the blockchain-based green electricity regulation method as described in any one of claims 1 to 5 is implemented.
Citation Information
Patent Citations
Multi-energy cooperative operation control method and system for village and town integrated energy system
CN117371738A
Resource scheduling system of AI intelligent computing center
CN117472587A
Green intelligent computing center energy efficiency optimization method and system
CN117539726A
Control system and method of new energy storage system
CN118249380A
Cloud resource automatic allocation system
CN118363765A
