Blockchain-based multi-energy collaborative optimization dispatching system and method for power systems
Through the multi-energy collaborative optimization dispatching system of the power system based on the blockchain, the problems of renewable energy volatility and data security in the power system are solved, and efficient and safe multi-energy collaborative dispatching and resource utilization are achieved.
Patent Information
- Application Number
- CN202410916880.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-10
- Publication Date
- 2024-10-18
- Estimated Expiration
- 2044-07-10
AI Technical Summary
The existing power multi-energy collaborative optimization dispatch system cannot effectively cope with the volatility and uncertainty of renewable energy, resulting in large prediction errors, low resource utilization efficiency, inaccurate dispatch path risk and benefit assessment, and difficulty in ensuring data security and privacy. .
Adopt a multi-energy collaborative optimization dispatching system for power systems based on blockchain, including data collection, transmission encryption, block storage, power prediction, analysis and decision-making, collaborative dispatch, program optimization, block dispatch, dispatch optimization, user interaction and real-time monitoring The module realizes data security through blockchain decentralized storage and smart contracts, uses bat algorithm and deep learning to predict power load and renewable energy generation, and combines genetic algorithms to optimize dispatch plans.
It improves the accuracy and reliability of power forecasting, reduces the uncertainty caused by forecast errors, maximizes resource utilization efficiency, enhances the accuracy of risk and benefit assessment of dispatch paths, and ensures data security and system transparency. Management, achieving high efficiency, safety and reliability of multi-energy coordinated dispatch.
Smart Images

