Distributed energy optimization scheduling method and system
By combining support vector machines and long short-term memory networks with multi-objective optimization algorithms, the allocation of distributed energy resources is optimized in real time, solving the problem that traditional systems are difficult to deal with the volatility of distributed energy resources, and achieving efficient response and resource allocation of the energy management system. , ensuring the matching of energy supply and demand.
Patent Information
- Application Number
- CN202410772296.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-17
- Publication Date
- 2024-08-27
- Estimated Expiration
- 2044-06-17
AI Technical Summary
Traditional energy management systems are difficult to optimize and manage the volatility and unpredictability of distributed energy resources in real time, leading to energy waste and unstable power supply.
Using methods based on support vector machines and long short-term memory networks, combined with multi-objective optimization algorithms, real-time monitoring and adjustment of energy distribution, optimization of power output and load requirements of energy nodes, and automatic management of energy transactions and scheduling through blockchain smart contracts.
It significantly improves the real-time response capability and resource allocation efficiency of the energy management system, reduces energy waste, ensures the optimal match between energy supply and demand, and improves overall energy utilization.
Smart Images

Figure CN118350609B
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of energy scheduling, and in particular to a distributed energy optimization scheduling method and system. Background Art
[0002] With the continuous growth of energy demand and the rapid development of renewable energy technologies, traditional energy management systems face major challenges, especially in achieving efficient matching between energy supply and demand. Distributed energy resources (such as wind, solar, and biomass) are increasingly valued for their clean and renewable characteristics, but the volatility and unpredictability of these resources bring complexity to energy scheduling. In addition, due to the geographical dispersion of energy production, a method or system is needed that can optimize and manage energy flows in distributed networks in real time.
[0003] Currently, when dealing with these problems, they usually rely on central control models or scheduling algorithms based on simple rules. These methods cannot fully utilize real-time data for accurate prediction and dynamic optimization. For example, existing systems often cannot effectively predict changes in energy demand and supply, resulting in energy waste and unstable power supply. Summary of the invention
[0004] In view of the above deficiencies in the prior art, the purpose of the present invention is to provide a distributed energy optimization scheduling method and system, which can monitor in real time, automatically adjust and optimize energy distribution, improve energy utilization efficiency, reduce operating costs, and enhance the environmental sustainability of the system.
[0005] In order to achieve the above object, the present invention provides a distributed energy optimization scheduling method, comprising:
[0006] S10, obtaining real-time environmental condition data of each node, and inputting the capacity prediction model based on the support vector machine, and outputting the maximum output power of each node, wherein the capacity prediction model is obtained after training based on the historical environmental condition data and the corresponding maximum output power data;
[0007] S20, obtaining the data sequence of environmental condition data, output power and load demand of each node from the historical moment to the current moment, inputting the data sequence into the trained long short-term memory network model, and outputting the predicted output power and predicted load demand of each node in the future time period;
[0008] S30, taking minimization of total energy cost and maximization of total environmental benefit as optimization objectives, determining the energy adjustment strategy of each energy node based on the predicted output power based on a multi-objective optimization algorithm as the optimal energy allocation scheme to meet the predicted load demand of all energy nodes in the future time period, wherein each energy node is limited by a maximum output power;
[0009] S40, sending the energy adjustment strategy of each node to the control unit of the node, so that each node can perform corresponding power adjustment;
[0010] Among them, environmental condition data include temperature, wind speed and sunshine intensity. Energy adjustment strategies include adjusting power generation, adjusting the charging and discharging strategies of power storage equipment, and adjusting the energy exchange with other energy nodes. The long short-term memory network model is obtained after training based on a data sequence with known output power and load demand.
[0011] As a preferred solution of the present invention, before S10, it also includes: S01, obtaining historical performance data of each energy node from a database, the historical performance data including maximum power generation and environmental condition data;
[0012] S02. Construct a capability prediction model based on support vector machine. The capability prediction model is defined by the following optimization problem:
[0013] ;
[0014] The constraints are:
[0015] ;
[0016] Among them, w is the weight vector, b is the bias term, is the slack variable, C is the regularization parameter, is the mapping function, y i is the target value, corresponding to the performance data x i The maximum output power label or value, n is the total number of nodes;
[0017] S03. Taking the environmental condition data as input and the determined maximum power generation as a label, the capacity prediction model is trained, and the cross-validation method is used to select the optimal regularization parameter C and the kernel function of the support vector machine to obtain the trained capacity prediction model.
[0018] As a preferred solution of the present invention, the data sequence of environmental condition data, output power and load demand of each node from the historical moment to the current moment is obtained in S20, including:
[0019] S2011. Use current sensors and voltage sensors to obtain real-time voltage and current data, and calculate the power output of the node in real time. The power formula is: P=VI, where P represents power, V represents voltage, and I represents current; S2012. Use temperature sensors, anemometers and sunshine sensors to record and analyze environmental condition data; S2013. Continuously monitor the energy load demand of each node and obtain load demand data through load monitors; S2014. Perform preliminary processing on the collected data at the Internet of Things gateway of each node, and the preliminary processing includes data compression and encryption; S2015. Use a secure wireless network connection to transmit the processed data to the central processing unit for data sequence generation; wherein, the secure wireless network connection includes the use of message queue telemetry transmission or restricted application protocol transmission.
[0020] As a preferred solution of the present invention, in S30, the total energy cost calculation method includes:
[0021] ;
[0022] The total environmental benefit calculation method includes:
[0023] ;
[0024] Among them, C total is the total energy cost, c i is the unit energy cost of the i-th energy node, B total is the total environmental benefit, b i is the environmental benefit score of the energy output per unit of energy at the i-th energy node, E i The initial value is the estimated energy output of the i-th energy node in the future time period, and the subsequent value is the energy output after the energy adjustment strategy is executed in the multi-objective optimization algorithm process.
[0025] As a preferred embodiment of the present invention, the multi-objective optimization algorithm is a Pareto genetic algorithm. Accordingly, S30 includes: S301, setting the population size, number of iterations, crossover rate and mutation rate of the Pareto genetic algorithm; S302, determining the initial energy adjustment strategy, and executing the Pareto genetic algorithm to find the best solution set through iteration, and the solution set is expressed as a Pareto front, in which each solution represents a potential optimal energy allocation plan; S303, selecting one or more solutions from the Pareto front as the final energy allocation plan, which is used to ensure that the allocation plan can meet the predicted load demand of each node, and at the same time achieve the optimal balance between cost and environmental benefits.
[0026] As a preferred solution of the present invention, S40 includes: S401, encoding and encrypting the energy adjustment strategy, the encryption method includes TLS or SSL; S402, using a TCP / IP-based network communication protocol to send the encrypted data packet to the control unit of each energy node through the Internet of Things communication network, the communication protocol includes MQTT or CoAP; S403, after the control unit of each energy node receives the data packet, it decrypts and parses the data to extract the specific energy adjustment strategy; S404, the control unit of each energy node adjusts the actual output of each node according to the energy adjustment strategy.
[0027] As a preferred solution of the present invention, after S40, S50 is further included, using a blockchain-based smart contract to automatically manage all energy transactions and scheduling decisions in S40, and S50 includes:
[0028] S501. Create and deploy smart contracts on the blockchain platform. Smart contracts are written to be able to execute and verify the logic and rules of energy trading and scheduling decisions. S502. Specific energy trading rules are encoded in smart contracts. Energy trading rules include energy pricing, trading conditions, trading time limits and default handling. Energy trading rules are automatically adjusted based on pre-defined parameters and real-time market data. S503. The logic of energy scheduling is encoded in smart contracts. The logic includes demand response measures, priority allocation and energy reallocation in emergency situations. S504. When executing energy transactions, each transaction detail is automatically recorded on the blockchain, and the transaction verification results are broadcast to all network participants in real time through the blockchain network. S505. Smart contracts automatically execute the results of transactions and scheduling, and the results include automatic deductions, energy distribution and adjustment of energy output.
[0029] As a preferred solution of the present invention, after S40, it also includes S60, continuously monitoring the actual output power and the actual load demand after the implementation of the energy adjustment strategy, and adjusting the parameters of the long short-term memory network model and the multi-objective optimization algorithm according to the deviation between the predicted output power and the predicted load demand, S60 includes:
[0030] S601. Real-time monitoring and recording of actual energy output and actual load demand through sensors installed at each energy node; S602. Compare the actual data monitored by S601 with the expected data calculated in S30, and calculate the deviation between the actual data and the expected data; S603. When the deviation between the actual data and the expected data exceeds a preset threshold, trigger the automatic adjustment mechanism; S604. Analyze the cause of the deviation through the data analysis module, and the cause of the deviation includes environmental changes, equipment performance degradation or prediction model accuracy problems; S605. According to the analysis results of S604, adjust the parameters of the long short-term memory network model or the multi-objective optimization algorithm, and the parameters include the learning rate, number of layers or number of neurons of the long short-term memory network model, and the weight distribution or objective function in the multi-objective optimization algorithm; S606. Update the adjusted long short-term memory network model and multi-objective optimization algorithm parameters, and retrain the long short-term memory network model; S607. Use the updated model for energy output forecasting and load demand calculation for the next cycle.
[0031] As a preferred solution of the present invention, S30 also includes: S304, continuously acquiring real-time energy market data, the energy market data including the real-time price and market demand of energy; S305, inputting the energy market data from the historical moment to the current moment into a pre-trained autoregressive moving average model to obtain the predicted value of the energy market data for the future time period; S306, determining the dynamic adjustment factor according to the predicted value of the energy market data for the future time period; S307, adjusting the energy adjustment strategy of the corresponding node in the multi-objective optimization algorithm process according to the size of the dynamic adjustment factor.
[0032] The present invention also provides a distributed energy optimization scheduling system, comprising:
[0033] The first processing module is used to obtain the real-time environmental condition data of each node, and input the capacity prediction model based on the support vector machine to output the maximum output power of each node, wherein the capacity prediction model is obtained after training based on the historical environmental condition data and the corresponding maximum output power data;
[0034] The second processing module is used to obtain the data sequence of environmental condition data, output power and load demand of each node from the historical moment to the current moment, input the data sequence into the trained long short-term memory network model, and output the predicted output power and predicted load demand of each node in the future time period;
[0035] A strategy generation module is used to determine the energy adjustment strategy of each energy node based on the predicted output power based on a multi-objective optimization algorithm with the optimization objectives of minimizing the total energy cost and maximizing the total environmental benefit, as the optimal energy allocation scheme to meet the predicted load demand of all energy nodes in the future time period, where each energy node is limited by the maximum output power;
[0036] The strategy allocation module is used to send the energy adjustment strategy of each node to the control unit of the node, so that each node can perform corresponding power adjustment.
[0037] Among them, environmental condition data include temperature, wind speed and sunshine intensity. Energy adjustment strategies include adjusting power generation, adjusting the charging and discharging strategies of power storage equipment, and adjusting the energy exchange with other energy nodes. The long short-term memory network model is obtained after training based on a data sequence with known output power and load demand.
[0038] The beneficial effects of the present invention are as follows: by integrating deep learning algorithms and multi-objective optimization technologies, the present invention significantly improves the real-time response capability and resource allocation efficiency of the energy management system. By accurately predicting the energy output and load demand of each energy node and adjusting the energy allocation strategy in real time, it can effectively reduce energy waste and adapt to the rapid changes in the market and environment, and ensure the optimal match between energy supply and demand, thereby improving overall energy utilization. BRIEF DESCRIPTION OF THE DRAWINGS
[0039] Figure 1 This is one of the flow charts of the distributed energy optimization scheduling method according to an embodiment of the present invention;
[0040] Figure 2 is a schematic diagram of a multi-objective optimization algorithm flow chart of an embodiment of the present invention;
[0041] Figure 3 This is the second flow chart of the distributed energy optimization scheduling method according to an embodiment of the present invention;
[0042] Figure 4 It is a structural diagram of a distributed energy optimization scheduling system according to an embodiment of the present invention. DETAILED DESCRIPTION
[0043] The present invention is further described in detail below in conjunction with the accompanying drawings and embodiments.
[0044] Figure 1 is one of the flow charts of the distributed energy optimization scheduling method according to an embodiment of the present invention. Figure 1 As shown, the present invention provides a distributed energy optimization scheduling method, comprising:
[0045] S10. Obtain the real-time environmental condition data of each node, and input the capacity prediction model based on the support vector machine to output the maximum output power of each node, wherein the capacity prediction model is obtained after training based on the historical environmental condition data and the corresponding maximum output power data; the environmental condition data includes temperature, wind speed and sunshine intensity.
[0046] The energy type, maximum output capacity, current status and historical performance data of each energy node can be obtained in advance to provide the basic information required for decision-making for the entire system. Environmental condition data includes equipment temperature, wind speed and sunshine intensity. Before S10, IoT devices for data collection, including current sensors, voltage sensors, temperature sensors, anemometers and sunshine sensors, can be installed in advance for each energy node to collect the node's real-time power generation and real-time environmental condition data.
[0047] S20, obtaining the environmental condition data, output power and load demand data sequence of each node from the historical moment to the current moment, inputting the data sequence into the trained long short-term memory network model, and outputting the predicted output power and predicted load demand of each node in the future time period. Accordingly, the long short-term memory network model is obtained after training based on the data sequence of known output power and load demand.
[0048] Specifically, IoT devices are installed at each energy node, including current sensors and voltage sensors to measure and record output voltage and current, temperature sensors to record equipment operating temperature, anemometers to measure wind speed, sunshine sensors to record sunshine intensity, and load monitors to measure real-time energy demand.
[0049] The IoT devices collect environmental condition data, the current output power of each energy node, and real-time data on load demand, and transmit the data to the central processing unit for processing. The central processing unit uses a preset deep learning algorithm based on the long short-term memory network model to predict the energy output and load demand of each energy node in the future time period, such as the next 24 hours, based on the data sequence of environmental condition data, output power, and load demand.
[0050] S30. Taking minimization of total energy cost and maximization of total environmental benefit as optimization goals, the energy adjustment strategy of each energy node based on the predicted output power is determined based on a multi-objective optimization algorithm as the optimal energy allocation plan to meet the predicted load demand of all energy nodes in future time periods, where each energy node is limited by a maximum output power.
[0051] Apply the preset multi-objective optimization algorithm and calculate the optimal energy allocation plan between energy nodes based on the prediction results of S20 to minimize the total energy cost of all nodes and maximize the total environmental benefits. The energy adjustment strategy includes adjusting the power generation, adjusting the charging and discharging strategy of the power storage equipment, and adjusting the energy exchange with other energy nodes.
[0052] S40: Send the energy adjustment strategy of each node to the control unit of the node, so that each node can perform corresponding power adjustment.
[0053] Specifically, the optimized energy allocation scheme in S30 is sent to the control unit of each energy node through the security network to adjust the actual output of each node to meet the predicted demand fluctuations.
[0054] By optimizing energy distribution and improving the utilization of renewable energy, the goal of supporting environmental sustainability can be achieved. The multi-objective optimization algorithm not only ensures economic benefits, but also takes into account environmental impacts, such as reducing greenhouse gas emissions and the release of other pollutants. In addition, improving the efficiency of renewable energy use helps reduce dependence on fossil fuels.
[0055] In this embodiment, before S10, the following steps are also included:
[0056] S01. Obtain historical performance data of each energy node from the database, where the historical performance data includes maximum power generation and environmental condition data;
[0057] S02. Construct a capability prediction model based on support vector machine. The capability prediction model is defined by the following optimization problem:
[0058] ;
[0059] The constraints are:
[0060] ;
[0061] Among them, w is the weight vector, b is the bias term, is the slack variable, C is the regularization parameter, is the mapping function, y i is the target value, corresponding to the performance data x i The maximum output power label or value, n is the total number of nodes.
[0062] S03. Taking the environmental condition data as input and the determined maximum power generation as a label, the capacity prediction model is trained, and the cross-validation method is used to select the optimal regularization parameter C and the kernel function of the support vector machine to obtain the trained capacity prediction model.
[0063] Before S01, all energy nodes in the system can be identified, including assigning a unique identifier to each node and recording the node's geographic location information and node type. The node types include wind power generation, solar power generation, and biomass power generation. Then, the historical performance data of each energy node is received and stored in the database.
[0064] In S01, the historical performance data of each energy node can be directly obtained from the database. Subsequently, the process of preprocessing the data collected in S01 can be included, and the preprocessing includes data cleaning (removing outliers and missing data), standardization (converting the data into a form with zero mean and unit variance), and feature selection (selecting the key features that best represent the node performance). In S03, based on the data of S01, the constructed support vector machine model is trained for detection in S10.
[0065] Among them, w is the weight vector, which is the normal vector of the hyperplane and determines the direction of the hyperplane. In the performance prediction of energy nodes, each component of this vector can be understood as the importance of the corresponding input feature (such as temperature, wind speed, sunshine intensity, etc.). b is the bias term, which is a scalar that adjusts the distance between the hyperplane and the origin, which affects the position of the hyperplane to divide different performance categories. is a slack variable that allows some data points to be on the wrong side of the separation boundary, which is useful in practical applications because perfect separation is not always possible, especially in the case of noise and outliers that may exist in energy node data. C is a regularization parameter, which is a positive number used to balance the complexity of the model with the degree of fit to the training data. A larger C value will try to correctly classify all training samples (which may lead to overfitting), while a smaller C value will enhance the generalization ability of the model. is the mapping function, which transforms the data point x in the original input space i Mapping to a higher-dimensional space is usually used to process nonlinearly separable data and can help the model capture complex nonlinear relationships, such as the relationship between node output capacity and environmental factors. i is the target value, which corresponds to the performance data x i Labels or values, such as a node’s maximum output capacity or expected lifetime, are used to train a model in supervised learning to predict future data.
[0066] During the training process, the cross-validation method can be used to select the best regularization parameter C and kernel function (such as radial basis function RBF, polynomial kernel, etc.) to optimize the prediction and generalization capabilities of the model.
[0067] Then, the trained support vector machine model is applied in S10 to predict the newly collected real-time performance data of the nodes to determine the maximum output power of each node. The prediction results can help formulate more accurate energy management and maintenance plans. At the same time, this method can effectively handle nonlinear and high-dimensional data to ensure the accuracy of the prediction.
[0068] In this embodiment, S20 may specifically include:
[0069] S201, collect and integrate real-time data and historical data, including node power output data, environmental conditions (data temperature, wind speed, sunshine intensity) and load demand data;
[0070] S202, performing data preprocessing operations on the data collected in S201, including normalization processing to unify the scale of the data, and filling in missing values to ensure data quality;
[0071] S203. Build a deep learning model, specifically use the long short-term memory network (LSTM) for time series prediction. The long short-term memory network model is particularly suitable for time series data prediction because it can capture the long-term dependencies in the data. The formula of the long short-term memory network is:
[0072] Forget Gate: ;
[0073] Input Gate: ;
[0074] Output Gate: ;
[0075] New memory unit: ;
[0076] Final memory unit: ;
[0077] Hidden state: ,in, is the Sigmoid activation function, which is used to compress the value to between 0 and 1, indicating the proportion of information retained; W f is the weight matrix of the forget gate; is the combination of the hidden state of the previous time step and the input data of the current time step; b f is the bias term of the forget gate; h t-1 is the hidden state of the previous time step, which contains the information of the previous time step; x t is the input of the current time step, such as the current power output, environmental conditions (temperature, wind speed, etc.); W i , W C is the weight matrix of the input gate and the new memory unit; b i , bC is the bias term of the input gate and the new memory unit; tanh is the hyperbolic tangent activation function, which is used to normalize the data to between 1 and 1; W o is the weight matrix of the output gate; b o is the bias term of the output gate; C t-1 is the memory unit of the previous time step; * represents the multiplication operation between elements;
[0078] S204, using the long short-term memory network model in S203, inputting the time series data processed in S202, and training the model to learn the time dependency of the data and the dynamic relationship between nodes;
[0079] S205. Use the trained long short-term memory network model to predict the energy output and load demand of each node in the next 24 hours to ensure efficient and accurate energy scheduling.
[0080] The above steps illustrate how to use deep learning technology, especially LSTM networks, to process and predict energy output and load demand in distributed energy systems. By using historical and real-time data, the LSTM model can accurately predict future energy demand and output, providing scientific decision support for energy scheduling. This method fully utilizes the advantages of deep learning and improves the accuracy of prediction and the response speed of the system.
[0081] In this embodiment, the data sequence of environmental condition data, output power and load demand of each node from the historical moment to the current moment is obtained in S20, including:
[0082] S2011. Use current sensors and voltage sensors to obtain real-time voltage and current data, and calculate the power output of the node in real time. The power formula is: P=VI, where P represents power, V represents voltage, and I represents current;
[0083] S2012. Record and analyze environmental condition data using temperature sensors, anemometers, and sunshine sensors;
[0084] S2013. Continuously monitor the energy load demand of each node, and obtain load demand data through a load monitor for subsequent energy allocation and optimization;
[0085] S2014. Preliminary processing of the collected data is performed at the IoT gateway of each node, wherein the preliminary processing includes data compression and encryption to ensure data security and integrity during transmission;
[0086] S2015. Use a secure wireless network connection to transmit the processed data to a central processing unit for generating a data sequence.
[0087] Among them, secure wireless network connections include the use of Message Queuing Telemetry Transport (MQTT) or Constrained Application Protocol (CoAP) transmission. These protocols support efficient and stable data transmission and are particularly suitable for large-scale data processing in distributed systems.
[0088] In this embodiment, in S30, the total energy cost calculation method includes:
[0089] ;
[0090] The total environmental benefit calculation method includes:
[0091] ;
[0092] Among them, C total is the total energy cost, c i is the unit energy cost of the i-th energy node, B total is the total environmental benefit, b i is the environmental benefit score of the energy output per unit of energy at the i-th energy node, E i The initial value is the estimated energy output of the i-th energy node in the future time period, and the subsequent value is the energy output after the energy adjustment strategy is executed in the multi-objective optimization algorithm process.
[0093] C total Indicates the total cost of all energy nodes in the system within a specific period of time, such as the next 24 hours, c i It can be determined based on the cost differences of different energy types (such as wind energy, solar energy, etc.) and regions. i At the beginning, the amount is obtained based on the predicted data in S20, and then each node calculates the temporary energy adjustment strategy after energy adjustment according to the multi-objective optimization algorithm, until finally obtaining the energy adjustment strategy in S30 that minimizes the total energy cost and maximizes the total environmental benefit. total The calculation method is to multiply the environmental benefit of each node by its energy output and then add them up to evaluate the environmental friendliness of the entire system. i This score reflects the positive environmental impact of producing the energy, such as reduced carbon dioxide emissions or other pollutants.
[0094] In this embodiment, the multi-objective optimization algorithm is a Pareto genetic algorithm. Accordingly, S30 includes:
[0095] S301, setting the population size, number of iterations, crossover rate and mutation rate of the Pareto genetic algorithm;
[0096] S302, determining an initial energy adjustment strategy, and executing a Pareto genetic algorithm to find an optimal solution set through iteration, where the solution set is represented by a Pareto frontier, where each solution represents a potential optimal energy allocation scheme;
[0097] S303. Select one or more solutions from the Pareto front as the final energy allocation scheme to ensure that the allocation scheme can meet the predicted load demand of each node and achieve an optimal balance between cost and environmental benefits.
[0098] Figure 2 : is a schematic diagram of a multi-objective optimization algorithm flow chart of an embodiment of the present invention. Figure 2 As shown, the embodiment of the present invention applies the Pareto genetic algorithm to solve the defined optimization problem. The algorithm can balance multiple objectives and find the optimal energy allocation solution, that is, find the best trade-off point between cost and environmental benefit. The above steps explain in detail how to use the multi-objective optimization algorithm to solve the optimization problem of cost and environmental benefit in energy distribution. By accurately defining the objective function and reasonably configuring the algorithm parameters, and finding the best solution through the Pareto optimization method, this method not only improves the economy and environmental protection of energy management, but also enhances the sustainability of the entire energy system.
[0099] In this embodiment, S40 includes:
[0100] S401, encoding and encrypting the energy adjustment strategy, where the encryption method includes TLS or SSL;
[0101] S402, using a TCP / IP-based network communication protocol to send the encrypted data packet to the control unit of each energy node through the Internet of Things communication network, the communication protocol including MQTT or CoAP;
[0102] S403, after receiving the data packet, the control unit of each energy node decrypts and analyzes the data to extract a specific energy adjustment strategy;
[0103] S404. The control unit of each energy node adjusts the actual output of each node according to the energy adjustment strategy.
[0104] The optimal energy allocation plan is obtained from S30, which lists in detail the specific energy values and time distribution that each energy node should produce in the future, such as within 24 hours. S401 encodes and encrypts the optimal energy allocation plan to ensure the security and confidentiality of data during transmission. Specifically, encryption technology TLS (Transport Layer Security Protocol) or SSL (Secure Sockets Layer) can be used to ensure that data is protected from unauthorized access and tampering during transmission. The communication protocol in S402 selects MQTT or CoAP, which are optimized for low-bandwidth and high-latency environments and are suitable for remote energy management applications. The control unit in S404 adjusts the actual output of each node according to the received instructions, including adjusting the power generation, the charging and discharging strategy of the storage device, and the energy exchange with the energy node.
[0105] The above steps elaborate on how to safely and efficiently transmit the optimized energy distribution plan to each energy node and ensure that each node adjusts its energy output according to the latest instructions. In this way, the optimal implementation of energy distribution can be ensured while maintaining the high security and responsiveness of the system.
[0106] In this embodiment, after S40, S50 is also included, using a blockchain-based smart contract to automatically manage all energy transactions and scheduling decisions in S40, and S50 includes:
[0107] S501. Create and deploy smart contracts on the blockchain platform, where the smart contracts are written to be able to execute and verify the logic and rules of energy trading and scheduling decisions;
[0108] S502. Encode specific energy trading rules in the smart contract. The energy trading rules include energy pricing, trading conditions, trading time limits and default handling. The energy trading rules are automatically adjusted based on pre-defined parameters and real-time market data.
[0109] S503, the logic of energy dispatch encoded in the smart contract, including demand response measures, priority allocation, and energy reallocation in emergency situations;
[0110] S504. When executing energy transactions, each transaction detail is automatically recorded on the blockchain, and the transaction verification results are broadcast to all network participants in real time through the blockchain network;
[0111] S505. Smart contracts automatically execute transactions and scheduling results, including automatic deductions, energy distribution, and adjustment of energy output.
[0112] Existing solutions also have shortcomings in ensuring the security and transparency of transactions, which is particularly critical in the operation of energy markets. These logics in S503 ensure that energy distribution can be automatically adjusted to meet real-time needs when system load changes. In S504, the distributed ledger technology of blockchain is used to ensure the immutability and transparency of records, increase trust and reduce transaction costs, and ensure the transparency and verifiability of transactions. In S505, transactions and scheduling decisions are ensured to be implemented quickly and efficiently.
[0113] The embodiment of the present invention uses blockchain-based smart contracts to automatically manage all energy transactions and scheduling decisions in S40, ensuring the transparency of transactions and the immutability of data. The use of blockchain-based smart contract technology enhances the security and transparency of energy transactions. Transactions and scheduling decisions are automatically executed through smart contracts. All transaction records are recorded on the blockchain in an immutable manner, ensuring the integrity and traceability of data. This transparent transaction mechanism not only reduces the problem of distrust between the two parties to the transaction, but also reduces management and operating costs, making the operation of the energy market more open and fair.
[0114] In this embodiment, after S50 (S50 may not be adopted, in which case S60 is located after S40), S60 is also included, continuously monitoring the actual output power and the actual load demand after the implementation of the energy adjustment strategy, and adjusting the parameters of the long short-term memory network model and the multi-objective optimization algorithm according to the deviation between the predicted output power and the predicted load demand. Figure 3 This is a second flow chart of the distributed energy optimization scheduling method according to an embodiment of the present invention, which is a flow chart including S50 and S60. S60 includes:
[0115] S601, monitor and record the actual output power and actual load demand in real time through sensors installed at each energy node;
[0116] S602, comparing the actual data monitored in S601 with the expected data calculated in S30, and calculating the deviation between the actual data and the expected data;
[0117] S603, when the deviation between the actual data and the expected data exceeds a preset threshold, triggering an automatic adjustment mechanism;
[0118] S604, analyzing the causes of the deviation through the data analysis module, where the causes of the deviation include environmental changes, equipment performance degradation, or insufficient accuracy of the prediction model;
[0119] S605. According to the analysis result of S604, adjust the parameters of the long short-term memory network model or the multi-objective optimization algorithm, the parameters including the learning rate, the number of layers or the number of neurons of the long short-term memory network model, and the weight distribution or the objective function in the multi-objective optimization algorithm;
[0120] S606, updating the adjusted long short-term memory network model and multi-objective optimization algorithm parameters, and retraining the long short-term memory network model;
[0121] S607: Use the updated model to predict output power and load demand for the next cycle.
[0122] The above steps describe in detail how to continuously monitor and analyze the deviation between actual energy output and the predetermined load, and how to automatically adjust and optimize the deep learning and multi-objective optimization algorithms based on these deviations. This process ensures the adaptive ability of the energy management system, improves the accuracy of prediction and the efficiency of resource allocation, and can more effectively cope with the uncertainties in the changing environment and actual operation. This method utilizes advanced data analysis technology to ensure the continuous optimization and efficient operation of the energy management system. The embodiment of the present invention automatically adjusts the preset deep learning and multi-objective optimization algorithms by continuously monitoring the deviation between the actual energy output and the load after implementation in S40, thereby improving the accuracy and adaptability of prediction and scheduling.
[0123] In this embodiment, S30 further includes:
[0124] S304, continuously acquiring real-time energy market data, the energy market data including real-time energy prices and market demand;
[0125] S305, inputting the energy market data from the historical moment to the current moment into the pre-trained autoregressive moving average model to obtain the predicted value of the energy market data in the future time period;
[0126] S306. Dynamically adjust the factor according to the predicted value of energy market data in the future time period;
[0127] S307. According to the size of the dynamic adjustment factor, the energy adjustment strategy of the corresponding node in the multi-objective optimization algorithm is adjusted accordingly.
[0128] Specifically, S30 also includes a dynamic market adjustment mechanism for dynamically adjusting energy allocation according to the real-time price and demand in the energy market. The dynamic market adjustment mechanism includes:
[0129] Real-time monitoring of energy market data, including the instantaneous price of energy t and current market demand t The energy market data is specifically obtained by connecting to the API (application programming interface) of the energy market trading platform.
[0130] Based on the collected market data, the expected price fluctuations and demand changes are calculated, and the pre-trained autoregressive moving average model (ARIMA) is used to predict the price in the short term. and demand The specific formula is:
[0131] ;
[0132] ;
[0133] Among them, P tis the energy market price at time t, which is the real-time or most recently recorded energy selling price and can be obtained through market data; D t is the market demand at time t, which represents the total energy demand at time t, usually expressed in megawatt-hours (MWh); is the energy market price at the predicted time t+1, which is the future price predicted based on historical data and time series analysis methods; The market demand at the predicted time t+1 is a forecast of future energy demand, also based on historical data and statistical models; The parameters are: These are the coefficients of the autoregressive (AR) model describing the impact of the prices in the previous p periods on the current price forecast, each Represents the contribution weight of price data with different time delays to the current price prediction; The parameters are these are the coefficients of the moving average (MA) model, which are used to describe the impact of the demand in the previous q periods on the current demand forecast. Each Represents the contribution weight of demand data with different time delays to the current demand forecast; and These are error terms, representing random fluctuations that the model fails to explain; they reflect forecast errors due to external factors or information that the model fails to capture.
[0134] Integrate the predicted price and demand changes into the multi-objective optimization algorithm to adjust the energy allocation strategy by introducing dynamic adjustment factors To achieve this, the adjustment factor Price sensitivity and demand response are combined to optimize energy distribution. The specific formula is: ,in, and represents the change in price and demand, and α and β are weight factors used to adjust the impact of price and demand changes on the strategy.
[0135] In 307 according to Adjust energy distribution to minimize costs and maximize benefits. Specific adjustment plans include increasing or decreasing energy output at specific nodes (i.e., changing energy adjustment strategies) to increase supply when market prices are high or reduce excess capacity when prices are low. The specific implementation process can be carried out by technical personnel in this field as needed.
[0136] like Figure 4 As shown, the present invention further provides a distributed energy optimization scheduling system, including: a first processing module 401, a second processing module 402, a strategy generation module 403 and a strategy allocation module 404.
[0137] The first processing module 401 is used to obtain the real-time environmental condition data of each node, and input the capacity prediction model based on the support vector machine to output the maximum output power of each node, wherein the capacity prediction model is obtained after training based on the historical environmental condition data and the corresponding maximum output power data;
[0138] The second processing module 402 is used to obtain the data sequence of environmental condition data, output power and load demand of each node from the historical moment to the current moment, input the data sequence into the trained long short-term memory network model, and output the predicted output power and predicted load demand of each node in the future time period;
[0139] The strategy generation module 403 is used to determine the energy adjustment strategy of each energy node based on the predicted output power based on the multi-objective optimization algorithm with the optimization objectives of minimizing the total energy cost and maximizing the total environmental benefit as the optimal energy allocation scheme to meet the predicted load demand of all energy nodes in the future time period, wherein each energy node is limited by the maximum output power;
[0140] The strategy allocation module 404 is used to send the energy adjustment strategy of each node to the control unit of the node, so that each node can perform corresponding power adjustment.
[0141] Among them, environmental condition data include temperature, wind speed and sunshine intensity. Energy adjustment strategies include adjusting power generation, adjusting the charging and discharging strategies of power storage equipment, and adjusting the energy exchange with other energy nodes. The long short-term memory network model is obtained after training based on a data sequence with known output power and load demand.
[0142] The distributed energy optimization and scheduling system provided in the embodiment of the present invention has the same implementation principle and technical effects as those in the aforementioned distributed energy optimization and scheduling method embodiment. For the sake of brief description, for matters not mentioned in the distributed energy optimization and scheduling system embodiment, reference may be made to the corresponding contents in the aforementioned distributed energy optimization and scheduling method embodiment.
[0143] This embodiment also provides a computer-readable storage medium, such as flash memory, hard disk, multimedia card, card-type memory (for example, SD or DX memory, etc.), random access memory (RAM), static random access memory (SRAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), programmable read-only memory (PROM), magnetic memory, disk, optical disk, server, App application store, etc., on which a computer program is stored, and the program realizes corresponding functions when executed by the processor. The computer-readable storage medium of this embodiment realizes the distributed energy optimization scheduling method of the method embodiment when executed by the processor.
Claims
1. A distributed energy optimization scheduling method, characterized in that: include: S10, obtaining real-time environmental condition data of each node, and inputting the capacity prediction model based on the support vector machine, and outputting the maximum output power of each node, wherein the capacity prediction model is obtained after training based on the historical environmental condition data and the corresponding maximum output power data; S20, obtaining the data sequence of environmental condition data, output power and load demand of each node from the historical moment to the current moment, inputting the data sequence into the trained long short-term memory network model, and outputting the predicted output power and predicted load demand of each node in the future time period; S30, taking minimization of total energy cost and maximization of total environmental benefit as optimization objectives, determining the energy adjustment strategy of each energy node based on the predicted output power based on a multi-objective optimization algorithm as the optimal energy allocation scheme to meet the predicted load demand of all energy nodes in the future time period, wherein each energy node is limited by a maximum output power; S40, sending the energy adjustment strategy of each node to the control unit of the node, so that each node can perform corresponding power adjustment; Among them, environmental condition data include temperature, wind speed and sunshine intensity, energy adjustment strategy includes adjusting power generation, adjusting charging and discharging strategy of power storage equipment and adjusting energy exchange with other energy nodes, and long short-term memory network model is obtained after training based on data sequence of known output power and load demand; Before S10, it also includes: S01. Obtain historical performance data of each energy node from a database, where the historical performance data includes maximum power generation and environmental condition data; S02. Construct a capability prediction model based on support vector machine. The capability prediction model is defined by the following optimization problem: ; The constraints are: ; Among them, w is the weight vector, b is the bias term, is the slack variable, C is the regularization parameter, is the mapping function, y i is the target value, corresponding to the performance data x i The maximum output power label or value, n is the total number of nodes; S03. Using the environmental condition data as input and the determined maximum power generation as a label, the capacity prediction model is trained, and the optimal regularization parameter C and the kernel function of the support vector machine are selected using a cross-validation method to obtain a trained capacity prediction model; The data sequence of environmental condition data, output power and load demand of each node from the historical moment to the current moment is obtained in S20, including: S2011. Use current sensors and voltage sensors to obtain real-time voltage and current data, and calculate the power output of the node in real time. The power formula is: P=VI, where P represents power, V represents voltage, and I represents current; S2012. Record and analyze environmental condition data using temperature sensors, anemometers, and sunshine sensors; S2013, continuously monitoring the energy load demand of each node, and obtaining load demand data through a load monitor; S2014, performing preliminary processing on the collected data at the IoT gateway of each node, wherein the preliminary processing includes data compression and encryption; S2015, using a secure wireless network connection, transmitting the processed data to a central processing unit for use in generating a data sequence; Wherein, the secure wireless network connection includes using message queue telemetry transmission or restricted application protocol transmission; In S30, the total energy cost calculation method includes: ; The total environmental benefit calculation method includes: ; Among them, C total is the total energy cost, c i is the unit energy cost of the i-th energy node, B total is the total environmental benefit, b i is the environmental benefit score of the energy output per unit of energy at the i-th energy node, E i Initially, it is the estimated energy output of the i-th energy node in the future time period, and then it is the energy output after the energy adjustment strategy is executed in the multi-objective optimization algorithm process; The multi-objective optimization algorithm is a Pareto genetic algorithm. Accordingly, S30 includes: S301, setting the population size, number of iterations, crossover rate and mutation rate of the Pareto genetic algorithm; S302, determining an initial energy adjustment strategy, and executing a Pareto genetic algorithm to find an optimal solution set through iteration, where the solution set is represented by a Pareto frontier, where each solution represents a potential optimal energy allocation scheme; S303. Select one or more solutions from the Pareto front as the final energy allocation scheme to ensure that the allocation scheme can meet the predicted load demand of each node and achieve an optimal balance between cost and environmental benefits.
2. The distributed energy optimization scheduling method according to claim 1 is characterized in that: The S40 includes: S401, encoding and encrypting the energy adjustment strategy, where the encryption method includes TLS or SSL; S402, using a TCP / IP-based network communication protocol to send the encrypted data packet to the control unit of each energy node through the Internet of Things communication network, the communication protocol including MQTT or CoAP; S403, after receiving the data packet, the control unit of each energy node decrypts and analyzes the data to extract a specific energy adjustment strategy; S404. The control unit of each energy node adjusts the actual output of each node according to the energy adjustment strategy.
3. The distributed energy optimization scheduling method according to claim 1 is characterized in that: After S40, S50 is also included, using a blockchain-based smart contract to automatically manage all energy transactions and scheduling decisions in S40, and S50 includes: S501. Create and deploy smart contracts on the blockchain platform, where the smart contracts are written to be able to execute and verify the logic and rules of energy trading and scheduling decisions; S502. Encode specific energy trading rules in the smart contract. The energy trading rules include energy pricing, trading conditions, trading time limits and default handling. The energy trading rules are automatically adjusted based on pre-defined parameters and real-time market data. S503, the logic of energy dispatch encoded in the smart contract, including demand response measures, priority allocation, and energy reallocation in emergency situations; S504. When executing energy transactions, each transaction detail is automatically recorded on the blockchain, and the transaction verification results are broadcast to all network participants in real time through the blockchain network; S505. Smart contracts automatically execute transactions and scheduling results, including automatic deductions, energy distribution, and adjustment of energy output.
4. The distributed energy optimization scheduling method according to claim 1 is characterized in that: After S40, the method further includes S60, continuously monitoring the actual output power and the actual load demand after the energy adjustment strategy is implemented, and adjusting the parameters of the long short-term memory network model and the multi-objective optimization algorithm according to the deviation between the actual output power and the actual load demand, wherein S60 includes: S601, monitor and record the actual output power and actual load demand in real time through sensors installed at each energy node; S602, comparing the actual data monitored in S601 with the expected data calculated in S30, and calculating the deviation between the actual data and the expected data; S603, when the deviation between the actual data and the expected data exceeds a preset threshold, triggering an automatic adjustment mechanism; S604, analyzing the causes of the deviation through the data analysis module, where the causes of the deviation include environmental changes, equipment performance degradation, or insufficient accuracy of the prediction model; S605. According to the analysis result of S604, adjust the parameters of the long short-term memory network model or the multi-objective optimization algorithm, the parameters including the learning rate, the number of layers or the number of neurons of the long short-term memory network model, and the weight distribution or the objective function in the multi-objective optimization algorithm; S606, updating the adjusted long short-term memory network model and multi-objective optimization algorithm parameters, and retraining the long short-term memory network model; S607: Use the updated model to predict output power and load demand for the next cycle.
5. The distributed energy optimization scheduling method according to claim 1 is characterized in that: The S30 further includes: S304, continuously acquiring real-time energy market data, the energy market data including real-time energy prices and market demand; S305, inputting the energy market data from the historical moment to the current moment into the pre-trained autoregressive moving average model to obtain the predicted value of the energy market data in the future time period; S306, determining a dynamic adjustment factor according to the predicted value of energy market data in the future time period; S307. According to the size of the dynamic adjustment factor, the energy adjustment strategy of the corresponding node in the multi-objective optimization algorithm is adjusted accordingly.
6. A distributed energy optimization scheduling system, used to implement the distributed energy optimization scheduling method according to any one of claims 1 to 5, characterized in that: include: The first processing module is used to obtain the real-time environmental condition data of each node, and input the capacity prediction model based on the support vector machine to output the maximum output power of each node, wherein the capacity prediction model is obtained after training based on the historical environmental condition data and the corresponding maximum output power data; The second processing module is used to obtain the data sequence of environmental condition data, output power and load demand of each node from the historical moment to the current moment, input the data sequence into the trained long short-term memory network model, and output the predicted output power and predicted load demand of each node in the future time period; A strategy generation module is used to determine the energy adjustment strategy of each energy node based on the predicted output power based on a multi-objective optimization algorithm with the optimization objectives of minimizing the total energy cost and maximizing the total environmental benefit, as the optimal energy allocation scheme to meet the predicted load demand of all energy nodes in the future time period, where each energy node is limited by the maximum output power; A strategy allocation module, used to send the energy adjustment strategy of each node to the control unit of the node, so that each node can perform corresponding power adjustment; Among them, environmental condition data include temperature, wind speed and sunshine intensity. Energy adjustment strategies include adjusting power generation, adjusting the charging and discharging strategies of power storage equipment, and adjusting the energy exchange with other energy nodes. The long short-term memory network model is obtained after training based on a data sequence with known output power and load demand.