Figure CN118469252B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of electric energy dispatching, and in particular to a blockchain-based electric power system multi-energy collaborative optimization dispatching system and method. Background Art
[0002] In modern power systems, the coordinated dispatch of multiple energy sources is crucial. As the proportion of renewable energy in the power system increases, power dispatch becomes increasingly complex. The volatility and uncertainty of renewable energy pose huge challenges to traditional power dispatch methods. These challenges include how to achieve efficient coordination of different types of energy, how to deal with the uncertainty of energy supply and demand, and how to ensure data security and privacy during the dispatch process. In order to solve these problems, it is necessary to introduce advanced technologies and methods to optimize the dispatch process of the power system.
[0003] After searching, Chinese patent number CN202211467195.1 discloses a collaborative optimization and dispatching system and method for multi-energy stations in power. Although the invention realizes the matching of energy demand and energy dispatch and improves the efficiency of energy dispatch, the uncertainty caused by the prediction error is high, which reduces the accuracy and reliability of the prediction. The accuracy and reliability cannot be predicted, the resource utilization efficiency cannot be maximized, and the waste of electricity increases; in addition, the existing multi-energy collaborative optimization and dispatching system and method for power system cannot accurately evaluate the risks and benefits of the dispatching path, and cannot guarantee the reliability and accuracy of the results during traversal. For this reason, we propose a multi-energy collaborative optimization and dispatching system and method for power system based on blockchain. Summary of the invention
[0004] The purpose of the present invention is to solve the defects existing in the prior art and to propose a blockchain-based power system multi-energy collaborative optimization scheduling system and method.
[0005] In order to achieve the above object, the present invention adopts the following technical solutions:
[0006] The blockchain-based multi-energy collaborative optimization dispatching system for power systems includes a data acquisition module, a transmission encryption module, a block storage module, a power prediction module, an analysis and decision-making module, a collaborative dispatching module, a scheme optimization module, a block dispatching module, a dispatching optimization module, a user interaction module, a real-time monitoring module, and a report generation module;
[0007] The data acquisition module is used to collect various electric energy data such as power load, power generation, meteorological data and energy price from various sensors, smart meters and other data sources in the power system.
[0008] As a further solution of the present invention, the other data sources specifically include weather stations, meteorological satellites, weather forecast systems, power trading platforms, power market operating agencies, market participants, equipment manufacturers, equipment monitoring systems, SCADA systems, smart home systems, electricity consumption monitoring systems, user electricity consumption records, power generation companies, energy management systems, renewable energy monitoring platforms, maintenance management systems and fault diagnosis systems.
[0009] The transmission encryption module is used to encrypt and transmit the collected and stored data.
[0010] As a further solution of the present invention, the specific steps of data encryption transmission of the transmission encryption module are as follows:
[0011] Step 1: Classify each type of electric energy data according to its type. After the classification is completed, clean each type of data to remove noise, duplication and invalid data, and then convert the data into a unified format. According to security requirements and system performance, select the corresponding AES key length, and call the CSPRNG secure random number generator to randomly generate the number of bits of the specified length;
[0012] Step 2: Generate a symmetric key by mapping the randomly generated number of bits to the selected AES key length, then format the key into a hexadecimal or Base64 encoding format suitable for storage and transmission, and store the generated key in the key management system;
[0013] Step 3: Securely extract multiple groups of symmetric keys as candidate keys from the key management system, and randomly generate the initial position of the bat group. The position of each bat represents a candidate key. Then randomly generate the initial speed and initial frequency of the bat group. Use the position of each bat to encrypt the test data with AES, and calculate the encryption performance index of each candidate key.
[0014] Step 4: According to the update rules of the bat algorithm, adjust the position and speed of the bats, and update the candidate keys according to the new positions of each bat, use the new positions to encrypt the data, and evaluate its encryption performance. Repeat the iteration several times until the preset convergence condition is reached, stop the iteration, and select the key with the best encryption performance as the final AES symmetric key;
[0015] Step 5: Select the optimized best AES symmetric key and generate a random initialization vector IV. Divide the preprocessed power data into fixed-size blocks according to the AES symmetric key size. For data that is less than the specified block size, use the PKCS#7 algorithm to fill it to the block size.
[0016] Step 6: Based on the GCM mode, use the optimized symmetric key and IV to initialize the cipher to encrypt the data block by block, generate encrypted data blocks, merge all the encrypted data blocks in the original order, append IV before the encrypted data, and then transmit the encrypted data through a secure communication channel.
[0017] The block storage module is used to decentrally store the collected data.
[0018] As a further solution of the present invention, the specific steps of decentralized storage of the block storage module are as follows:
[0019] Step 1: Select a blockchain platform that supports data storage and smart contracts, divide the encrypted data into multiple groups of data blocks according to the storage requirements of the blockchain platform, and use a hash function to calculate the hash value of each data block;
[0020] Step 2: Record the hash value of each data block, create a blockchain transaction for each data block, broadcast the transaction to the entire blockchain network through the blockchain node, and all nodes will receive and verify the transaction;
[0021] Step 3: Miners or verification nodes package multiple transactions into a block, verify and confirm the block through the consensus mechanism of the blockchain platform, and add the successfully verified block to the blockchain to become part of the blockchain. After the block storage is completed, the recorded hash value is used to verify whether the data stored in the blockchain is complete and has not been tampered with.
[0022] The power prediction module is used to predict various information on power load and renewable energy power generation, and provide future data support.
[0023] As a further solution of the present invention, the specific steps of predicting the power load and renewable energy generation of the power prediction module are as follows:
[0024] Step 1: Obtain each historical power data from the blockchain, preprocess the collected historical data, extract the corresponding power load state from each set of preprocessed historical data, and construct the corresponding state set S = {s1, s2, ..., s n}, and based on the actual power load and renewable energy generation in the historical data, construct the observation sequence O = {o1,o2,...,o t}, where n is the number of states and t is the length of the observation sequence;
[0025] Step 2: Get the initial probability distribution π of each state and calculate the state s i Transfer to state s j The probability of constructing the state transfer matrix A and calculating the state s n The next observation value is ot The probability of is used to construct the observation probability matrix B, and then the prediction model is constructed based on each set of data obtained, and the initial parameters of the model (π, A, B) are randomly generated;
[0026] Step 3: Use historical data to train the prediction model and obtain the state s at time t=1 i And the probability of observing o1, repeat the forward recursive calculation based on the calculated probability to obtain the state information at different times, and observe o in this state t The probability is that the recursion stops when the preset termination condition is reached, and the state is initialized to s at time t = T. i The backward probability of , where T represents the total number of observation time points, is recursively calculated based on the backward probability until time t = 1 is reached, and then the calculation stops;
[0027] Step 4: Based on the results of the forward recursive calculation and the reverse recursive calculation, the state at time t is calculated to be s i The probability that the state is s at time t+1 j The probability of the initial state, the state transfer matrix and the observation probability matrix are updated, and the iteration is repeated until the parameter change is less than the preset threshold;
[0028] Step 5: Set the number of search individuals, pheromones and heuristic factors, use the optimized state transfer matrix and observation probability matrix as the initial value of the pheromone matrix, and then each group of search individuals randomly selects the initial state s according to the probability of updating the initial state n , starting from the current state, the choice of the next state is determined by pheromones and heuristic factors;
[0029] Step 6: After the current state is transferred to the next state, the pheromones on the path are updated according to the preset pheromone volatility coefficient. When all individuals complete the path selection, the path length of each individual in this round of iteration is calculated, and the pheromone increment is calculated according to the path length. The pheromones on all paths are globally updated, and the fitness of each path is calculated based on the prediction error. The optimal path is selected and the pheromone matrix is updated. The path selection and pheromone update process is repeated, and the state transfer matrix and the observation probability matrix are iteratively updated until the pheromone matrix converges to the preset threshold or reaches the preset number of iterations. The path with the lowest fitness among all paths is selected as the optimal path, and the state transfer matrix and the observation probability matrix are updated;
[0030] Step 7: Input the current power load observation value sequence and the current renewable energy power generation observation value sequence into the optimized prediction model, calculate the forward probability of each state under the given observation sequence according to the forward algorithm, select the state with the highest probability at the final moment as the predicted power load state and renewable energy power generation state, and analyze the prediction results to obtain the predicted power load value and renewable energy power generation information.
[0031] As a further solution of the present invention, the specific formula for the forward recursive calculation in step 3 is as follows:
[0032] α1(i)=π i b i (o1)
[0033]
[0034] Where α1(i) is the state s at time t=1 i And the probability of observing o1; π i represents the initial state distribution; b i (o1) represents state s i The observation probability of the next observation value o1; α t (j) is in state s at time t j And observe o t The probability of; N represents the total number of states; α t-1 (i) represents the state s at time t-1 i and the joint probability of observing the observation sequence; a ij Represents the state s i Transfer to state s j The probability of j (o t ) represents the state s j The next observed value o t The observation probability of
[0035] The specific formula for the reverse recursive calculation in step 3 is as follows:
[0036] β T (i)=1
[0037]
[0038] In the formula, β T (i) At time t = T, the state is s i The backward probability of t (i) At time t, the state is s i And the observation from t+1 to T is {o t+1 ,...,o T}; b j (o t+1 ) represents the state s j Observed below o t+1 The probability of t+1 (j) represents the state s at time t+1 j , and the joint probability of the observation sequence from t+1 to T;
[0039] The specific formula for updating the initial state probability in step 4 is as follows:
[0040]
[0041]
[0042] π i ′=γ1(i)
[0043] In the formula, γ t (i) represents the state s at time t i The probability of being; t (i,j) is in state s at time t i , and the state at time t+1 is s j The probability of observing the sequence O given the model parameters λ = (π, A, B); π i ′ represents the updated initial state probability.
[0044] The analysis and decision-making module is used to make decisions based on real-time data and deep learning prediction results.
[0045] As a further solution of the present invention, the specific steps of making decisions by the analysis and decision module are as follows:
[0046] Step I: Collect historical data and experts’ opinions on different states and decision outcomes. Then use the statistical distribution of historical data and expert opinions to estimate the prior probability of each state and express it through a normal distribution.
[0047] Step II: Collect data in real time, integrate the real-time data with the data output by the power forecasting module as the current observation data, and then define the probability distribution of the observation data under different states through the Gaussian distribution model or historical observation data;
[0048] Step III: Update the posterior probability based on real-time data, calculate the marginal probability of the observed data in all states, quantify the potential loss or utility of each decision under different states, and calculate the expected loss or expected utility of each decision based on the posterior probability and loss function;
[0049] Step IV: Based on the expected loss or utility, select the decision with the smallest expected loss or the decision with the largest expected utility as the optimal scheduling plan and record it.
[0050] The collaborative scheduling module is used to comprehensively consider the power generation characteristics and costs of various energy sources and optimize the overall scheduling plan.
[0051] As a further solution of the present invention, the specific steps of optimizing the scheduling scheme of the collaborative scheduling module are as follows:
[0052] Step 1: Collect various data from sensors, smart meters, market data and historical records, and process missing values, noise and outliers in each group of data. Determine the scheduling problem that needs to be optimized in the system and the goal of scheduling optimization based on the collected data.
[0053] Step ②: Define the mathematical expression of the optimization target and the constraints in the optimization process, and establish the mathematical expression of the objective function and the constraints according to the optimization target and the constraints to form an optimization model;
[0054] Step 3: Determine the size of the population Y and randomly generate Z individuals, each of which represents a possible scheduling solution, denoted by X = {x1, x2, ... x Z}, then design the fitness function based on the objective function, and the larger the fitness function, the better the individual;
[0055] Step ④: Select individuals according to the ratio of fitness values, randomly select crossover points, and connect the two individuals x i and x j Exchange any part of the genes in the genome, set the mutation probability, and randomly select a certain site of the individual for gene mutation;
[0056] Step ⑤: Repeat the selection, crossover, and mutation operations to iteratively evolve the population. After each iteration, update the population, calculate the fitness function, select the optimal individual, and stop iterating when the maximum number of iterations is reached;
[0057] Step ⑥: Output the individual with the highest fitness as the optimal scheduling plan after global optimization. According to the optimal scheduling plan, adjust the operating status of each energy device in the system, monitor the implementation effect of the scheduling plan in real time, and provide feedback and adjustments.
[0058] The scheme optimization module is used to globally optimize the scheduling scheme provided by the collaborative scheduling module;
[0059] The block scheduling module is used for automatic execution and transparent management of energy scheduling based on blockchain smart contracts;
[0060] The scheduling optimization module is used to conduct a comprehensive search of various scheduling paths during the energy scheduling process to obtain the optimal or suboptimal scheduling path;
[0061] The user interaction module is used by dispatchers and managers to view data, adjust dispatch plans and monitor the system;
[0062] The real-time monitoring module is used to monitor the operating status of the power system in real time;
[0063] The report generation module is used to regularly generate scheduling reports and operation analysis reports to provide data support and reference for management decisions.
[0064] The multi-energy coordinated optimization dispatching method of the power system based on blockchain has the following specific steps:
[0065] S1. Clarify the multi-energy scheduling optimization problem and analyze the system requirements;
[0066] S2, collect data from multiple data sources and preprocess them;
[0067] S3, data storage and secure processing through blockchain technology;
[0068] S4. Make real-time predictions of various information of the power system based on historical data;
[0069] S5. Establish a multi-energy collaborative optimization model and initialize optimization algorithm parameters;
[0070] S6. Conduct multi-energy coordinated optimization scheduling and adjust the scheduling path in real time;
[0071] S7. Conduct uncertainty analysis and make decisions based on real-time data and forecast results;
[0072] S8. Monitor the operating status of the power system in real time and make adjustments based on feedback.
[0073] As a further solution of the present invention, the specific steps of real-time adjustment of the scheduling path in S6 are as follows:
[0074] Step 1: Take the operating status of each energy device at a certain moment as a node, the scheduling decision from one time point to the next time point as an edge, and define the initial state of the system as the starting point of BFS;
[0075] Step 2: Create the initial node and add it to the search queue, initialize the access record to mark the visited nodes, check whether the search queue is empty, take the current node out of the queue, and expand all its child nodes, then process each child node through state update, target detection and queue joining methods;
[0076] Step 3: According to the scheduling plan, transfer from the current state to the next state, and calculate the state transfer cost during the transfer process. At the same time, mark the visited nodes in the access record to avoid repeated searches and update the accumulated cost of the nodes;
[0077] Step 4: Check whether the current node is the target node. If a better path is found, update the best path record, generate all possible child nodes of the current node, and add the unvisited child nodes to the search queue;
[0078] Step 5: Repeat the iterative optimization. When the search queue is empty or the optimal or suboptimal path that meets the preset conditions is found, stop the iteration, trace back from the target node to the initial node, obtain the optimal or suboptimal path, and output the optimal path and the corresponding scheduling plan.
[0079] As a further solution of the present invention, the specific calculation formula of the state transfer cost in step 3 is as follows:
[0080]
[0081] In the formula, C i represents the unit cost of the i-th energy; D i represents the dispatch amount of the i-th energy source; c represents the state transfer cost; z represents the total number of different types of energy in the power system;
[0082] The specific calculation formula for the cumulative cost in step 3 is as follows:
[0083] Cost(z)=Cost(p)+c
[0084] Where Cost(z) represents the cumulative cost of the current node; Cost(p) represents the cumulative cost of the parent node.
[0085] Compared with the prior art, the present invention has the following beneficial effects:
[0086] 1. The present invention obtains various historical power data from the blockchain, pre-processes the collected historical data, extracts the corresponding power load state from each set of pre-processed historical data, and constructs a corresponding state set, observation sequence, initial probability distribution, state transfer matrix and observation probability matrix. The prediction model is constructed based on each set of data obtained, and the initial parameters of the model are randomly generated. The prediction model is trained using historical data to obtain the state s at time t=1. i And the probability of observing o1 is calculated, and the forward recursive calculation is repeated based on the calculated probability until the preset termination condition is reached, then the recursion is stopped and the state is initialized to s at time t = T iThe backward probability is calculated based on the backward probability, and the reverse recursive calculation is performed until time t=1 is reached. The calculation is stopped, and the initial state probability, state transfer matrix and observation probability matrix are updated. The iteration is repeated until the parameter change is less than the preset threshold. The number of search individuals, pheromones and heuristic factors are set, and the optimized state transfer matrix and observation probability matrix are used as the initial value of the pheromone matrix. After that, each group of search individuals randomly selects the initial state according to the updated initial state probability, and determines the choice of the next state according to the pheromone and heuristic factors. After the current state is transferred to the next state, the pheromones on the path are updated, and the path selection and pheromone update process are repeated. The state transfer matrix and observation probability matrix are iteratively updated until the pheromone matrix converges to the preset threshold or reaches the preset number of iterations, and the path with the lowest fitness among the paths is selected. The optimal path is taken as the path, and the state transfer matrix and observation probability matrix are updated. The current power load observation value sequence and the current renewable energy power generation observation value sequence are input into the optimized prediction model. The forward probability of each state under the given observation sequence is calculated according to the forward algorithm. The state with the highest probability at the final moment is selected as the predicted power load state and renewable energy power generation state. The prediction results are analyzed to obtain the predicted power load value and renewable energy power generation information, which can effectively reduce the uncertainty caused by prediction errors, improve the accuracy and reliability of predictions, respond in advance, better schedule the use of different energy sources, maximize resource utilization efficiency, reduce power waste, reduce invalid operations and adjustment frequency in the scheduling process, and improve overall scheduling efficiency.
[0087] 2. The present invention regards the operating status of each energy device at a certain moment as a node, and the scheduling decision from one time point to the next time point as an edge. The initial state of the system is defined as the starting point of BFS, and the initial node is created and added to the search queue. The access record is initialized to mark the visited nodes, and then the search queue is checked to see if it is empty, and the current node is taken out of the queue, and all its child nodes are expanded. After that, each child node is processed through the state update, target detection and queue joining methods, and the state transfer cost during the transfer process is calculated according to the scheduling plan. At the same time, the visited nodes are marked in the access record to avoid repeated searches and update the nodes. The cumulative cost of the point is calculated, and the current node is checked to see if it is the target node. If a better path is found, the optimal path record is updated, all possible child nodes of the current node are generated, and the unvisited child nodes are added to the search queue. The iterative optimization is repeated. When the search queue is empty or the optimal or suboptimal path that meets the preset conditions is found, the iteration is stopped, and the optimal or suboptimal path is obtained from the target node back to the initial node. The optimal path and the corresponding scheduling plan are output, which can more accurately evaluate the risks and benefits of the scheduling path and achieve the optimal performance of the system scheduling. The reliability and accuracy of the results can be guaranteed during traversal, making the system scheduling not only efficient, but also safe and reliable, and realizing the coordinated scheduling of multiple energy sources. BRIEF DESCRIPTION OF THE DRAWINGS
[0088] The accompanying drawings are used to provide further understanding of the present invention and constitute a part of the specification. They are used to explain the present invention together with the embodiments of the present invention and do not constitute a limitation of the present invention.
[0089] Figure 1 This is a system block diagram of the blockchain-based multi-energy collaborative optimization dispatching system for power systems proposed by the present invention;
[0090] Figure 2 This is a flowchart of the blockchain-based multi-energy collaborative optimization scheduling method for power systems proposed by the present invention;
[0091] Figure 3 This is a flowchart of the bat algorithm for the blockchain-based multi-energy collaborative optimization scheduling method for power systems proposed in the present invention. DETAILED DESCRIPTION
[0092] The technical solutions in the embodiments of the present invention will be described clearly and completely below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, rather than all the embodiments.
[0093] Example 1
[0094] Reference Figure 1 , Figure 3The blockchain-based power system multi-energy collaborative optimization and dispatching system includes data acquisition module, transmission encryption module, block storage module, power forecasting module, analysis and decision-making module, collaborative dispatching module, scheme optimization module, block dispatching module, dispatching optimization module, user interaction module, real-time monitoring module and report generation module.
[0095] The data acquisition module is used to collect various electric energy data such as power load, power generation, meteorological data and energy price from various sensors, smart meters and other data sources in the power system.
[0096] In this embodiment, other data sources specifically include weather stations, meteorological satellites, weather forecast systems, power trading platforms, power market operating organizations, market participants, equipment manufacturers, equipment monitoring systems, SCADA systems, smart home systems, electricity consumption monitoring systems, user electricity consumption records, power generation companies, energy management systems, renewable energy monitoring platforms, maintenance management systems, and fault diagnosis systems.
[0097] The transmission encryption module is used to encrypt the transmission of collected and stored data.
[0098] Specifically, refer to Figure 3It can be seen that each type of electric energy data is classified according to its type. After the classification is completed, each type of data is cleaned to remove noise, duplication and invalid data, and then the data is converted into a unified format. According to security requirements and system performance, the corresponding AES key length is selected, and the CSPRNG secure random number generator is called to randomly generate bits of the specified length. The randomly generated bits correspond to the selected AES key length to generate a symmetric key, and then the key is formatted into a hexadecimal or Base64 encoding format suitable for storage and transmission, and the generated key is stored in the key management system. Multiple groups of symmetric keys are securely extracted from the key management system as candidate keys, and the initial position of the bat group is randomly generated. The position of each bat represents a candidate key, and then the initial speed and initial frequency of the bat group are randomly generated. The test data is encrypted with AES using the position of each bat, and the encryption performance indicators of each candidate key are calculated. According to The update rule of the bat algorithm adjusts the position and speed of the bats, and updates the candidate keys according to the new position of each bat. The new position is used to encrypt the data and evaluate its encryption performance. The iteration is repeated many times until the preset convergence condition is reached, and the iteration is stopped. The key with the best encryption performance is selected as the final AES symmetric key. The optimized best AES symmetric key is selected and a random initialization vector IV is generated. The preprocessed electric energy data is divided into blocks of fixed size according to the AES symmetric key size. For data that is less than the specified block size, the PKCS#7 algorithm is used to fill it to reach the block size. Based on the GCM mode, the optimized symmetric key and IV are used to initialize the encryptor to encrypt the data block by block to generate encrypted data blocks. All encrypted data blocks are then merged in the original order, and IV is appended before the encrypted data. The encrypted data is then transmitted through a secure communication channel.
[0099] It should be further explained that various sensors and smart meters are installed at various nodes of the power system to collect power production, transmission and consumption data in real time. The data is then transmitted to the company's central data processing center via a wireless network or a wired network. The raw data received by the central data processing center is preprocessed and the processed data is stored in the central database. The preprocessed data is used for load forecasting and power supply capacity forecasting through the LSTM neural network to obtain the load curve and power generation curve for the next 24 hours. Then, by simulating the echolocation behavior of bats, a global search is performed in the key space, and the fitness of each bat is evaluated based on the security and randomness of the key. The speed and position of the bat are adjusted according to the fitness, the key candidates are updated, and the key candidates are further optimized through local search. The key parameters are found through continuous iteration and update, and the generated symmetric key is input into the AES encryption algorithm. The scheduling data to be encrypted is divided into multiple data blocks, and each data block is processed according to the encryption process of the AES algorithm to generate ciphertext data, ensuring that the generated key has high randomness and security, and making the encrypted data more secure and difficult to be cracked by malicious attackers.
[0100] The block storage module is used to decentralize the storage of collected data.
[0101] Specifically, choose a blockchain platform that supports data storage and smart contracts, divide the encrypted data into multiple groups of data blocks according to the storage requirements of the blockchain platform, use a hash function to calculate the hash value of each data block, record the hash value of each data block, create a blockchain transaction for each data block, broadcast the transaction to the entire blockchain network through the blockchain node, all nodes will receive and verify the transaction, miners or verification nodes will package multiple transactions into a block, verify and confirm the block through the consensus mechanism of the blockchain platform, and add the successfully verified block to the blockchain to become part of the blockchain. After the block storage is completed, use the recorded hash value to verify whether the data stored in the blockchain is complete and has not been tampered with.
[0102] The power forecasting module is used to predict various information on power load and renewable energy power generation, and provide future data support.
[0103] Specifically, each historical power data is obtained from the blockchain, the collected historical data is preprocessed, and the corresponding power load state is extracted from each set of preprocessed historical data to construct a corresponding state set S = {s1, s2, ..., s n}, and based on the actual power load and renewable energy generation in the historical data, construct the observation sequence O = {o1,o2,...,o t}, where n is the number of states, t is the length of the observation sequence, obtain the initial probability distribution π for each state, and calculate the state si Transfer to state s j The probability of constructing the state transfer matrix A and calculating the state s n The next observation value is o t The probability of the observation is constructed to construct the observation probability matrix B. Then, the prediction model is constructed based on the obtained data sets, and the initial parameters of the model (π, A, B) are randomly generated. The prediction model is trained using historical data to obtain the state s at time t = 1. i And the probability of observing o1, repeat the forward recursive calculation based on the calculated probability to obtain the state information at different times, and observe o in this state t The probability is that the recursion stops when the preset termination condition is reached, and the state is initialized to s at time t = T. i The backward probability is calculated based on the backward probability, and the reverse recursive calculation is performed until time t = 1 is reached, and the calculation is stopped. According to the results of the forward recursive calculation and the reverse recursive calculation, the state at time t is s i The probability that the state is s at time t+1 j The probability of the initial state, the state transfer matrix and the observation probability matrix are updated, and the iteration is repeated until the parameter change is less than the preset threshold. The number of search individuals, pheromones and heuristic factors are set, and the optimized state transfer matrix and observation probability matrix are used as the initial values of the pheromone matrix. After that, each group of search individuals randomly selects the initial state s according to the probability of updating the initial state. n , starting from the current state, the pheromone and the heuristic factor determine the selection of the next state. After the current state is transferred to the next state, the pheromone on the path is updated according to the preset pheromone volatility coefficient. When all individuals complete the path selection, the path length of each individual in this round of iteration is calculated, and the pheromone increment is calculated according to the path length. The pheromone on all paths is globally updated. The fitness of each path is calculated based on the prediction error, the optimal path is selected, and the pheromone matrix is updated. The path selection and pheromone update process are repeated, and the state transfer matrix and the observation probability matrix are iteratively updated until the pheromone matrix converges to the preset threshold or reaches the preset number of iterations. The path with the lowest fitness among the paths is selected as the optimal path, and the state transfer matrix and the observation probability matrix are updated. The current moment power load observation value sequence and the current moment renewable energy power generation observation value sequence are input into the optimized prediction model, and the forward probability of each state under the given observation sequence is calculated according to the forward algorithm. The state with the highest probability at the final moment is selected as the predicted power load state and renewable energy power generation state. The prediction results are analyzed to obtain the predicted power load value and renewable energy power generation information.
[0104] It needs to be further explained that the specific formula for forward recursive calculation is as follows:
[0105] α1(i)=π i b i (o1)
[0106]
[0107] Where α1(i) is the state s at time t=1 i And the probability of observing o1; π i represents the initial state distribution; b i (o1) represents state s i The observation probability of the next observation value o1; α t (j) is in state s at time t j And observe o t The probability of; N represents the total number of states; α t-1 (i) represents the state s at time t-1 i and the joint probability of observing the observation sequence; a ij Represents the state s i Transfer to state s j The probability of j (o t ) represents the state s j The next observed value o t The observation probability of
[0108] The specific formula for reverse recursive calculation is as follows:
[0109] β T (i)=1
[0110]
[0111] In the formula, β T (i) At time t = T, the state is s i The backward probability of t (i) At time t, the state is s i And the observation from t+1 to T is {o t+1 ,...,o T}; b j (o t+1 ) represents the state s j Observed below o t+1 The probability of t+1 (j) represents the state s at time t+1 j , and the joint probability of the observation sequence from t+1 to T;
[0112] The specific formula for updating the initial state probability is as follows:
[0113]
[0114]
[0115] π i ′=γ1(i)
[0116] In the formula, γ t (i) represents the state s at time t i The probability of being; t (i,j) is in state s at time t i , and the state at time t+1 is s j The probability of observing the sequence O given the model parameters λ = (π, A, B); π i ′ represents the updated initial state probability.
[0117] The analytical decision module is used to make decisions based on real-time data and deep learning prediction results.
[0118] Specifically, historical data and experts' opinions on different states and decision-making results are collected, and then the statistical distribution of historical data and expert opinions are used to estimate the prior probability of each state, and the prior probability is expressed through normal distribution. Data is collected in real time, and the real-time data is integrated with the data output by the power prediction module as the current observation data. Then, the probability distribution of the observation data under different states is defined through the Gaussian distribution model or historical observation data, the posterior probability is updated according to the real-time data, and the marginal probability of the observation data in all states is calculated, and the potential loss or utility of each decision under different states is quantified. According to the posterior probability and the loss function, the expected loss or expected utility of each decision is calculated. According to the expected loss or utility, the decision with the smallest expected loss or the largest expected utility is selected as the optimal scheduling plan and recorded.
[0119] The collaborative scheduling module is used to comprehensively consider the power generation characteristics and costs of each energy source and optimize the overall scheduling plan.
[0120] Specifically, various data are collected from sensors, smart meters, market data and historical records, and missing values, noise and outliers of each group of data are processed. Based on the collected data, the scheduling problem that needs to be optimized in the system and the scheduling optimization goal are determined. The mathematical expression of the optimization goal and the constraints in the optimization process are defined. According to the optimization goal and constraints, the mathematical expression of the objective function and the constraints are established to form an optimization model, determine the size Y of the population, and randomly generate Z individuals, each of which represents a possible scheduling plan, denoted as X = {x1, x2, ...x Z}, then design the fitness function based on the objective function, and the larger the fitness function, the better the individual, select individuals according to the proportion of fitness values, randomly select the intersection point, and put the two individuals xi and x j Exchange any part of the genes in the gene pool, then set the mutation probability, and randomly select a certain site of the individual to perform gene mutation, repeat the selection, crossover, and mutation operations, iteratively evolve the population, update the population after each iteration, calculate the fitness function, and select the optimal individual. When the maximum number of iterations is reached, stop the iteration, and output the individual with the highest fitness as the optimal scheduling plan after global optimization. According to the optimal scheduling plan, adjust the operating status of each energy device in the system, monitor the implementation effect of the scheduling plan in real time, and provide feedback and adjustments.
[0121] The scheme optimization module is used to globally optimize the scheduling scheme provided by the collaborative scheduling module. The block scheduling module is used to automatically execute and transparently manage energy scheduling based on blockchain smart contracts. The scheduling optimization module is used to comprehensively search various scheduling paths during the energy scheduling process to obtain the optimal or suboptimal scheduling path. The user interaction module is used for dispatchers and managers to view data, adjust scheduling schemes and monitor the system. The real-time monitoring module is used to monitor the operating status of the power system in real time. The report generation module is used to regularly generate scheduling reports and operation analysis reports to provide data support and reference for management decisions.
[0122] Example 2
[0123] Reference Figure 2 , a multi-energy coordinated optimization dispatching method for power systems based on blockchain, the specific steps of the dispatching method are as follows:
[0124] Identify multi-energy scheduling optimization problems and analyze system requirements.
[0125] Collect and preprocess data from multiple data sources.
[0126] Data storage and secure processing through blockchain technology.
[0127] Make real-time predictions of various power system information based on historical data.
[0128] Establish a multi-energy collaborative optimization model and initialize the optimization algorithm parameters.
[0129] Conduct multi-energy coordinated optimization scheduling and adjust the scheduling path in real time.
[0130] Specifically, the operating status of each energy device at a certain moment is regarded as a node, and the scheduling decision from one time point to the next time point is regarded as an edge. The initial state of the system is defined as the starting point of BFS, the initial node is created and added to the search queue, the access record is initialized to mark the visited nodes, and then the search queue is checked to see if it is empty, and the current node is taken out of the queue, and all its child nodes are expanded. After that, each child node is processed through state update, target detection and queue joining methods. According to the scheduling plan, it is transferred from the current state to the next state, and the state transfer cost in the transfer process is calculated. At the same time, the visited nodes are marked in the access record to avoid repeated searches, the cumulative cost of the node is updated, and the current node is checked to see if it is the target node. If a better path is found, the optimal path record is updated, all possible child nodes of the current node are generated, and the unvisited child nodes are added to the search queue. Iterative optimization is repeated. When the search queue is empty or the optimal or suboptimal path that meets the preset conditions is found, the iteration is stopped, and the optimal or suboptimal path is obtained from the target node. The optimal path and the corresponding scheduling plan are output.
[0131] In this embodiment, the specific calculation formula of the state transfer cost is as follows:
[0132]
[0133] In the formula, C i represents the unit cost of the i-th energy; D i represents the dispatch amount of the i-th energy source; c represents the state transfer cost; z represents the total number of different types of energy in the power system;
[0134] The specific calculation formula for the cumulative cost is as follows:
[0135] Cost(z)=Cost(p)+c
[0136] Where Cost(z) represents the cumulative cost of the current node; Cost(p) represents the cumulative cost of the parent node.
[0137] Conduct uncertainty analysis and make decisions based on real-time data and forecasts.
[0138] Monitor the power system operating status in real time and make adjustments based on feedback.
Claims
1. The blockchain-based power system multi-energy collaborative optimization dispatching system is characterized by: It includes data acquisition module, transmission encryption module, block storage module, power forecasting module, analysis and decision-making module, collaborative scheduling module, solution optimization module, block scheduling module, scheduling optimization module, user interaction module, real-time monitoring module and report generation module; The data acquisition module is used to collect various electric energy data such as power load, power generation, meteorological data and energy price from various sensors, smart meters and other data sources in the power system; The transmission encryption module is used to encrypt and transmit the collected and stored data; The block storage module is used to decentralize the storage of collected data; The power prediction module is used to predict various information on power load and renewable energy generation, and provide future data support; The analysis and decision-making module is used to make decisions based on real-time data and deep learning prediction results; The collaborative scheduling module is used to comprehensively consider the power generation characteristics and costs of each energy source and optimize the overall scheduling plan; The scheme optimization module is used to globally optimize the scheduling scheme provided by the collaborative scheduling module; The block scheduling module is used for automatic execution and transparent management of energy scheduling based on blockchain smart contracts; The scheduling optimization module is used to conduct a comprehensive search of various scheduling paths during the energy scheduling process to obtain the optimal or suboptimal scheduling path; The user interaction module is used by dispatchers and managers to view data, adjust dispatch plans and monitor the system; The real-time monitoring module is used to monitor the operating status of the power system in real time; The report generation module is used to regularly generate scheduling reports and operation analysis reports to provide data support and reference for management decisions; The specific steps of predicting power load and renewable energy generation in the power prediction module are as follows: Step 1: Obtain each historical power data from the blockchain, preprocess the collected historical data, and extract the corresponding power load state from each set of preprocessed historical data to construct the corresponding state set S = {s1, s2, ..., s n }, and based on the actual power load and renewable energy generation in the historical data, construct the observation sequence O = {o1,o2,…,o t }, where n is the number of states and t is the length of the observation sequence; Step 2: Get the initial probability distribution π of each state and calculate the state s i Transfer to state s j The probability of constructing the state transfer matrix A and calculating the state s n The next observation value is o t The probability of is used to construct the observation probability matrix B, and then the prediction model is constructed based on each set of data obtained, and the initial parameters of the model (π, A, B) are randomly generated; Step 3: Use historical data to train the prediction model and obtain the state s at time t=1 i And the probability of observing o1, repeat the forward recursive calculation based on the calculated probability to obtain the state information at different times, and observe o in this state t The probability is that the recursion stops when the preset termination condition is reached, and the state is initialized to s at time t = T. i The backward probability of , where T represents the total number of observation time points, is recursively calculated based on the backward probability until time t = 1 is reached, and then the calculation stops; Step 4: Based on the results of the forward recursive calculation and the reverse recursive calculation, the state at time t is calculated to be s i The probability that the state is s at time t+1 j The probability of the initial state, the state transfer matrix and the observation probability matrix are updated, and the iteration is repeated until the parameter change is less than the preset threshold; Step 5: Set the number of search individuals, pheromones and heuristic factors, use the optimized state transfer matrix and observation probability matrix as the initial value of the pheromone matrix, and then each group of search individuals randomly selects the initial state s according to the probability of updating the initial state n , starting from the current state, the choice of the next state is determined by pheromones and heuristic factors; Step 6: After the current state is transferred to the next state, the pheromones on the path are updated according to the preset pheromone volatility coefficient. When all individuals complete the path selection, the path length of each individual in this round of iteration is calculated, and the pheromone increment is calculated according to the path length. The pheromones on all paths are globally updated, and the fitness of each path is calculated based on the prediction error. The optimal path is selected and the pheromone matrix is updated. The path selection and pheromone update process is repeated, and the state transfer matrix and the observation probability matrix are iteratively updated until the pheromone matrix converges to the preset threshold or reaches the preset number of iterations. The path with the lowest fitness among all paths is selected as the optimal path, and the state transfer matrix and the observation probability matrix are updated; Step 7: Input the current power load observation value sequence and the current renewable energy power generation observation value sequence into the optimized prediction model, calculate the forward probability of each state under the given observation sequence according to the forward algorithm, select the state with the highest probability at the final moment as the predicted power load state and renewable energy power generation state, and analyze the prediction results to obtain the predicted power load value and renewable energy power generation information; The specific steps of optimizing the scheduling scheme of the collaborative scheduling module are as follows: Step 1: Collect various data from sensors, smart meters, market data and historical records, and process missing values, noise and outliers in each group of data. Determine the scheduling problem that needs to be optimized in the system and the goal of scheduling optimization based on the collected data. Step ②: Define the mathematical expression of the optimization target and the constraints in the optimization process, and establish the mathematical expression of the objective function and the constraints according to the optimization target and the constraints to form an optimization model; Step 3: Determine the size of the population Y and randomly generate Z individuals, each of which represents a possible scheduling solution, denoted by X = {x1, x2, …, x Z }, then design the fitness function based on the objective function, and the larger the fitness function, the better the individual; Step ④: Select individuals according to the ratio of fitness values, randomly select crossover points, and connect the two individuals x i and x j Exchange any part of the genes in the genome, set the mutation probability, and randomly select a certain site of the individual for gene mutation; Step ⑤: Repeat the selection, crossover, and mutation operations to iteratively evolve the population. After each iteration, update the population, calculate the fitness function, select the optimal individual, and stop iterating when the maximum number of iterations is reached; Step ⑥: Output the individual with the highest fitness as the optimal scheduling plan after global optimization. According to the optimal scheduling plan, adjust the operating status of each energy device in the system, monitor the implementation effect of the scheduling plan in real time, and provide feedback and adjustments; The specific steps of decision making by the analysis and decision module are as follows: Step I: Collect historical data and experts’ opinions on different states and decision outcomes. Then use the statistical distribution of historical data and expert opinions to estimate the prior probability of each state and express it through a normal distribution. Step II: Collect data in real time, integrate the real-time data with the data output by the power forecasting module as the current observation data, and then define the probability distribution of the observation data under different states through the Gaussian distribution model or historical observation data; Step III: Update the posterior probability based on real-time data, calculate the marginal probability of the observed data in all states, quantify the potential loss or utility of each decision under different states, and calculate the expected loss or expected utility of each decision based on the posterior probability and loss function; Step IV: Based on the expected loss or utility, select the decision with the smallest expected loss or the decision with the largest expected utility as the optimal scheduling plan and record it.
2. According to the blockchain-based power system multi-energy collaborative optimization dispatching system according to claim 1, it is characterized in that: The other data sources specifically include weather stations, meteorological satellites, weather forecast systems, power trading platforms, power market operating agencies, market participants, equipment manufacturers, equipment monitoring systems, SCADA systems, smart home systems, electricity consumption monitoring systems, user electricity consumption records, power generation companies, energy management systems, renewable energy monitoring platforms, maintenance management systems and fault diagnosis systems.
3. According to the blockchain-based power system multi-energy collaborative optimization dispatching system according to claim 1, it is characterized in that: The specific steps of data encryption transmission of the transmission encryption module are as follows: Step 1: Classify each type of electric energy data according to its type. After the classification is completed, clean each type of data to remove noise, duplication and invalid data, and then convert the data into a unified format. According to security requirements and system performance, select the corresponding AES key length, and call the CSPRNG secure random number generator to randomly generate the number of bits of the specified length; Step 2: Generate a symmetric key by mapping the randomly generated number of bits to the selected AES key length, then format the key into a hexadecimal or Base64 encoding format suitable for storage and transmission, and store the generated key in the key management system; Step 3: Securely extract multiple groups of symmetric keys as candidate keys from the key management system, and randomly generate the initial position of the bat group. The position of each bat represents a candidate key. Then randomly generate the initial speed and initial frequency of the bat group. Use the position of each bat to encrypt the test data with AES, and calculate the encryption performance index of each candidate key. Step 4: According to the update rules of the bat algorithm, adjust the position and speed of the bats, and update the candidate keys according to the new positions of each bat, use the new positions to encrypt the data, and evaluate its encryption performance. Repeat the iteration several times until the preset convergence condition is reached, stop the iteration, and select the key with the best encryption performance as the final AES symmetric key; Step 5: Select the optimized best AES symmetric key and generate a random initialization vector IV. Divide the preprocessed power data into fixed-size blocks according to the AES symmetric key size. For data that is less than the specified block size, use the PKCS#7 algorithm to fill it to the block size. Step 6: Based on the GCM mode, use the optimized symmetric key and IV to initialize the cipher to encrypt the data block by block, generate encrypted data blocks, merge all the encrypted data blocks in the original order, append IV before the encrypted data, and then transmit the encrypted data through a secure communication channel.
4. A multi-energy coordinated optimization dispatching method for a power system based on blockchain, implemented by the dispatching system described in any one of claims 1 to 3, characterized in that: The specific steps of the scheduling method are as follows: S1. Clarify the multi-energy scheduling optimization problem and analyze the system requirements; S2, collect data from multiple data sources and preprocess them; S3, data storage and secure processing through blockchain technology; S4. Make real-time predictions of various information of the power system based on historical data; S5. Establish a multi-energy collaborative optimization model and initialize optimization algorithm parameters; S6. Conduct multi-energy coordinated optimization scheduling and adjust the scheduling path in real time; S7. Conduct uncertainty analysis and make decisions based on real-time data and forecast results; S8, monitor the power system operating status in real time and make adjustments based on feedback; The specific steps of real-time adjustment of the dispatching path in S6 are as follows: Step 1: Take the operating status of each energy device at a certain moment as a node, the scheduling decision from one time point to the next time point as an edge, and define the initial state of the system as the starting point of BFS; Step 2: Create the initial node and add it to the search queue, initialize the access record to mark the visited nodes, check whether the search queue is empty, take the current node out of the queue, and expand all its child nodes, then process each child node through state update, target detection and queue joining methods; Step 3: According to the scheduling plan, transfer from the current state to the next state, and calculate the state transfer cost during the transfer process. At the same time, mark the visited nodes in the access record to avoid repeated searches and update the accumulated cost of the nodes; Step 4: Check whether the current node is the target node. If a better path is found, update the best path record, generate all possible child nodes of the current node, and add the unvisited child nodes to the search queue; Step 5: Repeat the iterative optimization. When the search queue is empty or the optimal or suboptimal path that meets the preset conditions is found, stop the iteration, trace back from the target node to the initial node, obtain the optimal or suboptimal path, and output the optimal path and the corresponding scheduling plan.
5. The blockchain-based multi-energy coordinated optimization scheduling method for power systems according to claim 4 is characterized in that: The specific calculation formula of the state transfer cost in step 3 is as follows: In the formula, C i represents the unit cost of the i-th energy; D i represents the dispatch amount of the i-th energy source; c represents the state transfer cost; z represents the total number of different types of energy in the power system; The specific calculation formula for the cumulative cost in step 3 is as follows: Cost(z)=Cost(p)+c Where Cost(z) represents the cumulative cost of the current node; Cost(p) represents the cumulative cost of the parent node.
Citation Information
Patent Citations
Electric power multi-energy station collaborative optimization scheduling system and method
CN115755808A
Distributed power resource optimization scheduling method and system in blockchain environment
CN111668839A
Micro-grid power dispatching method
CN117791558A
